diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-16 16:43:20 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-22 22:16:07 +0100 |
commit | acf59f6b68a3bdd068b4eddccd06749c5b411189 (patch) | |
tree | b1df72248100526f0f9ca24df283b633718ff168 /src/video/opengl.h | |
parent | b1818596294346a87bcb2ddb23d0b471c5c31284 (diff) | |
download | openttd-acf59f6b68a3bdd068b4eddccd06749c5b411189.tar.xz |
Codechange: [OpenGL] Use shaders to display the video buffer on screen.
Diffstat (limited to 'src/video/opengl.h')
-rw-r--r-- | src/video/opengl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video/opengl.h b/src/video/opengl.h index 59a30ad65..4a392c280 100644 --- a/src/video/opengl.h +++ b/src/video/opengl.h @@ -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. */ |