xoreos
0.0.5
|
#include <shader.h>
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 | |
ShaderObject * | vertexObject |
ShaderObject * | fragmentObject |
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) |
Graphics::Shader::ShaderProgram::ShaderProgram | ( | ) |
Definition at line 63 of file shader.cpp.
|
inline |
Definition at line 226 of file shader.h.
References Common::UString::c_str(), and glid.
|
protectedvirtual |
|
protectedvirtual |
|
inline |
Definition at line 230 of file shader.h.
References Graphics::Queueable::addToQueue(), and Graphics::kQueueNewShader.
Referenced by Graphics::Shader::ShaderManager::registerShaderProgram().
ShaderObject* Graphics::Shader::ShaderProgram::fragmentObject |
Definition at line 219 of file shader.h.
Referenced by Graphics::Shader::ShaderMaterial::bindFade(), Graphics::Shader::ShaderMaterial::bindProgram(), Graphics::Shader::ShaderMaterial::bindProgramNoFade(), Graphics::Shader::ShaderManager::bindShaderInstance(), Graphics::Shader::ShaderManager::genGLProgram(), Graphics::Shader::ShaderInstance::rebindFragmentVariable(), Graphics::Shader::ShaderManager::registerShaderProgram(), Graphics::Shader::ShaderInstance::setFragmentVariable(), and Graphics::Shader::ShaderInstance::ShaderInstance().
std::vector<GLint> Graphics::Shader::ShaderProgram::fragmentVariableLocations |
Definition at line 221 of file shader.h.
Referenced by Graphics::Shader::ShaderMaterial::bindFade(), Graphics::Shader::ShaderMaterial::bindProgram(), Graphics::Shader::ShaderMaterial::bindProgramNoFade(), Graphics::Shader::ShaderManager::bindShaderInstance(), Graphics::Shader::ShaderManager::genGLProgram(), and Graphics::Shader::ShaderInstance::rebindFragmentVariable().
GLuint Graphics::Shader::ShaderProgram::glid |
Definition at line 223 of file shader.h.
Referenced by bindAttribute(), Graphics::Shader::ShaderManager::bindShaderInstance(), doDestroy(), Graphics::Shader::ShaderManager::genGLProgram(), Graphics::Render::RenderQueue::queueItem(), Graphics::Shader::ShaderManager::registerShaderProgram(), Graphics::Render::RenderQueue::render(), Graphics::Aurora::ABCFont::renderBind(), Graphics::Aurora::TextureFont::renderBind(), and Graphics::Shader::ShaderRenderable::renderImmediate().
uint64 Graphics::Shader::ShaderProgram::id |
Definition at line 222 of file shader.h.
Referenced by Graphics::Shader::ShaderManager::registerShaderProgram().
uint32 Graphics::Shader::ShaderProgram::usageCount |
Definition at line 224 of file shader.h.
Referenced by Graphics::Shader::ShaderInstance::ShaderInstance(), and Graphics::Shader::ShaderInstance::~ShaderInstance().
ShaderObject* Graphics::Shader::ShaderProgram::vertexObject |
Definition at line 218 of file shader.h.
Referenced by Graphics::Shader::ShaderSurface::bindObjectModelview(), Graphics::Shader::ShaderSurface::bindProgram(), Graphics::Shader::ShaderManager::bindShaderInstance(), Graphics::Shader::ShaderSurface::bindTextureView(), Graphics::Shader::ShaderManager::genGLProgram(), Graphics::Shader::ShaderInstance::rebindVertexVariable(), Graphics::Shader::ShaderManager::registerShaderProgram(), Graphics::Shader::ShaderInstance::setVertexVariable(), and Graphics::Shader::ShaderInstance::ShaderInstance().
std::vector<GLint> Graphics::Shader::ShaderProgram::vertexVariableLocations |
Definition at line 220 of file shader.h.
Referenced by Graphics::Shader::ShaderSurface::bindObjectModelview(), Graphics::Shader::ShaderSurface::bindProgram(), Graphics::Shader::ShaderManager::bindShaderInstance(), Graphics::Shader::ShaderSurface::bindTextureView(), Graphics::Shader::ShaderManager::genGLProgram(), and Graphics::Shader::ShaderInstance::rebindVertexVariable().