I want my program to start in GL_FRONT rendering mode but it always starts in GL_FRONT_AND_BACK mode.
I try calling “glPolygonMode(GL_FRONT, GL_FILL);” at different location in the code, before the first glBegin(), with no result. But I seem to de able to chance the later in to program, under some circumstances…
glPolygonMode(GL_FRONT, GL_FILL); //First call, no effect
glBegin (GL_QUADS);
PlotBorders(MAX_X + 1, MIN_X, MAX_Y + 1, MIN_Y, MAX_Z + 1, MIN_Z);
plot_apple(apple_ptr);
plot_snake(snake_ptr);
glEnd();
SwapBuffers(g_hDC); // Swap the backbuffers to the foreground
glPolygonMode(GL_FRONT, GL_FILL); // Calling second time, no effect
If anyone has any idea why, id be gratefull…
/Lidestro