Because I can't let it go ...
- Look at the Makefile
- -lGL means to link against the openGL library
- ls /usr/lib64/libGL*
- Everything else should be fine.
- Look at square.cpp
- Includes should make sense.
- #pragma - compiler specific directives
- This is entirely ignored by the GCC compiler.
- In main
- argc, argv
- glutInit() - initializes the glut library
- glutInitContext* - configure the machine for a specific version of openGL.
- glutInitDisplay* - What type of graphics will we support
- glutInitWindow* - where do we want the window and what size
- glutCreateWindow - actually create a version of the window
- GlutDisplayFunc, GlutReshapeFunc, GlutKeyboardFunc - set callbacks
- glewInit() - initialize glew
- setup () - local function wich sets up the graphics environment
- glutMainLoop()