Encapsulates OpenGL shaders.
More...
#include <globjects/include/globjects/Shader.h>
Encapsulates OpenGL shaders.
A shader can be constructed using an AbstractStringSource. A shader can be attached to a program using Program::attach(). A Shader subclasses either ChangeListener and Changeable to react to changing shader sources and to propagate this change to ChangeListeners.
- See also
- http://www.opengl.org/wiki/Shader
-
Program
-
ShaderSource
-
ChangeListener
-
Changeable
Enumerator |
---|
ShadingLanguageIncludeARB |
|
Fallback |
|
globjects::Shader::Shader |
( |
const gl::GLenum |
type | ) |
|
virtual globjects::Shader::~Shader |
( |
| ) |
|
|
protectedvirtual |
static Shader* globjects::Shader::fromString |
( |
const gl::GLenum |
type, |
|
|
const std::string & |
sourceString, |
|
|
const IncludePaths & |
includePaths = IncludePaths() |
|
) |
| |
|
static |
static Shader* globjects::Shader::fromFile |
( |
const gl::GLenum |
type, |
|
|
const std::string & |
filename, |
|
|
const IncludePaths & |
includePaths = IncludePaths() |
|
) |
| |
|
static |
static void globjects::Shader::globalReplace |
( |
const std::string & |
search, |
|
|
const std::string & |
replacement |
|
) |
| |
|
static |
static void globjects::Shader::globalReplace |
( |
const std::string & |
search, |
|
|
int |
i |
|
) |
| |
|
static |
static void globjects::Shader::clearGlobalReplacements |
( |
| ) |
|
|
static |
virtual void globjects::Shader::accept |
( |
ObjectVisitor & |
visitor | ) |
|
|
overridevirtual |
gl::GLenum globjects::Shader::type |
( |
| ) |
const |
void globjects::Shader::setSource |
( |
const std::string & |
source | ) |
|
void globjects::Shader::updateSource |
( |
| ) |
|
const IncludePaths& globjects::Shader::includePaths |
( |
| ) |
const |
void globjects::Shader::setIncludePaths |
( |
const IncludePaths & |
includePaths | ) |
|
bool globjects::Shader::compile |
( |
| ) |
const |
bool globjects::Shader::isCompiled |
( |
| ) |
const |
void globjects::Shader::invalidate |
( |
| ) |
|
gl::GLint globjects::Shader::get |
( |
gl::GLenum |
pname | ) |
const |
std::string globjects::Shader::getSource |
( |
| ) |
const |
bool globjects::Shader::checkCompileStatus |
( |
| ) |
const |
std::string globjects::Shader::infoLog |
( |
| ) |
const |
std::string globjects::Shader::typeString |
( |
| ) |
const |
virtual gl::GLenum globjects::Shader::objectType |
( |
| ) |
const |
|
overridevirtual |
static std::string globjects::Shader::typeString |
( |
gl::GLenum |
type | ) |
|
|
static |
virtual void globjects::Shader::notifyChanged |
( |
const Changeable * |
changeable | ) |
|
|
overrideprotectedvirtual |
std::string globjects::Shader::shaderString |
( |
| ) |
const |
|
protected |
gl::GLenum globjects::Shader::m_type |
|
protected |
bool globjects::Shader::m_compiled |
|
mutableprotected |
bool globjects::Shader::m_compilationFailed |
|
mutableprotected |
std::map<std::string, std::string> globjects::Shader::s_globalReplacements |
|
staticprotected |
The documentation for this class was generated from the following file: