All pastes #972639 Raw Edit

Anonym

public text v1 · immutable
·published 2008-04-05 16:47 UTC
rendered paste body
#include "stdafx.h"
#include "GLass_engine.h"
//#include <SDL.h>
//#include <SDL_opengl.h>
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;
}