"L. Spiro Engine"
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes

lsg::CFnd Class Reference

Most core graphics functions are found here. More...

#include <LSGFnd.h>

List of all members.

Static Public Member Functions

static LSE_INLINE LSVOID LSE_FCALL AssertError ()
static LSVOID LSE_CALL ApplyDefaultStates ()
static LSE_INLINE LSVOID LSE_FCALL Present ()
static LSE_INLINE const
CFndBase::LSG_METRICS LSE_CALL 
GetMetrics ()
static LSE_INLINE
CRenderTargetManager *LSE_CALL 
RenderTargetMan ()
static LSE_INLINE
CPostProcessor *LSE_CALL 
PostProcessor ()
static LSE_INLINE LSVOID LSE_FCALL Clear (LSUINT32 _ui32Mask)
static LSE_INLINE LSVOID LSE_FCALL ClearAll ()
static LSE_INLINE LSVOID LSE_CALL SetClearColor (LSREAL _fR, LSREAL _fG, LSREAL _fB, LSREAL _fA)
static LSE_INLINE LSVOID LSE_FCALL SetClearDepth (LSREAL _fValue)
static LSE_INLINE LSVOID LSE_FCALL SetViewport (LSINT32 _i32X, LSINT32 _i32Y, LSINT32 _i32Width, LSINT32 _i32Height)
static LSE_INLINE LSVOID LSE_CALL SaveViewPort ()
static LSE_INLINE LSVOID LSE_CALL RestoreViewPort ()
static LSE_INLINE LSVOID LSE_CALL SetFlipVertical (LSBOOL _bVal)
static LSE_INLINE LSVOID LSE_FCALL SetDepthTest (LSBOOL _bVal)
static LSE_INLINE LSVOID LSE_FCALL SetDepthFunc (LSG_DEPTH_TEST _dtFunc)
static LSE_INLINE LSVOID LSE_FCALL SetDepthWrite (LSBOOL _bVal)
static LSE_INLINE LSVOID LSE_FCALL SetCulling (LSBOOL _bVal)
static LSE_INLINE LSVOID LSE_FCALL SetCullMode (LSG_CULL_MODES _cmMode)
static LSE_INLINE
LSG_CULL_MODES LSE_CALL 
GetCullMode ()
static LSE_INLINE
LSG_CULL_MODES LSE_CALL 
GetReverseCullMode (LSG_CULL_MODES _cmMode)
static LSE_INLINE LSVOID LSE_FCALL SetBlendEnabled (LSBOOL _bVal)
static LSE_INLINE LSVOID LSE_FCALL SetBlendFunc (LSG_BLEND_MODES _bmSrc, LSG_BLEND_MODES _bmDst)
static LSE_INLINE LSVOID LSE_FCALL SetFillMode (LSG_FILL_MODES _fmMode)
static LSE_INLINE LSBOOL LSE_FCALL BeginRender ()
static LSE_INLINE LSVOID LSE_FCALL EndRender ()
static LSE_INLINE LSVOID LSE_FCALL SetScreenSize (LSUINT32 _ui32Width, LSUINT32 _ui32Height)
static LSE_INLINE LSUINT32 LSE_CALL GetScreenWidth ()
static LSE_INLINE LSUINT32 LSE_CALL GetScreenHeight ()
static LSE_INLINE LSVOID LSE_FCALL SetWorldMatrix (const CMatrix4x4 &_mMat)
static LSE_INLINE const
CMatrix4x4 &LSE_FCALL 
GetWorldMatrix ()
static LSE_INLINE LSVOID LSE_FCALL SetViewMatrix (const CMatrix4x4 &_mMat)
static LSE_INLINE const
CMatrix4x4 &LSE_FCALL 
GetViewMatrix ()
static LSE_INLINE LSVOID LSE_FCALL SetProjMatrix (const CMatrix4x4 &_mMat)
static LSE_INLINE const
CMatrix4x4 &LSE_FCALL 
GetProjMatrix ()
static LSE_INLINE CMatrix4x4
LSE_CALL 
OffsetOrtho (LSREAL _fLeft, LSREAL _fRight, LSREAL _fBottom, LSREAL _fTop, LSREAL _fNear, LSREAL _fFar)
static LSE_INLINE LSVOID LSE_FCALL SetDiffuseMaterial (const CVector4 &_vColor)
static LSE_INLINE LSVOID LSE_FCALL SetAmbientMaterial (const CVector4 &_vColor)
static LSE_INLINE LSVOID LSE_FCALL SetEmissiveMaterial (const CVector4 &_vColor)
static LSE_INLINE LSVOID LSE_FCALL SetSpecularMaterial (const CVector4 &_vColor)
static LSE_INLINE LSVOID LSE_FCALL SetMaterialPower (LSREAL _fPower)
static LSE_INLINE LSVOID LSE_FCALL SetRoughness (LSREAL _fValue)
static LSE_INLINE LSVOID LSE_FCALL SetReflectivity (LSREAL _fValue)
static LSE_INLINE LSVOID LSE_FCALL SetAnisotropy (LSREAL _fX, LSREAL _fY)
static LSE_INLINE LSVOID LSE_FCALL DisableLight (LSUINT32 _ui32Slot)
static LSE_INLINE LSVOID LSE_FCALL SetDirectionalLight (LSUINT32 _ui32Slot, const CVector3 &_vDir, const CVector3 &_vDiffuse=CVector3(LSM_ONE, LSM_ONE, LSM_ONE), const CVector3 &_vAmbient=CVector3(LSM_ZERO, LSM_ZERO, LSM_ZERO), const CVector3 &_vSpecular=CVector3(LSM_ONE, LSM_ONE, LSM_ONE))
static LSE_INLINE LSVOID LSE_FCALL SetHemisphereGroundColor (const CVector3 &_vColor)
static LSE_INLINE LSVOID LSE_FCALL SetHemisphereSkyColor (const CVector3 &_vColor)
static LSE_INLINE LSVOID LSE_FCALL SetHemisphereLighting (LSBOOL _bVal)
static LSE_INLINE LSBOOL LSE_FCALL GetHemisphereLighting ()
static LSE_INLINE LSBOOL LSE_FCALL AnyLightsActive ()
static LSE_INLINE LSVOID LSE_FCALL SetShadowMapActive (LSBOOL _bVal)
static LSE_INLINE LSBOOL LSE_CALL GetShadowMapActive ()
static LSE_INLINE const
CMatrix4x4 &LSE_CALL 
GetShadowMapMatrix ()
static LSE_INLINE LSVOID LSE_CALL SetShadowMapMatrix (const CMatrix4x4 &_mMat)
static LSE_INLINE LSVOID LSE_CALL SetShadowMapUVDepthFactors (LSREAL _fU, LSREAL _fV, LSREAL _fDepth)
static LSE_INLINE LSVOID LSE_CALL SetShadowMapCasterSize (LSREAL _fSize)
static LSE_INLINE LSVOID LSE_CALL SetGaussian (LSFLOAT _fVal)
static LSE_INLINE LSFLOAT LSE_CALL GetGaussian ()
static LSE_INLINE LSVOID LSE_CALL SetExposure (LSFLOAT _fVal)
static LSE_INLINE LSFLOAT LSE_CALL GetExposure ()
static LSE_INLINE LSVOID LSE_CALL SetBrightCutoff (LSFLOAT _fVal)
static LSE_INLINE LSFLOAT LSE_CALL GetBrightCutoff ()
static LSE_INLINE LSVOID LSE_CALL SetTimeSinceLastRender (LSFLOAT _fVal)
static LSE_INLINE LSFLOAT LSE_CALL GetTimeSinceLastRender ()
static LSE_INLINE LSVOID LSE_FCALL SetShader (CShader *_psShader)
static LSE_INLINE CShader
*LSE_FCALL 
GetShader ()
static LSVOID LSE_FCALL Render (LSUINT32 _ui32TotalPrimitives, const CIndexBuffer *_pibIndexBuffer=NULL)
static LSE_INLINE LSVOID LSE_FCALL SetMakeDepthCopy (LSBOOL _bVal)
static LSE_INLINE LSBOOL LSE_CALL GetMakeDepthCopy ()
static LSE_INLINE LSVOID LSE_FCALL SetMakeNormalCopy (LSBOOL _bVal)
static LSE_INLINE LSBOOL LSE_CALL GetMakeNormalCopy ()
static LSE_INLINE LSBOOL LSE_CALL NonPo2 ()
static LSE_INLINE LSUINT64 LSE_CALL GetTrianglesDrawn ()
static LSE_INLINE LSVOID LSE_CALL ClearTriangles ()
static LSE_INLINE
CVertexBuffer *LSE_CALL 
GetPostProcVertBuf ()
static LSBOOL LSE_CALL PreparePostProcess (LSUINT32 _ui32Width, LSUINT32 _ui32Height)

Static Protected Member Functions

static LSVOID LSE_CALL ApplyLightsToCurrentShader ()

Static Protected Attributes

static LSUINT64 m_ui64TrianglesDrawn

Detailed Description

Most core graphics functions are found here.

Class CFnd Description: Most core graphics functions are found here.


Member Function Documentation

LSE_INLINE LSBOOL LSE_FCALL lsg::CFnd::AnyLightsActive ( ) [static]

Gets whether or not any lights are active.

Returns:
Returns true if any lights are active.
static LSVOID LSE_CALL lsg::CFnd::ApplyDefaultStates ( ) [static]

Apply the default graphics states.

static LSVOID LSE_CALL lsg::CFnd::ApplyLightsToCurrentShader ( ) [static, protected]

Apply lighting data to the current shader.

LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::AssertError ( ) [static]

In OpenGL and OpenGL ES debug builds, this checks the error state of OpenGL. In all other cases, this is an empty call.

LSE_INLINE LSBOOL LSE_FCALL lsg::CFnd::BeginRender ( ) [static]

Begin rendering. Must be called once per frame only, before any rendering takes place.

Returns:
Returns true if the rendering device is ready.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::Clear ( LSUINT32  _ui32Mask) [static]

Clear the active buffer of the given type(s).

Parameters:
_ui32MaskThe buffer(s) to clear. Must be one or more LSG_BUFFERS enumerated values.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::ClearAll ( ) [static]

