OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Public Member Functions | Private Attributes | List of all members
ShaderBuffer Class Reference

#include <Shader.h>

Public Member Functions

 ShaderBuffer ()
 
 ~ShaderBuffer ()
 
void bufferData (int elem, int size, void *data)
 
template<typename T >
void bufferData (std::vector< T > v)
 
void bindBuffer ()
 
void bindBuffer (int location, int size)
 
void unbind (int location)
 
unsigned int getBuffer ()
 
int getSize ()
 

Private Attributes

bool created
 
unsigned int buffer
 
int boundSize
 

Detailed Description

Definition at line 15 of file Shader.h.

Constructor & Destructor Documentation

ShaderBuffer::ShaderBuffer ( )
inline

Definition at line 17 of file Shader.h.

ShaderBuffer::~ShaderBuffer ( )

Definition at line 13 of file Shader.cpp.

Member Function Documentation

void ShaderBuffer::bufferData ( int  elem,
int  size,
void *  data 
)

Definition at line 18 of file Shader.cpp.

template<typename T >
void ShaderBuffer::bufferData ( std::vector< T >  v)
inline

Definition at line 23 of file Shader.h.

void ShaderBuffer::bindBuffer ( )

Definition at line 29 of file Shader.cpp.

void ShaderBuffer::bindBuffer ( int  location,
int  size 
)

Definition at line 38 of file Shader.cpp.

void ShaderBuffer::unbind ( int  location)

Definition at line 49 of file Shader.cpp.

unsigned int ShaderBuffer::getBuffer ( )
inline

Definition at line 30 of file Shader.h.

int ShaderBuffer::getSize ( )
inline

Definition at line 31 of file Shader.h.

Member Data Documentation

bool ShaderBuffer::created
private

Definition at line 34 of file Shader.h.

unsigned int ShaderBuffer::buffer
private

Definition at line 35 of file Shader.h.

int ShaderBuffer::boundSize
private

Definition at line 36 of file Shader.h.


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