//sfml stuff(main function)
glClearDepth(1.f);
glClearColor(0.f,0.f,0.f,0.f);
/////z buffer
glEnable(GL_DEPTH_TEST);
glEnable(GL_COLOR_MATERIAL);
glDepthMask(GL_TRUE);
/////perspective projection
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(-20.f,1.f,1.f,200.f);
//sfml loading/first placement
//sfml main loop
//input
GameWind.SetActive();
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glBegin(GL_QUADS);
glVertex3f(3.f,3.f,3.f);
glVertex3f(3.f,6.f,3.f);
glVertex3f(6.f,6.f,3.f);
glVertex3f(6.f,3.f,3.f);
glColor3f(0.5f,0.8f,0.f);
glEnd();
//some subrect updating and then the drawing
the only thing that actually drew was the stuff that i set positions for BEFORE i cleared the gl window
if this is too vague then ill update xD
[/code]