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

#include <shader.h>

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

Public Member Functions

 ShaderProgram ()
 
void bindAttribute (ShaderVertexAttrib attrib, const Common::UString &name)
 
void queue ()
 
- 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

ShaderObjectvertexObject
 
ShaderObjectfragmentObject
 
std::vector< GLint > vertexVariableLocations
 
std::vector< GLint > fragmentVariableLocations
 
uint64 id
 
GLuint glid
 
uint32 usageCount
 

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 214 of file shader.h.

Constructor & Destructor Documentation

◆ ShaderProgram()

Graphics::Shader::ShaderProgram::ShaderProgram ( )

Definition at line 63 of file shader.cpp.

Member Function Documentation

◆ bindAttribute()

void Graphics::Shader::ShaderProgram::bindAttribute ( ShaderVertexAttrib  attrib,
const Common::UString name 
)
inline

Definition at line 226 of file shader.h.

References Common::UString::c_str(), and glid.

Here is the call graph for this function:

◆ doDestroy()

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

Implements Graphics::GLContainer.

Definition at line 70 of file shader.cpp.

References glid.

◆ doRebuild()

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

Implements Graphics::GLContainer.

Definition at line 66 of file shader.cpp.

References ShaderMan.

◆ queue()

void Graphics::Shader::ShaderProgram::queue ( )
inline

Definition at line 230 of file shader.h.

References Graphics::Queueable::addToQueue(), and Graphics::kQueueNewShader.

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

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fragmentObject

ShaderObject* Graphics::Shader::ShaderProgram::fragmentObject

◆ fragmentVariableLocations

std::vector<GLint> Graphics::Shader::ShaderProgram::fragmentVariableLocations

◆ glid

GLuint Graphics::Shader::ShaderProgram::glid

◆ id

uint64 Graphics::Shader::ShaderProgram::id

Definition at line 222 of file shader.h.

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

◆ usageCount

uint32 Graphics::Shader::ShaderProgram::usageCount

◆ vertexObject

ShaderObject* Graphics::Shader::ShaderProgram::vertexObject

◆ vertexVariableLocations

std::vector<GLint> Graphics::Shader::ShaderProgram::vertexVariableLocations

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