#include <GL/gl.h>
#include <GL/glaux.h>
#include "glos.h"void main(void)
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
auxInitPosition(0,0,500,500);
auxInitWindow("simple"); glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0,0.0,0.0);
glRectf(-0.5,-0.5,0.5,0.5); glFlush();
_sleep(1000);
}
#include <GL/glaux.h>
#include "glos.h"void main(void)
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
auxInitPosition(0,0,500,500);
auxInitWindow("simple"); glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0,0.0,0.0);
glRectf(-0.5,-0.5,0.5,0.5); glFlush();
_sleep(1000);
}
D:\Documents and Settings\llyzq\桌面\VC\opengl\opengl.cpp(29) : error C2601: 'InitGL' : local function definitions are illegal
D:\Documents and Settings\llyzq\桌面\VC\opengl\opengl.cpp(43) : fatal error C1004: unexpected end of file found