summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_base.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-03-09 16:57:38 +0100
committerbunnei <bunneidev@gmail.com>2016-03-09 16:57:38 +0100
commit4a2d1571bc16e4705c35bc3473985c5e7c8e7603 (patch)
tree8a67bad721611c3b574c78175ddf3f0fae537cd0 /src/video_core/renderer_base.h
parentMerge pull request #1344 from LittleWhite-tb/error-output (diff)
parentrenderer_base: In-class initialize variables (diff)
downloadyuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.tar
yuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.tar.gz
yuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.tar.bz2
yuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.tar.lz
yuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.tar.xz
yuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.tar.zst
yuzu-4a2d1571bc16e4705c35bc3473985c5e7c8e7603.zip
Diffstat (limited to 'src/video_core/renderer_base.h')
-rw-r--r--src/video_core/renderer_base.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index 91a7b7f17..f68091cc8 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -22,9 +22,6 @@ public:
kFramebuffer_Texture
};
- RendererBase() : m_current_fps(0), m_current_frame(0) {
- }
-
virtual ~RendererBase() {
}
@@ -46,21 +43,24 @@ public:
// Getter/setter functions:
// ------------------------
- f32 GetCurrentframe() const {
+ f32 GetCurrentFPS() const {
return m_current_fps;
}
- int current_frame() const {
+ int GetCurrentFrame() const {
return m_current_frame;
}
- void RefreshRasterizerSetting();
+ VideoCore::RasterizerInterface* Rasterizer() const {
+ return rasterizer.get();
+ }
- std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
+ void RefreshRasterizerSetting();
protected:
- f32 m_current_fps; ///< Current framerate, should be set by the renderer
- int m_current_frame; ///< Current frame, should be set by the renderer
+ std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
+ f32 m_current_fps = 0.0f; ///< Current framerate, should be set by the renderer
+ int m_current_frame = 0; ///< Current frame, should be set by the renderer
private:
bool opengl_rasterizer_active = false;