"L. Spiro Engine"
|
The base interface for all render targets. More...
#include <LSGRenderTargetInterface.h>
Public Member Functions | |
LSE_INLINE LSUINT32 LSE_CALL | GetWidth () const |
LSE_INLINE LSUINT32 LSE_CALL | GetHeight () const |
virtual LSBOOL LSE_CALL | SetsColorAutomatically () const |
LSE_INLINE LSUINT32 LSE_CALL | GetId () const |
Protected Member Functions | |
virtual LSBOOL LSE_CALL | SetAsColorRenderTarget (LSUINT32 _ui32Slot) const |
virtual LSBOOL LSE_CALL | SetAsDepthStencilRenderTarget () const |
virtual LSVOID LSE_CALL | EndAsRenderTarget () const |
Protected Attributes | |
LSUINT32 | m_ui32Id |
LSUINT32 | m_ui32Width |
LSUINT32 | m_ui32Height |
Static Protected Attributes | |
static LSUINT32 | m_ui32IdCounter |
static CCriticalSection | m_csBaseCrit |
Friends | |
class | CDirectX9RenderTargetManager |
class | CDirectX10RenderTargetManager |
class | CDirectX11RenderTargetManager |
class | COpenGlRenderTargetManager |
class | COpenGlEsRenderTargetManager |
The base interface for all render targets.
Class CRenderTargetInterface Description: The base interface for all render targets.
virtual LSVOID LSE_CALL lsg::CRenderTargetInterface::EndAsRenderTarget | ( | ) | const [protected, virtual] |
End its term as a render target.
Reimplemented in lsg::CDirectX11DepthStencilRenderTarget, lsg::CDirectX11FloatTexture, and lsg::CDirectX11RenderTarget.
LSE_INLINE LSUINT32 LSE_CALL lsg::CRenderTargetInterface::GetHeight | ( | ) | const |
Get the height of the surface.
LSE_INLINE LSUINT32 LSE_CALL lsg::CRenderTargetInterface::GetId | ( | ) | const |
Gets the unique ID of this render target, which can never be 0.
LSE_INLINE LSUINT32 LSE_CALL lsg::CRenderTargetInterface::GetWidth | ( | ) | const |
Get the width of the surface.
virtual LSBOOL LSE_CALL lsg::CRenderTargetInterface::SetAsColorRenderTarget | ( | LSUINT32 | _ui32Slot | ) | const [protected, virtual] |
Activate as a color render target.
_ui32Slot | The color slot into which to activate the render target. |
Reimplemented in lsg::CDirectX11RenderTarget.
virtual LSBOOL LSE_CALL lsg::CRenderTargetInterface::SetAsDepthStencilRenderTarget | ( | ) | const [protected, virtual] |
Activate as a depth/stencil render target.
Reimplemented in lsg::CDirectX11DepthStencilRenderTarget, and lsg::CDirectX11FloatTexture.
virtual LSBOOL LSE_CALL lsg::CRenderTargetInterface::SetsColorAutomatically | ( | ) | const [virtual] |
If this render target is a depth target and no color targets have been specified (in the render target manager), the render target manager will query the depth target to ask if it has automatically set color target 0. If so, this function should return true.
Reimplemented in lsg::CDirectX11FloatTexture.
CCriticalSection lsg::CRenderTargetInterface::m_csBaseCrit [static, protected] |
Thread safety.
LSUINT32 lsg::CRenderTargetInterface::m_ui32Height [protected] |
Height of the surface.
LSUINT32 lsg::CRenderTargetInterface::m_ui32Id [protected] |
ID of this render target.
LSUINT32 lsg::CRenderTargetInterface::m_ui32IdCounter [static, protected] |
ID counter.
LSUINT32 lsg::CRenderTargetInterface::m_ui32Width [protected] |
Width of the surface.