mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
VideoCommon: Move some common initialization logic to RenderBase
This commit is contained in:
parent
277829d842
commit
238a70b006
22 changed files with 67 additions and 87 deletions
|
@ -50,7 +50,7 @@ extern int OSDChoice;
|
|||
class Renderer
|
||||
{
|
||||
public:
|
||||
Renderer();
|
||||
Renderer(int backbuffer_width, int backbuffer_height);
|
||||
virtual ~Renderer();
|
||||
|
||||
enum PixelPerfQuery
|
||||
|
@ -79,6 +79,10 @@ public:
|
|||
virtual void RestoreState() {}
|
||||
virtual void ResetAPIState() {}
|
||||
virtual void RestoreAPIState() {}
|
||||
// Some of the methods called by here assume g_renderer is initialized, therefore
|
||||
// we must call it after constructing the backend's Renderer instance.
|
||||
void InitializeCommon();
|
||||
|
||||
// Ideal internal resolution - determined by display resolution (automatic scaling) and/or a
|
||||
// multiple of the native EFB resolution
|
||||
int GetTargetWidth() { return s_target_width; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue