diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-29 00:11:03 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-11-29 00:11:03 +0100 |
commit | 4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2 (patch) | |
tree | a2ac5e7712b859821c0925f212810ff7e26539e9 /src/video_core/renderer_opengl/renderer_opengl.h | |
parent | Merge pull request #3169 from lioncash/memory (diff) | |
download | yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.tar yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.tar.gz yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.tar.bz2 yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.tar.lz yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.tar.xz yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.tar.zst yuzu-4589582eaf9aa5a1d9bc4e74ed71b0bf7903a1d2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h index cf26628ca..6bb620a31 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); |