xoreos  0.0.5
Classes | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Graphics::Shader::ShaderObject Class Reference

#include <shader.h>

Inheritance diagram for Graphics::Shader::ShaderObject:
Inheritance graph
[legend]
Collaboration diagram for Graphics::Shader::ShaderObject:
Collaboration graph
[legend]

Classes

struct  ShaderObjectVariable
 

Public Member Functions

 ShaderObject ()
 
- Public Member Functions inherited from Graphics::GLContainer
 GLContainer ()
 
 ~GLContainer ()
 
void rebuild ()
 
void destroy ()
 
- Public Member Functions inherited from Graphics::Queueable
 Queueable ()
 
virtual ~Queueable ()
 
virtual bool operator< (const Queueable &q) const
 

Public Attributes

uint32 usageCount
 
uint32 id
 
GLuint glid
 
ShaderType type
 
Common::UString shaderString
 
std::vector< ShaderObject::ShaderObjectVariablevariablesSelf
 
std::vector< ShaderObject::ShaderObjectVariablevariablesCombined
 
std::vector< ShaderObject * > subObjects
 

Protected Member Functions

void doRebuild ()
 
void doDestroy ()
 
- Protected Member Functions inherited from Graphics::Queueable
bool isInQueue (QueueType queue) const
 
void addToQueue (QueueType queue)
 
void removeFromQueue (QueueType queue)
 
void lockQueue (QueueType queue)
 
void unlockQueue (QueueType queue)
 
void sortQueue (QueueType queue)
 

Detailed Description

Definition at line 183 of file shader.h.

Constructor & Destructor Documentation

◆ ShaderObject()

Graphics::Shader::ShaderObject::ShaderObject ( )

Definition at line 48 of file shader.cpp.

Member Function Documentation

◆ doDestroy()

void Graphics::Shader::ShaderObject::doDestroy ( )
protectedvirtual

Implements Graphics::GLContainer.

Definition at line 54 of file shader.cpp.

References glid.

◆ doRebuild()

void Graphics::Shader::ShaderObject::doRebuild ( )
protectedvirtual

Implements Graphics::GLContainer.

Definition at line 51 of file shader.cpp.

Member Data Documentation

◆ glid

GLuint Graphics::Shader::ShaderObject::glid

◆ id

uint32 Graphics::Shader::ShaderObject::id

◆ shaderString

Common::UString Graphics::Shader::ShaderObject::shaderString

Definition at line 203 of file shader.h.

Referenced by Graphics::Shader::ShaderManager::getShaderObject().

◆ subObjects

std::vector<ShaderObject *> Graphics::Shader::ShaderObject::subObjects

◆ type

ShaderType Graphics::Shader::ShaderObject::type

◆ usageCount

uint32 Graphics::Shader::ShaderObject::usageCount

◆ variablesCombined

std::vector<ShaderObject::ShaderObjectVariable> Graphics::Shader::ShaderObject::variablesCombined

Definition at line 206 of file shader.h.

Referenced by Graphics::Shader::ShaderMaterial::bindFade(), Graphics::Shader::ShaderSurface::bindObjectModelview(), Graphics::Shader::ShaderMaterial::bindProgram(), Graphics::Shader::ShaderSurface::bindProgram(), Graphics::Shader::ShaderMaterial::bindProgramNoFade(), Graphics::Shader::ShaderManager::bindShaderInstance(), Graphics::Shader::ShaderSurface::bindTextureView(), Graphics::Shader::ShaderMaterial::delMaterialVar(), Graphics::Shader::ShaderSurface::delSurfaceVar(), Graphics::Shader::ShaderManager::genGLProgram(), Graphics::Shader::ShaderMaterial::genMaterialVar(), Graphics::Shader::ShaderSurface::genSurfaceVar(), Graphics::Shader::ShaderManager::getShaderObject(), Graphics::Shader::ShaderSurface::getVariableCount(), Graphics::Shader::ShaderMaterial::getVariableCount(), Graphics::Shader::ShaderSurface::getVariableData(), Graphics::Shader::ShaderMaterial::getVariableData(), Graphics::Shader::ShaderSurface::getVariableName(), Graphics::Shader::ShaderMaterial::getVariableName(), Graphics::Shader::ShaderSurface::getVariableType(), Graphics::Shader::ShaderMaterial::getVariableType(), Graphics::Shader::ShaderSurface::isVariableOwned(), Graphics::Shader::ShaderMaterial::isVariableOwned(), Graphics::Shader::ShaderInstance::rebindFragmentVariable(), Graphics::Shader::ShaderInstance::rebindVertexVariable(), Graphics::Shader::ShaderMaterial::recalcTextureUnits(), Graphics::Shader::ShaderInstance::setFragmentVariable(), Graphics::Shader::ShaderSurface::setVariableExternal(), Graphics::Shader::ShaderMaterial::setVariableExternal(), Graphics::Shader::ShaderSurface::setVariableInternal(), Graphics::Shader::ShaderMaterial::setVariableInternal(), Graphics::Shader::ShaderInstance::setVertexVariable(), Graphics::Shader::ShaderInstance::ShaderInstance(), Graphics::Shader::ShaderMaterial::ShaderMaterial(), and Graphics::Shader::ShaderSurface::ShaderSurface().

◆ variablesSelf

std::vector<ShaderObject::ShaderObjectVariable> Graphics::Shader::ShaderObject::variablesSelf

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