Clear all active buffers.

LSE_INLINE LSVOID LSE_CALL lsg::CFnd::ClearTriangles ( ) [static]

Clear the number of triangles drawn.

LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::DisableLight ( LSUINT32  _ui32Slot) [static]

Disable a light at the given index.

Parameters:
_ui32SlotIndex of the light to disable.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::EndRender ( ) [static]

End rendering. Must be called once per frame only, after all rendering is done.

LSE_INLINE LSFLOAT LSE_CALL lsg::CFnd::GetBrightCutoff ( ) [static]

Gets the bright cut-off.

Returns:
Returns the bright cut-off.
LSE_INLINE LSG_CULL_MODES LSE_CALL lsg::CFnd::GetCullMode ( ) [static]

Gets the cull winding order.

Returns:
Returns the current cull mode.
LSE_INLINE LSFLOAT LSE_CALL lsg::CFnd::GetExposure ( ) [static]

Gets the exposure.

Returns:
Returns the exposure.
LSE_INLINE LSFLOAT LSE_CALL lsg::CFnd::GetGaussian ( ) [static]

Gets the gaussian value.

Returns:
Returns the gaussian value.
LSE_INLINE LSBOOL LSE_FCALL lsg::CFnd::GetHemisphereLighting ( ) [static]

Gets whether hemisphere lighting is enabled or not.

Returns:
Returns true if hemisphere lighting is enabled, false otherwise.
LSE_INLINE LSBOOL LSE_CALL lsg::CFnd::GetMakeDepthCopy ( ) [static]

Gets whether or not the creation of depth copies is desired.

Returns:
Returns non-zero if making a depth copy is enabled.
LSE_INLINE LSBOOL LSE_CALL lsg::CFnd::GetMakeNormalCopy ( ) [static]

Gets whether or not the creation of normal copies is desired.

Returns:
Returns non-zero if making a normal copy is enabled.
LSE_INLINE const CFndBase::LSG_METRICS LSE_CALL lsg::CFnd::GetMetrics ( ) [static]

Gets the system metrics.

Returns:
Returns the system metrics.
LSE_INLINE CVertexBuffer *LSE_CALL lsg::CFnd::GetPostProcVertBuf ( ) [static]

Gets the post-processing vertex buffer.

Returns:
Returns a pointer to the post-processing vertex buffer or NULL if it could not be created.
LSE_INLINE const CMatrix4x4 &LSE_FCALL lsg::CFnd::GetProjMatrix ( ) [static]

Gets the projection matrix.

Returns:
Returns a constant reference to the projection matrix.
LSE_INLINE LSG_CULL_MODES LSE_CALL lsg::CFnd::GetReverseCullMode ( LSG_CULL_MODES  _cmMode) [static]

