Chapter 3

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:

  1. Vertex arrays and their drawing commands: storing geometric data in a single location for efficient access.
  2. Vertex buffer objects: storage for vertex-related data on the graphics server to save client-to-server transfer time.
  3. Vertex array objects: encapsulating the set of calls defining an object’s vertex arrays.
  4. Display lists: “macros” to store frequently-invoked pieces of code.
  5. Drawing of text.
  6. Programming the mouse – for button clicks, turning the wheel and mouse motion.
  7. Programming non-ASCII keys. ...

Get Computer Graphics Through OpenGL, 2nd Edition 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.