O'Reilly logo

Computer Graphics Through OpenGL, 2nd Edition by Sumanta Guha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required