Gets the opposite culling mode from the one given.

Parameters:
_cmModeThe culling mode whose opposite is to be returned.
Returns:
Return the culling mode that represents the opposite of the given one.
LSE_INLINE LSUINT32 LSE_CALL lsg::CFnd::GetScreenHeight ( ) [static]

Gets the screen height.

Returns:
Returns the screen height.
LSE_INLINE LSUINT32 LSE_CALL lsg::CFnd::GetScreenWidth ( ) [static]

Gets the screen width.

Returns:
Returns the screen width.
LSE_INLINE CShader *LSE_FCALL lsg::CFnd::GetShader ( ) [static]

Gets the current shader. If no shader is set, NULL is returned.

Returns:
Returns the current shader or NULL.
LSE_INLINE LSBOOL LSE_CALL lsg::CFnd::GetShadowMapActive ( ) [static]

Gets whether or not there is a shadow map active in the highest available texture slot.

Returns:
Returns true if there is a shadow map active in the highest available texture slot.
LSE_INLINE const CMatrix4x4 &LSE_CALL lsg::CFnd::GetShadowMapMatrix ( ) [static]

Gets the shadow map matrix.

Returns:
Returns the current shadow map matrix.
LSE_INLINE LSFLOAT LSE_CALL lsg::CFnd::GetTimeSinceLastRender ( ) [static]

Gets the time since the last render in seconds.

Returns:
Returns the time since the last render.
LSE_INLINE LSUINT64 LSE_CALL lsg::CFnd::GetTrianglesDrawn ( ) [static]

Gets the number of triangles drawn.

Returns:
Returns the number of triangles drawn.
LSE_INLINE const CMatrix4x4 &LSE_FCALL lsg::CFnd::GetViewMatrix ( ) [static]

Gets the view matrix.

Returns:
Returns a constant reference to the view matrix.
LSE_INLINE const CMatrix4x4 &LSE_FCALL lsg::CFnd::GetWorldMatrix ( ) [static]

Gets the world matrix.

Returns:
Returns a constant reference to the world matrix.
LSE_INLINE LSBOOL LSE_CALL lsg::CFnd::NonPo2 ( ) [static]

Are non-power-of-2 textures supported?

Returns:
Returns true if non-power-of-2 textures supported.
LSE_INLINE CMatrix4x4 LSE_CALL lsg::CFnd::OffsetOrtho ( LSREAL  _fLeft,
LSREAL  _fRight,
LSREAL  _fBottom,
LSREAL  _fTop,
LSREAL  _fNear,
LSREAL  _fFar 
) [static]

Creates an orthogonal matrix that accounts for any pixel offsets considered by the API. For example, in OpenGL, [0,0] reads the upper-left corner of the pixel, whereas in Direct3D 9 it reads the center of the pixel.

Parameters:
_tLeftMinimum x-value of the view volume.
_tRightMaximum x-value of the view volume.
_tBottomMinimum y-value of the view volume.
_tTopMaximum y-value of the view volume.
_tNearMinimum z-value of the view volume.
_tFarMaximum z-value of the view volume.
Returns:
Returns the offset orthogonal matrix suitable for blitting to the screen.
LSE_INLINE CPostProcessor *LSE_CALL lsg::CFnd::PostProcessor ( ) [static]

Gets the system post processor.

Returns:
Returns a pointer to the system post processor.
static LSBOOL LSE_CALL lsg::CFnd::PreparePostProcess ( LSUINT32  _ui32Width,
LSUINT32  _ui32Height 
) [static]

Prepares for a post-processing pass. Sets blending modes, culling, depth-testing, etc., and applies a world matrix, view matrix, and projection matrix. It also activates the vertex buffer returned by GetPostProcVertBuf() to stream 0.

Parameters:
_ui32WidthWidth of the render target to which the post processing will be output.
_ui32HeightHeight of the render target to which the post processing will be output.
Returns:
Returns true if the vertex buffer could be activated.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::Present ( ) [static]

Present the backbuffer to the screen.

static LSVOID LSE_FCALL lsg::CFnd::Render ( LSUINT32  _ui32TotalPrimitives,
const CIndexBuffer *  _pibIndexBuffer = NULL 
) [static]

Render all activate vertex/index buffers.

