OpenGL: OSD menu live resolution change fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4212 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2009-09-06 15:11:21 +00:00
parent a3345ea942
commit 1320e21ded
8 changed files with 110 additions and 66 deletions

View File

@ -39,24 +39,32 @@ extern int OSDChoice, OSDTime, OSDInternalW, OSDInternalH;
class Renderer
{
public:
static bool Init();
static void Shutdown();
static bool Init();
static void Shutdown();
// What's the real difference between these? Too similar names.
static void ResetAPIState();
static void RestoreAPIState();
static void ResetAPIState();
static void RestoreAPIState();
static void ReinitView();
static void ReinitView();
static void SwapBuffers();
static void SetColorMask();
static void SetColorMask();
static void SetBlendMode(bool forceUpdate);
static bool SetScissorRect();
// Live resolution change
static bool Allow2x();
static bool AllowCustom();
// Render target management
static int GetTargetWidth();
static int GetTargetHeight();
static int GetFrameBufferWidth();
static int GetFrameBufferHeight();
static int GetCustomWidth();
static int GetCustomHeight();
static int GetTargetWidth();
static int GetTargetHeight();
// Multiply any 2D EFB coordinates by these when rendering.
static float GetTargetScaleX();