diff options
author | bunnei <bunneidev@gmail.com> | 2019-12-16 19:01:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 19:01:04 +0100 |
commit | 65b1b05e056c238a9fd2febc02d24fc0736ab1c6 (patch) | |
tree | b383cfab61837e839528e42f0856dc67e9aea965 /src/video_core/renderer_opengl/renderer_opengl.h | |
parent | Merge pull request #3219 from FernandoS27/fix-bindless (diff) | |
parent | renderer_opengl: Make ScreenRectVertex's constructor constexpr (diff) | |
download | yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.tar yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.tar.gz yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.tar.bz2 yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.tar.lz yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.tar.xz yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.tar.zst yuzu-65b1b05e056c238a9fd2febc02d24fc0736ab1c6.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.h')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index cf26628ca..b56328a7f 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.h +++ b/src/video_core/renderer_opengl/renderer_opengl.h @@ -59,21 +59,31 @@ public: void ShutDown() override; private: + /// Initializes the OpenGL state and creates persistent objects. void InitOpenGLObjects(); + void AddTelemetryFields(); + void CreateRasterizer(); void ConfigureFramebufferTexture(TextureInfo& texture, const Tegra::FramebufferConfig& framebuffer); + + /// Draws the emulated screens to the emulator window. void DrawScreen(const Layout::FramebufferLayout& layout); + void DrawScreenTriangles(const ScreenInfo& screen_info, float x, float y, float w, float h); + + /// Updates the framerate. void UpdateFramerate(); void CaptureScreenshot(); - // Loads framebuffer from emulated memory into the display information structure + /// Loads framebuffer from emulated memory into the active OpenGL texture. void LoadFBToScreenInfo(const Tegra::FramebufferConfig& framebuffer); - // Fills active OpenGL texture with the given RGBA color. + + /// Fills active OpenGL texture with the given RGB color.Since the color is solid, the texture + /// can be 1x1 but will stretch across whatever it's rendered on. void LoadColorToActiveGLTexture(u8 color_r, u8 color_g, u8 color_b, u8 color_a, const TextureInfo& texture); @@ -94,14 +104,6 @@ private: /// OpenGL framebuffer data std::vector<u8> gl_framebuffer_data; - // Shader uniform location indices - GLuint uniform_modelview_matrix; - GLuint uniform_color_texture; - - // Shader attribute input indices - GLuint attrib_position; - GLuint attrib_tex_coord; - /// Used for transforming the framebuffer orientation Tegra::FramebufferConfig::TransformFlags framebuffer_transform_flags; Common::Rectangle<int> framebuffer_crop_rect; |