![]() ![]() GlClearColor(0.0f, 0.0f, 0.0f, 1.0f) // Set background color to black and opaque Whenever the window needs to be re-painted. Call back when the window first appears and #include // GLUT, include glu.h and gl.h /* Handler for window-repaint event. * To compile with -lfreeglut -lglu32 -lopengl32 * Tested under Eclipse CDT with MinGW/Cygwin and CodeBlocks with MinGW ![]() * GL01Hello.cpp: Test OpenGL/GLUT C/C++ Setup ![]() Make sure that you can run the " GL01Hello.cpp" described in " How to write OpenGL programs in C/C++", reproduced below: ![]()
0 Comments
Leave a Reply. |