Public Member Functions | Friends

sp::video::OpenGLConstantBuffer Class Reference

#include <spOpenGLConstantBuffer.hpp>

Inheritance diagram for sp::video::OpenGLConstantBuffer:
sp::video::ConstantBuffer

List of all members.

Public Member Functions

 OpenGLConstantBuffer (OpenGLShaderClass *Owner, const io::stringc &Name, u32 Index)
 ~OpenGLConstantBuffer ()
bool updateBuffer (const void *Buffer, u32 Size=0)
bool valid () const
 Returns true if this is a valid and successful created constant buffer.

Friends

class OpenGLShader

Constructor & Destructor Documentation

sp::video::OpenGLConstantBuffer::OpenGLConstantBuffer ( OpenGLShaderClass Owner,
const io::stringc Name,
u32  Index 
)
sp::video::OpenGLConstantBuffer::~OpenGLConstantBuffer (  ) 

Member Function Documentation

bool sp::video::OpenGLConstantBuffer::updateBuffer ( const void *  Buffer,
u32  Size = 0 
) [virtual]

Updates the constant buffer by uploading the data to the shader.

Parameters:
[in] Buffer Constant pointer to the buffer data.
[in] Size Specifies the buffer size (in bytes). If zero the engine determines the size automatically. By default zero.
Returns:
True if the buffer could be updated successful. Otherwise false is returned and an error or warning message will be printed.

Reimplemented from sp::video::ConstantBuffer.

bool sp::video::OpenGLConstantBuffer::valid (  )  const [virtual]

Returns true if this is a valid and successful created constant buffer.

Reimplemented from sp::video::ConstantBuffer.


Friends And Related Function Documentation

friend class OpenGLShader [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines