Public feed #602468

Yes

public cpp v1 · immutable
Raw Edit
·published 2007-07-04 02:29 UTC
rendered paste body
	while(1)	{		SDL_Event Event;			while (SDL_PollEvent(&Event))				switch(Event.type)				{					case SDL_QUIT:						return 0;					break;				}		glClear(GL_COLOR_BUFFER_BIT);		int X, Y;		SDL_GetMouseState(&X, &Y);				glDisable(GL_POLYGON_SMOOTH);    		glPushMatrix();				glColor4f(1.0f,1.0f,1.0f,1.0f);				glRectf( 0, 0, 1024, 768 );			glPopMatrix();		glEnable(GL_POLYGON_SMOOTH);		SDL_GL_SwapBuffers();	}