|
| ShaderPipeline (Shader *shader) |
|
void | setColor (GLfloat r, GLfloat g, GLfloat b, GLfloat a) override |
|
void | setProjectionMatrix (const Math::Matrix4 &projectionMatrix) override |
|
void | activate () |
|
void | deactivate () |
|
Framebuffer * | setFramebuffer (Framebuffer *framebuffer) |
|
void | drawTexture (const GLTexture &texture, const GLfloat *coordinates, const GLfloat *texcoords) |
|
void | drawTexture (const GLTexture &texture, const GLfloat *coordinates) |
|
void | drawTexture (const GLTexture &texture, GLfloat x, GLfloat y, GLfloat w, GLfloat h) |
|
void | drawTexture (const GLTexture &texture, GLfloat x, GLfloat y, GLfloat w, GLfloat h, const Common::Rect &clip) |
|
|
GLuint | _coordsVBO |
|
GLuint | _texcoordsVBO |
|
GLuint | _colorVBO |
|
GLfloat | _colorAttributes [4 *4] |
|
bool | _colorDirty |
|
Shader *const | _activeShader |
|
Framebuffer * | _activeFramebuffer |
|
◆ setColor()
void OpenGL::ShaderPipeline::setColor |
( |
GLfloat |
r, |
|
|
GLfloat |
g, |
|
|
GLfloat |
b, |
|
|
GLfloat |
a |
|
) |
| |
|
overridevirtual |
Set modulation color.
- Parameters
-
r | Red component in [0,1]. |
g | Green component in [0,1]. |
b | Blue component in [0,1]. |
a | Alpha component in [0,1]. |
Implements OpenGL::Pipeline.
◆ setProjectionMatrix()
void OpenGL::ShaderPipeline::setProjectionMatrix |
( |
const Math::Matrix4 & |
projectionMatrix | ) |
|
|
overridevirtual |
◆ activateInternal()
void OpenGL::ShaderPipeline::activateInternal |
( |
| ) |
|
|
overrideprotectedvirtual |
Activate the pipeline.
This sets the OpenGL state to make use of drawing with the given OpenGL pipeline.
Reimplemented from OpenGL::Pipeline.
◆ deactivateInternal()
void OpenGL::ShaderPipeline::deactivateInternal |
( |
| ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following file:
- backends/graphics/opengl/pipelines/shader.h