GFXGLShaderConstBuffer
Engine/source/gfx/gl/gfxGLShader.h
Public Friends
class
Private Attributes
Public Functions
GFXGLShaderConstBuffer(GFXGLShader * shader, U32 bufSize, U8 * existingConstants)
activate()
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.
onShaderReload(GFXGLShader * shader)
Called when the shader this buffer references is reloaded.
set(GFXShaderConstHandle * handle, const AlignedArray< F32 > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< Point2F > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< Point2I > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< Point3F > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< Point3I > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< Point4F > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< Point4I > & fv)
set(GFXShaderConstHandle * handle, const AlignedArray< S32 > & fv)
set(GFXShaderConstHandle * handle, const F32 f)
Set a shader constant.
set(GFXShaderConstHandle * handle, const LinearColorF & fv)
set(GFXShaderConstHandle * handle, const MatrixF & mat, const GFXShaderConstType matrixType)
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.
set(GFXShaderConstHandle * handle, const PlaneF & fv)
set(GFXShaderConstHandle * handle, const Point2F & fv)
set(GFXShaderConstHandle * handle, const Point2I & fv)
set(GFXShaderConstHandle * handle, const Point3F & fv)
set(GFXShaderConstHandle * handle, const Point3I & fv)
set(GFXShaderConstHandle * handle, const Point4F & fv)
set(GFXShaderConstHandle * handle, const Point4I & fv)
set(GFXShaderConstHandle * handle, const S32 f)
Private Functions
internalSet(GFXShaderConstHandle * handle, const AlignedArray< ConstType > & fv)
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)