Torque3D Documentation / _generateds / RenderObjectExample

RenderObjectExample

Engine/source/T3D/examples/renderObjectExample.h

More...

Private Types

enum
MaskBits {
  TransformMask = Parent::NextFreeMask << 0
  NextFreeMask = Parent::NextFreeMask << 1
}
Parent 
GFXVertexPCN
VertexType 

Public Functions

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Called when the SceneManager is ready for the registration of render instances.

Sets the Object -> World transform.

Instructs this object to read state data previously packed with packUpdate.

Public Static Functions

Detailed Description

Private Types

MaskBits

Enumerator

TransformMask = Parent::NextFreeMask << 0
NextFreeMask = Parent::NextFreeMask << 1
typedef SceneObject Parent 
typedef GFXVertexPCN VertexType 

Private Attributes

GFXStateBlockRef mNormalSB 
GFXStateBlockRef mReflectSB 
GFXVertexBufferHandle< VertexType > mVertexBuffer 

Public Functions

RenderObjectExample()

~RenderObjectExample()

createGeometry()

DECLARE_CONOBJECT(RenderObjectExample )

onAdd()

Reimplemented from: SceneObject

onRemove()

Reimplemented from: SceneObject

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: SceneObject

prepRenderImage(SceneRenderState * state)

Reimplemented from: SceneObject

render(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * overrideMat)

setTransform(const MatrixF & mat)

Reimplemented from: SceneObject

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: SceneObject

Public Static Functions

initPersistFields()