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
4.3 Render State 267
does not need to change when you add new effects. Thus, the core engine is isolated
from the addition of new effects. This is yet another manifestation of the open-closed
principle of object-oriented programming. The core engine is closed to changes, thus
protecting its integrity, but it is open to changes in that its interface supports the
needs of any new features added to the special effects system.
The
Spatial class has an interface to support attaching and detaching Effect ob-
jects. If the
Effect is attached to a Geometry object, the effect is considered to be a
local effect. Otherwise, the
Effect is attached to a Node object and the effect is con-
sidered to be a global effect. Effects such as projected textures have both
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