HatchitGraphics
Public Member Functions | List of all members
Hatchit::Graphics::ShaderVariableChunk Class Reference

Public Member Functions

 ShaderVariableChunk (std::vector< Resource::ShaderVariable * > variables)
 Constructs a ShaderVariableChunk. More...
 
bool SetInt (size_t offset, uint32_t data)
 
bool SetDouble (size_t offset, double data)
 
bool SetFloat (size_t offset, float data)
 
bool SetFloat2 (size_t offset, Math::Vector2 data)
 
bool SetFloat3 (size_t offset, Math::Vector3 data)
 
bool SetFloat4 (size_t offset, Math::Vector4 data)
 
bool SetMatrix4 (size_t offset, Math::Matrix4 data)
 
const BYTE * GetByteData ()
 
size_t GetSize ()
 

Constructor & Destructor Documentation

ShaderVariableChunk::ShaderVariableChunk ( std::vector< Resource::ShaderVariable * >  variables)

Constructs a ShaderVariableChunk.

Parameters
variablesA vector of pointers to ShaderVariables to insert into this chunk

The documentation for this class was generated from the following files: