diff options
author | Johannes Schickel | 2016-01-04 06:41:10 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:26 +0100 |
commit | f5f1b6eba0d409abcda2a3c037a177d6f6e41a2e (patch) | |
tree | 7185022bb128795f3035de8925d04d98784a1afa /backends/graphics/opengl/opengl-sys.h | |
parent | 08553a09cfa2110d56b200bf6c69d01d5adbc6bb (diff) | |
download | scummvm-rg350-f5f1b6eba0d409abcda2a3c037a177d6f6e41a2e.tar.gz scummvm-rg350-f5f1b6eba0d409abcda2a3c037a177d6f6e41a2e.tar.bz2 scummvm-rg350-f5f1b6eba0d409abcda2a3c037a177d6f6e41a2e.zip |
OPENGL: Introduce pipeline abstraction to cleanup code.
Diffstat (limited to 'backends/graphics/opengl/opengl-sys.h')
-rw-r--r-- | backends/graphics/opengl/opengl-sys.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/backends/graphics/opengl/opengl-sys.h b/backends/graphics/opengl/opengl-sys.h index a584259abe..f68897ba58 100644 --- a/backends/graphics/opengl/opengl-sys.h +++ b/backends/graphics/opengl/opengl-sys.h @@ -87,6 +87,8 @@ enum ContextType { kContextGLES2 }; +class Pipeline; + /** * Description structure of the OpenGL (ES) context. */ @@ -126,20 +128,18 @@ struct Context { // programmable pipelines in the same fashion. // - /** - * Initializes the pipeline state. - */ - void initializePipeline(); - - /** - * Set color which shall be multiplied with each pixel. - */ - void setColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a); + /** Currently active rendering pipeline. */ + Pipeline *activePipeline; /** - * Set vertex and texture coordinates. + * Set new pipeline. + * + * Client is responsible for any memory management related to pipelines. + * + * @param pipeline Pipeline to activate. + * @return Formerly active pipeline. */ - void setDrawCoordinates(const GLfloat *vertices, const GLfloat *texCoords); + Pipeline *setPipeline(Pipeline *pipeline); }; /** |