Chapter 7
Basics freeglut and GLEW for OpenGL rendering
7.5 Wrapping freeglut in a C++ class
One of the simplest libraries proving window creation and user interaction is a GLUT library. It is the cross-platform library written for OpenGL and in OpenGL style. This library contains a small number of functions allowing the user to create one or more windows for OpenGL rendering and process events from the mouse and keyboard.
The GLUT library supports only basic window events – the window has been resized, the window needs to draw its contents, a key on the keyboard has been pressed or released, a mouse has moved or a mouse button ...
Get Computer Graphics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.