OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition
by Dave Shreiner, Graham Sellers, John M. Kessenich, Bill M. Licea-Kane
Basic Texture Types
OpenGL supports many types of texture object of varying dimensionalities and layout. Each texture object represents a set of images that make up the complete texture. Each image is a 1D, 2D, or 3D array of texels and many images may be “stacked” one on top of another to form what is known as a mipmap pyramid. More information about mipmaps, how they affect texturing, and how to create them is covered in “Using and Generating Mipmaps” on Page 333. Furthermore, textures may contain arrays of 1D or 2D slices—such textures are known as array textures, and each element of the array is known as a slice. A cube map is a special case of an array texture that has a multiple of six slices. A single cube-map texture has exactly six ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access