Parameters:
_ui32TotalPrimitivesThe total number of primitives to render.
_pibIndexBufferAn optional index buffer to use for the render.
LSE_INLINE CRenderTargetManager *LSE_CALL lsg::CFnd::RenderTargetMan ( ) [static]

Gets the system render target manager.

Returns:
Returns a pointer to the system render target manager.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::RestoreViewPort ( ) [static]

Restore a saved viewport.

LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SaveViewPort ( ) [static]

Save the current viewport dimensions. Used in conjunction with RestoreViewPort().

LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetAmbientMaterial ( const CVector4 &  _vColor) [static]

Sets the ambient material value.

Parameters:
_vColorThe ambient color to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetAnisotropy ( LSREAL  _fX,
LSREAL  _fY 
) [static]

Sets the anisotropy terms.

Parameters:
_fXThe X term.
_fYThe Y term.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetBlendEnabled ( LSBOOL  _bVal) [static]

Enable or disable blending with the backbuffer.

Parameters:
_bValWhether blending with the backbuffer is enabled or disabled.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetBlendFunc ( LSG_BLEND_MODES  _bmSrc,
LSG_BLEND_MODES  _bmDst 
) [static]

Sets the blend functions for the source (color output from a shader) and destination (the current backbuffer).

Parameters:
_bmSrcThe source blend function.
_bmDstThe destination blend function.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetBrightCutoff ( LSFLOAT  _fVal) [static]

Sets the bright cut-off.

Parameters:
_fValThe new bright cut-off.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetClearColor ( LSREAL  _fR,
LSREAL  _fG,
LSREAL  _fB,
LSREAL  _fA 
) [static]

Sets the clear color.

Parameters:
_fRRed value.
_fGGreen value.
_fBBlue value.
_fAAlpha value.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetClearDepth ( LSREAL  _fValue) [static]

Sets the depth clear value.

Parameters:
_fValueThe new depth clear value.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetCulling ( LSBOOL  _bVal) [static]

Sets culling to on or off.

Parameters:
_bValWhether culling is enabled or disabled.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetCullMode ( LSG_CULL_MODES  _cmMode) [static]

Sets the cull winding order.

Parameters:
_cmModeThe cull winding.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetDepthFunc ( LSG_DEPTH_TEST  _dtFunc) [static]

Sets the depth-test function.

Parameters:
_dtFuncThe depth-test function to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetDepthTest ( LSBOOL  _bVal) [static]

Sets depth testing to on or off.

Parameters:
_bValWhether depth testing is enabled or disabled.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetDepthWrite ( LSBOOL  _bVal) [static]

Sets depth writing to on or off.

Parameters:
_bValWhether depth writing is enabled or disabled.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetDiffuseMaterial ( const CVector4 &  _vColor) [static]

Sets the diffuse material value.

Parameters:
_vColorThe diffuse color to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetDirectionalLight ( LSUINT32  _ui32Slot,
const CVector3 &  _vDir,
const CVector3 &  _vDiffuse = CVector3( LSM_ONE, LSM_ONE, LSM_ONE ),
const CVector3 &  _vAmbient = CVector3( LSM_ZERO, LSM_ZERO, LSM_ZERO ),
const CVector3 &  _vSpecular = CVector3( LSM_ONE, LSM_ONE, LSM_ONE ) 
) [static]

Sets a directional light in a given slot.

Parameters:
_ui32SlotThe slot into which to set the directional light.
_vDirThe direction of the light.
_vDiffuseThe diffuse color of the light.
_vAmbientThe ambient color of the light.
_vSpecularThe specular color of the light.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetEmissiveMaterial ( const CVector4 &  _vColor) [static]

Sets the emissive material value.

Parameters:
_vColorThe emissive color to set.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetExposure ( LSFLOAT  _fVal) [static]

Sets the exposure.

Parameters:
_fValThe new exposure.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetFillMode ( LSG_FILL_MODES  _fmMode) [static]

Sets the fill mode.

Parameters:
_fmModeThe fill mode to set.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetFlipVertical ( LSBOOL  _bVal) [static]

Sets the flag that enables or disables vertically flipping the render. Typically used only by render targets.

Parameters:
_bValWhether depth vertical flipped rendering is enabled or disabled.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetGaussian ( LSFLOAT  _fVal) [static]

Sets the gaussian value.

