Torque3D Documentation / _generateds / RenderTexTargetBinManager

RenderTexTargetBinManager

Engine/source/renderInstance/renderTexTargetBinManager.h

More...

Public Types

enum
TargetSizeType {
  WindowSize = 0
  WindowSizeScaled 
  FixedSize 
}

Private Types

Public Functions

RenderTexTargetBinManager(const RenderInstType & ritype, F32 renderOrder, F32 processAddOrder, const GFXFormat targetFormat, const Point2I & targetSize, const U32 targetChainLength)
getTargetTexture(U32 mrtIndex, S32 chainIndex)
bool

Called when the object is added to the sim.

bool
setTargetFormat(const GFXFormat & newTargetFormat)
bool
setTargetSize(const Point2I & newTargetSize)
bool

Force a target update.

Public Static Functions

Protected Functions

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.

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