22 #ifndef INCLUDED_SHADOWMAP 23 #define INCLUDED_SHADOWMAP 162 #endif // INCLUDED_SHADOWMAP void SetDepthTextureBits(int bits)
SetDepthTextureBits: Sets the number of bits to use for depth textures when enabled.
Definition: ShadowMap.cpp:596
int GetDepthTextureBits() const
GetDepthTextureBits: Return the number of bits to use for depth textures when enabled.
Definition: ShadowMap.cpp:591
void SetupFrame(const CCamera &camera, const CVector3D &lightdir)
SetupFrame: Configure light space for the given camera and light direction, create the shadow texture...
Definition: ShadowMap.cpp:157
Struct ShadowMapInternals: Internal data for the ShadowMap implementation.
Definition: ShadowMap.cpp:48
Definition: Vector3D.h:28
GLuint GetTexture() const
GetTexture: Retrieve the OpenGL texture object name that contains the shadow map. ...
Definition: ShadowMap.cpp:578
Class ShadowMap: Maintain the shadow map texture and perform necessary OpenGL setup, including matrix calculations.
Definition: ShadowMap.h:39
void AddShadowCasterBound(const CBoundingBoxAligned &bounds)
Add the bounding box of an object that will cast a shadow.
Definition: ShadowMap.cpp:218
Definition: Matrix3D.h:33
void AddShadowReceiverBound(const CBoundingBoxAligned &bounds)
Add the bounding box of an object that will receive a shadow.
Definition: ShadowMap.cpp:226
int GetWidth() const
GetWidth: Return the width of the depth texture.
Definition: ShadowMap.cpp:613
void RenderDebugTexture()
Visualize shadow map texture to help in debugging.
Definition: ShadowMap.cpp:717
T bits(T num, size_t lo_idx, size_t hi_idx)
extract the value of bits hi_idx:lo_idx within num
Definition: bits.h:97
void BeginRender()
BeginRender: Set OpenGL state for rendering into the shadow map texture.
Definition: ShadowMap.cpp:507
const CMatrix3D & GetTextureMatrix() const
GetTextureMatrix: Retrieve the world-space to shadow map texture coordinates transformation matrix...
Definition: ShadowMap.cpp:583
void RenderDebugBounds()
Visualize shadow mapping calculations to help in debugging and optimal shadow map usage...
Definition: ShadowMap.cpp:625
Definition: BoundingBoxAligned.h:35
~ShadowMap()
Definition: ShadowMap.cpp:124
void RecreateTexture()
RecreateTexture: Destroy the current shadow texture and force creation of a new one.
Definition: ShadowMap.cpp:139
ShadowMapInternals * m
Definition: ShadowMap.h:159
void EndRender()
EndRender: Finish rendering into the shadow map.
Definition: ShadowMap.cpp:558
CFrustum GetShadowCasterCullFrustum()
Compute the frustum originating at the light source, that encompasses all the objects passed into Add...
Definition: ShadowMap.cpp:234
int GetHeight() const
GetHeight: Return the height of the depth texture.
Definition: ShadowMap.cpp:618
ShadowMap()
Definition: ShadowMap.cpp:102