This class implements a basic shader functions.
More...
#include <GlslShader.h>
|
| | GlslShader (char *vert, char *frag) |
| | Constructor.
|
| |
| void | setActive (bool) |
| | Activates and Deactivates the shader.
|
| |
| GLint | getUniformLocation (const std::string &theVar) |
| | Return the location of the uniform variable.
|
| |
| GLint | getAttribLocation (const std::string &theVar) |
| | Return the location of the attribute variable.
|
| |
|
| static void | init () |
| | Initializes the shared program.
|
| |
| static bool | isReady (void) |
| | Verifies if the shader is ready.
|
| |
This class implements a basic shader functions.
| scv::GlslShader::GlslShader |
( |
char * |
vert, |
|
|
char * |
frag |
|
) |
| |
Constructor.
- Parameters
-
| vert | File path of the vertice file code. |
| frag | File path of the fragment file code. |
| GLint scv::GlslShader::getAttribLocation |
( |
const std::string & |
theVar | ) |
|
Return the location of the attribute variable.
- Parameters
-
| GLint scv::GlslShader::getUniformLocation |
( |
const std::string & |
theVar | ) |
|
Return the location of the uniform variable.
- Parameters
-
| void scv::GlslShader::init |
( |
| ) |
|
|
static |
Initializes the shared program.
| static bool scv::GlslShader::isReady |
( |
void |
| ) |
|
|
inlinestatic |
Verifies if the shader is ready.
| void scv::GlslShader::setActive |
( |
bool |
active | ) |
|
Activates and Deactivates the shader.
The documentation for this class was generated from the following files: