renderer_base: Don't directly expose the rasterizer unique_ptr

There's no reason to allow direct access to the unique_ptr instance. Only
its contained pointer.
This commit is contained in:
Lioncash 2016-03-08 21:31:41 -05:00
parent 58c336b671
commit bf76afc68d
6 changed files with 21 additions and 18 deletions

View file

@ -54,11 +54,14 @@ public:
return m_current_frame;
}
VideoCore::RasterizerInterface* Rasterizer() const {
return rasterizer.get();
}
void RefreshRasterizerSetting();
std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
protected:
std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
f32 m_current_fps; ///< Current framerate, should be set by the renderer
int m_current_frame; ///< Current frame, should be set by the renderer