#include "stdafx.h" #include "GLass_engine.h" //#include //#include int MeineEventFunction(SDL_Event ev) { return(0); } void RenderFunc(void) { glRotatef(1.0, 0, 0, 1.0); glBegin(GL_QUADS); glColor3ub(0, 0, 255); glVertex3f(-0.5, 0.5, 0); glVertex3f(0.5, 0.5, 0); glVertex3f(0.5, -0.5, 0); glVertex3f(-0.5, -0.5, 0); glEnd(); } int _tmain(int argc, _TCHAR* argv[]) { GLassApp *app = new GLassApp(640,480,GLassOPENGL); app->AddEventLoop(MeineEventFunction); app->AddRenderLoop(RenderFunc); app->Run(); delete app; return 0; }