Parameters:
_fValThe new gaussian value.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetHemisphereGroundColor ( const CVector3 &  _vColor) [static]

Sets the hemisphere-lighting ground color.

Parameters:
_vColorThe value to apply to hemisphere-lighting's ground color.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetHemisphereLighting ( LSBOOL  _bVal) [static]

Sets hemisphere lighting to enabled or disabled.

Parameters:
_bValThe value to which to set hemisphere lighting.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetHemisphereSkyColor ( const CVector3 &  _vColor) [static]

Sets the hemisphere-lighting sky color.

Parameters:
_vColorThe value to apply to hemisphere-lighting's sky color.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetMakeDepthCopy ( LSBOOL  _bVal) [static]

Sets shaders to either make a depth copy or not. Only works if depth buffers are not directly readable.

Parameters:
_bValThe new value.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetMakeNormalCopy ( LSBOOL  _bVal) [static]

Sets shaders to either make a normal copy or not.

Parameters:
_bValThe new value.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetMaterialPower ( LSREAL  _fPower) [static]

Sets the material power value. Must be between 0 and 128.

Parameters:
_fPowerThe new material specular power.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetProjMatrix ( const CMatrix4x4 &  _mMat) [static]

Sets the projection matrix.

Parameters:
_mMatthe projection matrix to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetReflectivity ( LSREAL  _fValue) [static]

Sets the Cook-Torrance reflectivity value.

Parameters:
_fValueThe value to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetRoughness ( LSREAL  _fValue) [static]

Sets the Cook-Torrance roughness value.

Parameters:
_fValueThe value to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetScreenSize ( LSUINT32  _ui32Width,
LSUINT32  _ui32Height 
) [static]

Sets the screen dimensions.

Parameters:
_ui32WidthThe new screen width.
_ui32Heightthe new screen height.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetShader ( CShader _psShader) [static]

Sets the current shader. A shader must be set in order to render.

Parameters:
_psShaderThe shader to use for the current render. NULL is a valid value, but rendering without a shader is not permitted.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetShadowMapActive ( LSBOOL  _bVal) [static]

Sets whether or not there is a shadow map active in the highest available texture slot.

Parameters:
_bValThe value to which to set the flag indicating a shadow-map texture is active in the highest available slot.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetShadowMapCasterSize ( LSREAL  _fSize) [static]

Set the shadow map caster size.

Parameters:
_fSizeSize of the light casting the shadow in the current shadow map.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetShadowMapMatrix ( const CMatrix4x4 &  _mMat) [static]

Sets the shadow map matrix.

Parameters:
_mMatThe matrix to set.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetShadowMapUVDepthFactors ( LSREAL  _fU,
LSREAL  _fV,
LSREAL  _fDepth 
) [static]

Sets the shadow map U, V, and depth scales. The U and V scales are used to map from world dimensions to the shadow map U and V dimensions, and the depth is used to convert from the light's projected depth to actual depth units.

Parameters:
_fUThe U conversion factor.
_fVThe V conversion factor.
_fDepthThe depth conversion factor.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetSpecularMaterial ( const CVector4 &  _vColor) [static]

Sets the specular material value.

Parameters:
_vColorThe specular color to set.
LSE_INLINE LSVOID LSE_CALL lsg::CFnd::SetTimeSinceLastRender ( LSFLOAT  _fVal) [static]

Sets the time since the last render in seconds.

Parameters:
_fValThe new time since the last render.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetViewMatrix ( const CMatrix4x4 &  _mMat) [static]

Sets the view matrix.

Parameters:
_mMatthe view matrix to set.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetViewport ( LSINT32  _i32X,
LSINT32  _i32Y,
LSINT32  _i32Width,
LSINT32  _i32Height 
) [static]

Sets the viewport dimensions.

Parameters:
_i32XX component of the lower-left view rectangle in pixels. Defaults to 0.
_i32YY component of the lower-left view rectangle in pixels. Defaults to 0.
_i32WidthWidth of the viewport.
_i32HeightHeight of the viewport.
LSE_INLINE LSVOID LSE_FCALL lsg::CFnd::SetWorldMatrix ( const CMatrix4x4 &  _mMat) [static]

Sets the world matrix.

Parameters:
_mMatthe world matrix to set.

Member Data Documentation

LSUINT64 lsg::CFnd::m_ui64TrianglesDrawn [static, protected]

The number of triangles drawn.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator