我刚开始从代号为:: blocks的superbible(第6版)学习openGL.但是当我尝试运行第一个示例代码时,我从sb6.h文件中获得了一个未定义的平台错误.
示例代码:
#include "sb6.h"
// Derive my_application from sb6::application
class my_application : public sb6::application
{
public:
// Our rendering function
void render(double currentTime)
{
// Simply clear the window with red
static const GLfloat red[] = { 1.0f, 0.0f, 0.0f, 1.0f };
glClearBufferfv(GL_COLOR, 0, red);
}
};
// Our one and only instance of DECLARE_MAIN
DECLARE_MAIN(my_application);
Run Code Online (Sandbox Code Playgroud)
有谁知道如何解决这一问题?