glutTimerFunc
12345678910
inline void render(void) { glClear(GL_COLOR_BUFFER_BIT); glClearColor(1.0, 1.0, 1.0, 1.0); drawCube(0, 0, 0, 4, 0xFF, 0x00, 0x00); // draws a cube (defined earlier) gluLookAt(0, 0, -30, 0, 0, 0, 0, 1, 0); SwapBuffers(g_HDC); }