Torque3D Documentation / _generateds / GFXGLShaderConstBuffer

GFXGLShaderConstBuffer

Engine/source/gfx/gl/gfxGLShader.h

More...

Public Friends

Private Attributes

Public Functions

GFXGLShaderConstBuffer(GFXGLShader * shader, U32 bufSize, U8 * existingConstants)

Called by GFXGLDevice to activate this buffer.

The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

Return the shader that created this buffer.

Called when the shader this buffer references is reloaded.

When called the resource should restore all device sensitive information destroyed by zombify()

Set a shader constant.

Set a variable sized matrix shader constant.

set(GFXShaderConstHandle * handle, const MatrixF * mat, const U32 arraySize, const GFXShaderConstType matrixType)

Set a variable sized matrix shader constant from an array of matricies.

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

Private Functions

internalSet(GFXShaderConstHandle * handle, const ConstType & param)

Detailed Description

Public Friends

Private Attributes

U8 * mBuffer 
WeakRefPtr< GFXGLShader > mShader 

Public Functions

GFXGLShaderConstBuffer(GFXGLShader * shader, U32 bufSize, U8 * existingConstants)

~GFXGLShaderConstBuffer()

activate()

Called by GFXGLDevice to activate this buffer.

describeSelf()

Reimplemented from: GFXResource

getShader()

Reimplemented from: GFXShaderConstBuffer

onShaderReload(GFXGLShader * shader)

Called when the shader this buffer references is reloaded.

resurrect()

Reimplemented from: GFXResource

set(GFXShaderConstHandle * handle, const AlignedArray< F32 > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< Point2F > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< Point2I > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< Point3F > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< Point3I > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< Point4F > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< Point4I > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const AlignedArray< S32 > & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const F32 f)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const LinearColorF & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const MatrixF & mat, const GFXShaderConstType matrixType)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const MatrixF * mat, const U32 arraySize, const GFXShaderConstType matrixType)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const PlaneF & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const Point2F & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const Point2I & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const Point3F & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const Point3I & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const Point4F & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const Point4I & fv)

Reimplemented from: GFXShaderConstBuffer

set(GFXShaderConstHandle * handle, const S32 f)

Reimplemented from: GFXShaderConstBuffer

zombify()

Reimplemented from: GFXResource

Private Functions

internalSet(GFXShaderConstHandle * handle, const AlignedArray< ConstType > & fv)

internalSet(GFXShaderConstHandle * handle, const ConstType & param)