|
|
error C2144: syntax error : missing ';' before type 'void'
error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found
// <<<<<<<<<<< 程序如下,是一个例子,好像是Nehe的教程 >>>>>>>>>>>>>>>>>>>>
#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);
}
|
|