Rasterfarm-SDK
Loading...
Searching...
No Matches
Engine::UniformBuffer< T, LENGTH > Class Template Reference

#include <uniform.h>

Inheritance diagram for Engine::UniformBuffer< T, LENGTH >:
Engine::Uniform Engine::Uniform DynamicType DynamicType UniformBuffer1f UniformBuffer1i UniformBuffer2f UniformBuffer3f UniformBuffer4f UniformMatrix3f UniformMatrix4f Engine::UniformValue< T >

Public Member Functions

 UniformBuffer (Handle binding, T *pBuffer, int count)
 
 ~UniformBuffer ()
 
void setBuffer (T *pBuffer)
 
virtual void submit (Program *pProgram)
 
- Public Member Functions inherited from Engine::Uniform
 Uniform (Handle binding, UniformBufferHandle ubo, uint count)
 
virtual ~Uniform ()
 
UniformBufferHandle getBufferObjectHandle ()
 
uint getCount () const
 
- Public Member Functions inherited from DynamicType
 DynamicType ()
 
template<class C >
void addType ()
 
TypeID getDerivedTypeId () const
 
template<class C >
const bool isType () const
 
template<class C >
const C * cast () const
 
template<class C >
C * cast ()
 
template<class FROM , class TO >
TO * cast ()
 
template<class FROM , class TO >
const TO * cast () const
 

Protected Attributes

TpBuffer
 
- Protected Attributes inherited from Engine::Uniform
Handle binding
 
UniformBufferHandle ubo
 
uint count
 

Constructor & Destructor Documentation

◆ UniformBuffer()

template<typename T , uint LENGTH>
Engine::UniformBuffer< T, LENGTH >::UniformBuffer ( Handle binding,
T * pBuffer,
int count )

◆ ~UniformBuffer()

template<typename T , uint LENGTH>
Engine::UniformBuffer< T, LENGTH >::~UniformBuffer ( )

Member Function Documentation

◆ setBuffer()

template<typename T , uint LENGTH>
void Engine::UniformBuffer< T, LENGTH >::setBuffer ( T * pBuffer)

◆ submit()

template<typename T , uint LENGTH>
virtual void Engine::UniformBuffer< T, LENGTH >::submit ( Program * pProgram)
virtual

Implements Engine::Uniform.

Member Data Documentation

◆ pBuffer

template<typename T , uint LENGTH>
T* Engine::UniformBuffer< T, LENGTH >::pBuffer
protected

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