Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
212 Chapter 3 Renderers
Texture object is given its texture image and corresponding sampler information. The
image and sampler information are accessed by the graphics system when the texture
is loaded/enabled for drawing.
There is also a companion function to
OnLoadProgram named OnReleaseProgram.
This function simply decrements its reference to the shader program. If the shader
object is the last object to have a reference to the progr am, the program is automati-
cally destroyed.
The last line of code in
ShaderEffect::Load is a call to a virtual function Shader-
Effect::OnLoadPrograms
. This gives objects from a ShaderEffect-derived class to
perform postload operations. The most common operation is to provide local stor-
age for user-defined constants. ...
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.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303