OPENGL: Introduce abstraction for framebuffer.
This allows us to use various framebuffer settings easily. Now the GPU accelerated CLUT8 surface implementation does not need to query former framebuffer state anymore.
This commit is contained in:
parent
5498982a37
commit
c4e65732be
9 changed files with 488 additions and 132 deletions
|
@ -24,6 +24,7 @@
|
|||
#define BACKENDS_GRAPHICS_OPENGL_OPENGL_GRAPHICS_H
|
||||
|
||||
#include "backends/graphics/opengl/opengl-sys.h"
|
||||
#include "backends/graphics/opengl/framebuffer.h"
|
||||
#include "backends/graphics/graphics.h"
|
||||
|
||||
#include "common/frac.h"
|
||||
|
@ -304,6 +305,11 @@ private:
|
|||
*/
|
||||
void initializeGLContext();
|
||||
|
||||
/**
|
||||
* Render back buffer.
|
||||
*/
|
||||
Backbuffer _backBuffer;
|
||||
|
||||
/**
|
||||
* OpenGL pipeline used for rendering.
|
||||
*/
|
||||
|
@ -527,17 +533,6 @@ private:
|
|||
*/
|
||||
uint _scissorOverride;
|
||||
|
||||
#if !USE_FORCED_GLES
|
||||
//
|
||||
// Shaders
|
||||
//
|
||||
|
||||
/**
|
||||
* Projection matrix used.
|
||||
*/
|
||||
GLfloat _projectionMatrix[4*4];
|
||||
#endif
|
||||
|
||||
#ifdef USE_OSD
|
||||
//
|
||||
// OSD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue