//Called after the window and OpenGL are initialized. Called exactly once, before the main loop. void init() { InitializeProgram(); InitializeVertexBuffer(); InitializeVertexArrayObjects(); glEnable(GL_CULL_FACE); glCullFace(GL_BACK); glFrontFace(GL_CW); }
void init() { InitializeProgram(); InitializeVertexBuffer(); InitializeVertexArrayObjects(); glEnable(GL_CULL_FACE); glCullFace(GL_BACK); glFrontFace(GL_CW); glEnable(GL_DEPTH_TEST); glDepthMask(GL_TRUE); glDepthFunc(GL_LEQUAL); glDepthRange(0.0f, 1.0f); }