diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-23 02:04:30 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-03-23 02:04:30 +0100 |
commit | bfe45774f16e958bf34ed0d58a1d31e2325df47d (patch) | |
tree | 44504233efc7690eca7149eccdcb6a0074f694e1 /src/video_core/renderer_opengl/renderer_opengl.h | |
parent | gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. (diff) | |
download | yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.gz yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.bz2 yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.lz yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.xz yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.zst yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index 05bb3c5cf..bd7c2510f 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.h +++ b/src/video_core/renderer_opengl/renderer_opengl.h @@ -21,7 +21,7 @@ struct TextureInfo { GLsizei height; GLenum gl_format; GLenum gl_type; - RendererBase::FramebufferInfo::PixelFormat pixel_format; + Tegra::FramebufferConfig::PixelFormat pixel_format; }; /// Structure used for storing information about the display target for each 3DS screen @@ -37,7 +37,7 @@ public: ~RendererOpenGL() override; /// Swap buffers (render frame) - void SwapBuffers(boost::optional<const FramebufferInfo&> framebuffer_info) override; + void SwapBuffers(boost::optional<const Tegra::FramebufferConfig&> framebuffer) override; /** * Set the emulator window to use for renderer @@ -53,13 +53,14 @@ public: private: void InitOpenGLObjects(); - void ConfigureFramebufferTexture(TextureInfo& texture, const FramebufferInfo& framebuffer_info); + void ConfigureFramebufferTexture(TextureInfo& texture, + const Tegra::FramebufferConfig& framebuffer); void DrawScreens(); void DrawSingleScreen(const ScreenInfo& screen_info, float x, float y, float w, float h); void UpdateFramerate(); // Loads framebuffer from emulated memory into the display information structure - void LoadFBToScreenInfo(const FramebufferInfo& framebuffer_info, ScreenInfo& screen_info); + void LoadFBToScreenInfo(const Tegra::FramebufferConfig& framebuffer, ScreenInfo& screen_info); // Fills active OpenGL texture with the given RGBA color. void LoadColorToActiveGLTexture(u8 color_r, u8 color_g, u8 color_b, u8 color_a, const TextureInfo& texture); |