diff options
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); }; /** |