diff options
| author | bunnei <bunneidev@gmail.com> | 2015-05-22 19:40:57 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-05-22 19:40:57 -0400 |
| commit | 7b94b312d39037e9a90c981b49743965c0d1a743 (patch) | |
| tree | f922946de22f54bf0c0aaaff01371f5ca7a2fc57 /src/video_core/renderer_opengl/renderer_opengl.h | |
| parent | eca2b71fa8a6c4c104695b866952e4295dc6466f (diff) | |
| parent | 62668688e1055dbfcbff824acfd9c9f970fc2c09 (diff) | |
Merge pull request #789 from tfarley/opengl-renderer
OpenGL Hardware Renderer
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.h')
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index cd782428e..2ec2e14ca 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.h +++ b/src/video_core/renderer_opengl/renderer_opengl.h @@ -13,6 +13,8 @@ #include "core/hw/gpu.h" #include "video_core/renderer_base.h" +#include "video_core/renderer_opengl/gl_state.h" +#include "video_core/renderer_opengl/gl_rasterizer.h" class EmuWindow; @@ -49,18 +51,18 @@ private: }; void InitOpenGLObjects(); - static void ConfigureFramebufferTexture(TextureInfo& texture, - const GPU::Regs::FramebufferConfig& framebuffer); + void ConfigureFramebufferTexture(TextureInfo& texture, + const GPU::Regs::FramebufferConfig& framebuffer); void DrawScreens(); void DrawSingleScreenRotated(const TextureInfo& texture, float x, float y, float w, float h); void UpdateFramerate(); // Loads framebuffer from emulated memory into the active OpenGL texture. - static void LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer, - const TextureInfo& texture); + void LoadFBToActiveGLTexture(const GPU::Regs::FramebufferConfig& framebuffer, + const TextureInfo& texture); // Fills active OpenGL texture with the given RGB color. - static void LoadColorToActiveGLTexture(u8 color_r, u8 color_g, u8 color_b, - const TextureInfo& texture); + void LoadColorToActiveGLTexture(u8 color_r, u8 color_g, u8 color_b, + const TextureInfo& texture); /// Computes the viewport rectangle MathUtil::Rectangle<unsigned> GetViewportExtent(); @@ -71,6 +73,8 @@ private: int resolution_width; ///< Current resolution width int resolution_height; ///< Current resolution height + OpenGLState state; + // OpenGL object IDs GLuint vertex_array_handle; GLuint vertex_buffer_handle; |
