#include <ugdk/graphic/shader.h>
ugdk::graphic::Shader::Shader |
( |
GLuint |
shaderType | ) |
|
ugdk::graphic::Shader::~Shader |
( |
| ) |
|
void ugdk::graphic::Shader::AddCodeBlock |
( |
const std::string & |
block | ) |
|
|
inline |
void ugdk::graphic::Shader::AddLineInMain |
( |
const std::string & |
line | ) |
|
|
inline |
bool ugdk::graphic::Shader::Compile |
( |
| ) |
const |
void ugdk::graphic::Shader::GenerateSource |
( |
| ) |
|
GLuint ugdk::graphic::Shader::id |
( |
| ) |
const |
|
inline |
void ugdk::graphic::Shader::set_source |
( |
const std::string & |
source | ) |
|
|
inline |
Sets the source code for this shader.
Warning: Overrides any generated source. You MUST use at least the variable names UGDK expects by default in SetupProgram. You know what you doing. For great justice!
std::string ugdk::graphic::Shader::blocks_ |
|
protected |
GLuint ugdk::graphic::Shader::id_ |
|
protected |
std::string ugdk::graphic::Shader::main_ |
|
protected |
std::string ugdk::graphic::Shader::source_ |
|
protected |
GLuint ugdk::graphic::Shader::type_ |
|
protected |
The documentation for this class was generated from the following file:
- modules/ugdk-2d/include/ugdk/graphic/shader.h