New Paste :: Recent Pastes:: No Line Numbers
fix for ebp by DELTRON
1
int red = 1; //*================================================= // RenderFrame - All our drawing takes place here //*================================================= void RenderFrame (void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); SetOrthoProjection(); for (int y=0; y<32*(SCRHEIGHT/32); y+=32) { for (int x=0; x < SCRWIDTH; x = x + 32) { if (red == 1) glColor3f (1.0f,0.0,0.0); else glColor3f (0.4f,0.0,0.0); glBegin(GL_QUADS); glVertex2i(x, y); glVertex2i(x, y+32); glVertex2i(x+32,y+32); glVertex2i(x+32,y); glEnd(); if (red == 0) red = 1; else red = 0; } } ResetPersProjection(); }