Preparing to Send Data to OpenGL

OpenGL requires that all data be stored in buffer objects, which are just chunks of memory managed by the OpenGL server. Populating these buffers with data can occur in numerous ways, but one of the most common is using the glBufferData() command like in Example 1.1. There is some additional setup required with buffers, which we’ll cover in Chapter 3.

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth 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.