Codechange: [OpenGL] Use shaders to display the video buffer on screen.

This commit is contained in:
Michael Lutz
2021-01-16 16:43:20 +01:00
parent b181859629
commit acf59f6b68
4 changed files with 191 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ private:
GLuint vid_pbo; ///< Pixel buffer object storing the memory used for the video driver to draw to.
GLuint vid_texture; ///< Texture handle for the video buffer texture.
GLuint vid_program; ///< Shader program for rendering the video buffer.
GLuint vao_quad; ///< Vertex array object storing the rendering state for the fullscreen quad.
GLuint vbo_quad; ///< Vertex buffer with a fullscreen quad.
@@ -35,6 +36,7 @@ private:
~OpenGLBackend();
const char *Init();
bool InitShaders();
public:
/** Get singleton instance of this class. */