RenderTexTargetBinManager
Engine/source/renderInstance/renderTexTargetBinManager.h
Public Types
TargetSizeType { WindowSize = 0 WindowSizeScaled FixedSize }
Private Types
Parent
Public Static Attributes
Protected Attributes
bool
bool
Public Functions
getTargetTexture(U32 mrtIndex, S32 chainIndex)
bool
onAdd()
Called when the object is added to the sim.
setTargetChainLength(const U32 chainLength)
bool
setTargetFormat(const GFXFormat & newTargetFormat)
setTargetFormatConsole(const S32 & fmt)
bool
setTargetSize(const Point2I & newTargetSize)
bool
Force a target update.
Public Static Functions
Protected Functions
bool
Resolves the active render target, pops the render target from _onPreRender, and sets debug info.
bool
_onPreRender(SceneRenderState * state, bool preserve)
Pushes the active render target, and sets itself as a render target.
The callback used to get texture events.
bool
bool
Detailed Description
Public Types
TargetSizeType
Enumerator
- WindowSize = 0
- WindowSizeScaled
- FixedSize
Private Types
typedef RenderBinManager Parent
Public Static Attributes
const U32 DefaultTargetChainLength
const GFXFormat DefaultTargetFormat
const U32 DefaultTargetSize
Protected Attributes
bool m_NeedsOnPostRender
NamedTexTarget mNamedTarget
U32 mNumRenderTargets
bool mPreserve
GFXTextureTargetRef * mTargetChain
U32 mTargetChainIdx
U32 mTargetChainLength
GFXTexHandle ** mTargetChainTextures
GFXFormat mTargetFormat
Point2F mTargetScale
Point2I mTargetSize
TargetSizeType mTargetSizeType
Public Functions
RenderTexTargetBinManager(const RenderInstType & ritype, F32 renderOrder, F32 processAddOrder, const GFXFormat targetFormat, const Point2I & targetSize, const U32 targetChainLength)
~RenderTexTargetBinManager()
DECLARE_CONOBJECT(RenderTexTargetBinManager )
getTargetChainLength()
getTargetFormat()
getTargetFormatConsole()
getTargetTexture(U32 mrtIndex, S32 chainIndex)
onAdd()
Reimplemented from: SimObject
setTargetChainLength(const U32 chainLength)
Reimplemented by: RenderParticleMgr
setTargetFormat(const GFXFormat & newTargetFormat)
setTargetFormatConsole(const S32 & fmt)
setTargetSize(const Point2I & newTargetSize)
Reimplemented by: RenderDeferredMgr
updateTargets()
Force a target update.
Public Static Functions
initPersistFields()
Protected Functions
_getTextureTarget(const U32 idx)
_handleGFXEvent(GFXDevice::GFXDeviceEventType event)
Reimplemented by: RenderParticleMgr
_onPostRender()
Resolves the active render target, pops the render target from _onPreRender, and sets debug info.
_onPreRender(SceneRenderState * state, bool preserve)
Pushes the active render target, and sets itself as a render target.
The target is then cleared using 'mTargetClearColor', viewport is set properly, and true is returned, and '_onPostRender' must be called after rendering is complete. If the return value is false, than '_onPostRender' should not be called.
Parameters:
preserve | If set to true, the contents of the current render target |
_onTextureEvent(GFXTexCallbackCode code)
The callback used to get texture events.
_setupTargets()
_teardownTargets()
_updateTargets()
Reimplemented by: RenderDeferredMgr