182 Chapter 3 Renderers
classes also inform the graphics API about the new world matrix. The functions
SetProjector and GetProjector are used by special effects that need to inform the
renderer about a projector source, such as for projected textures, projected shadows,
and shadow maps.
The functions
GetExtension and GetCommentCharacter are implemented by the
derived classes to provide information used for loading shader programs from disk
and parsing them. All shader programs have an extension of
.wmsp (Wild Magic
Shader Program), but each graphics API has its ow n version of a program. The
OpenGL versions have the compound extension
.ogl.wmsp.TheGetExtension func-
tion for this renderer returns
ogl. The Direct3D renderer function returns dx9 and the