add the renderer name to stats (so that I won't be confused about which is being used)

This commit is contained in:
Chris Danford
2005-11-23 20:42:48 +00:00
parent f5cdefca17
commit 3060418806
5 changed files with 11 additions and 6 deletions
+7 -2
View File
@@ -105,11 +105,16 @@ void RageDisplay::ResetStats()
CString RageDisplay::GetStats() const
{
CString s;
/* If FPS == 0, we don't have stats yet. */
if( !GetFPS() )
return "-- FPS\n-- av FPS\n-- VPF";
s = "-- FPS\n-- av FPS\n-- VPF";
return ssprintf( "%i FPS\n%i av FPS\n%i VPF", GetFPS(), GetCumFPS(), GetVPF() );
s = ssprintf( "%i FPS\n%i av FPS\n%i VPF", GetFPS(), GetCumFPS(), GetVPF() );
s += "\n"+this->GetApiDescription();
return s;
}
void RageDisplay::EndFrame()
+1 -1
View File
@@ -133,7 +133,7 @@ public:
/* This is needed or the overridden classes' dtors will not be called. */
virtual ~RageDisplay() { }
virtual CString GetApiDescription() = 0;
virtual CString GetApiDescription() const = 0;
// Don't override this. Override TryVideoMode() instead.
// This will set the video mode to be as close as possible to params.
+1 -1
View File
@@ -10,7 +10,7 @@ public:
~RageDisplay_D3D();
CString Init( VideoModeParams p );
virtual CString GetApiDescription() { return "D3D"; }
virtual CString GetApiDescription() const { return "D3D"; }
void ResolutionChanged();
const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;
+1 -1
View File
@@ -8,7 +8,7 @@ class RageDisplay_Null: public RageDisplay
public:
RageDisplay_Null( VideoModeParams p );
virtual CString GetApiDescription() { return "Null"; }
virtual CString GetApiDescription() const { return "Null"; }
void ResolutionChanged() { }
const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;
+1 -1
View File
@@ -10,7 +10,7 @@ public:
virtual ~RageDisplay_OGL();
CString Init( VideoModeParams p, bool bAllowUnacceleratedRenderer );
virtual CString GetApiDescription() { return "OpenGL"; }
virtual CString GetApiDescription() const { return "OpenGL"; }
void ResolutionChanged();
const PixelFormatDesc *GetPixelFormatDesc(PixelFormat pf) const;