More tidying up - share the stats print between the two plugins, etc

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4184 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-09-03 19:42:45 +00:00
parent 562a4e25ac
commit 2b1022f152
7 changed files with 100 additions and 77 deletions

View File

@ -24,11 +24,6 @@
#include "pluginspecs_video.h"
#include "D3DBase.h"
#include <Cg/cg.h>
extern CGcontext g_cgcontext;
extern CGprofile g_cgvProf, g_cgfProf;
class Renderer
{
public:
@ -42,19 +37,23 @@ public:
static void SwapBuffers();
static float GetXScale() { return xScale; }
static float GetYScale() { return yScale; }
static void SetColorMask();
static void SetBlendMode(bool forceUpdate);
static bool SetScissorRect();
static float GetTargetScaleX() { return xScale; }
static float GetTargetScaleY() { return yScale; }
static float GetTargetWidth() { return m_width; }
static float GetTargetHeight() { return m_height; }
static void SetScissorRect();
// static void SetProjection(float* _pProjection, int constantIndex = -1);
static u32 AccessEFB(EFBAccessType type, int x, int y);
// The little status display.
static void AddMessage(const std::string &message, unsigned int ms);
static void ProcessMessages();
static void RenderText(const std::string &text, int left, int top, unsigned int color);
static void RenderText(const char *pstr, int left, int top, unsigned int color);
private:
// screen offset