xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Graphics::Shader::ShaderInstance Class Reference

#include <shaderinstance.h>

Collaboration diagram for Graphics::Shader::ShaderInstance:
Collaboration graph
[legend]

Public Member Functions

 ShaderInstance (Shader::ShaderObject *vertShader, Shader::ShaderObject *fragShader)
 
 ShaderInstance (const std::string &vertName, const std::string &fragName)
 
 ~ShaderInstance ()
 
void setVertexVariable (const std::string &name, const void *location)
 
void setFragmentVariable (const std::string &name, const void *location)
 
void bind ()
 
void unbind ()
 
void rebindVertexVariable (uint32 index)
 
void rebindFragmentVariable (uint32 index)
 

Private Attributes

std::vector< const void * > _vertexVariableData
 
std::vector< const void * > _fragmentVariableData
 
Shader::ShaderProgram_sourceProgram
 

Detailed Description

Definition at line 34 of file shaderinstance.h.

Constructor & Destructor Documentation

◆ ShaderInstance() [1/2]

Graphics::Shader::ShaderInstance::ShaderInstance ( Shader::ShaderObject vertShader,
Shader::ShaderObject fragShader 
)

◆ ShaderInstance() [2/2]

Graphics::Shader::ShaderInstance::ShaderInstance ( const std::string &  vertName,
const std::string &  fragName 
)

◆ ~ShaderInstance()

Graphics::Shader::ShaderInstance::~ShaderInstance ( )

Member Function Documentation

◆ bind()

void Graphics::Shader::ShaderInstance::bind ( )

◆ rebindFragmentVariable()

void Graphics::Shader::ShaderInstance::rebindFragmentVariable ( uint32  index)

◆ rebindVertexVariable()

void Graphics::Shader::ShaderInstance::rebindVertexVariable ( uint32  index)

◆ setFragmentVariable()

void Graphics::Shader::ShaderInstance::setFragmentVariable ( const std::string &  name,
const void *  location 
)

◆ setVertexVariable()

void Graphics::Shader::ShaderInstance::setVertexVariable ( const std::string &  name,
const void *  location 
)

◆ unbind()

void Graphics::Shader::ShaderInstance::unbind ( )

Definition at line 101 of file shaderinstance.cpp.

Member Data Documentation

◆ _fragmentVariableData

std::vector<const void *> Graphics::Shader::ShaderInstance::_fragmentVariableData
private

Definition at line 51 of file shaderinstance.h.

Referenced by bind(), rebindFragmentVariable(), setFragmentVariable(), and ShaderInstance().

◆ _sourceProgram

Shader::ShaderProgram* Graphics::Shader::ShaderInstance::_sourceProgram
private

◆ _vertexVariableData

std::vector<const void *> Graphics::Shader::ShaderInstance::_vertexVariableData
private

Definition at line 50 of file shaderinstance.h.

Referenced by bind(), rebindVertexVariable(), setVertexVariable(), and ShaderInstance().


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