An OpenGL Toolbox
Before getting to animation and other fun stuff in the next chapter, here are a few practical skills worth acquiring first. Our goal this chapter is to learn the following frequently-used OpenGL programming devices:
- Vertex arrays and their drawing commands: storing geometric data in a single location for efficient access.
- Vertex buffer objects: storage for vertex-related data on the graphics server to save client-to-server transfer time.
- Vertex array objects: encapsulating the set of calls defining an object’s vertex arrays.
- Display lists: “macros” to store frequently-invoked pieces of code.
- Drawing of text.
- Programming the mouse – for button clicks, turning the wheel and mouse motion.
- Programming non-ASCII keys. ...