add GetTextureDiagnostics (not used yet)

This commit is contained in:
Glenn Maynard
2003-06-22 01:20:58 +00:00
parent 35524bd79d
commit 2d97a1daa0
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -178,6 +178,8 @@ public:
virtual void SaveScreenshot( CString sPath ) = 0;
virtual CString GetTextureDiagnostics( unsigned id ) const { return ""; }
protected:
// Return true if mode change was successful.
// bNewDeviceOut is set true if a new device was created and textures
+5 -1
View File
@@ -533,6 +533,10 @@ void RageDisplay_OGL::SaveScreenshot( CString sPath )
SDL_FreeSurface( temp );
}
CString RageDisplay_OGL::GetTextureDiagnostics( unsigned id ) const
{
return "";
}
RageDisplay::VideoModeParams RageDisplay_OGL::GetVideoModeParams() const { return wind->GetVideoModeParams(); }
@@ -1047,4 +1051,4 @@ RageMatrix RageDisplay_OGL::GetOrthoMatrix( float l, float r, float b, float t,
0, 0, -2/(zf-zn), 0,
-(r+l)/(r-l), -(t+b)/(t-b), -(zf+zn)/(zf-zn), 1 );
return m;
}
}
+2
View File
@@ -59,6 +59,8 @@ public:
void DrawIndexedTriangles( const RageVertex v[], int iNumVerts, const Uint16* pIndices, int iNumIndices );
void DrawLineStrip( const RageVertex v[], int iNumVerts, float LineWidth );
CString GetTextureDiagnostics( unsigned id ) const;
void SaveScreenshot( CString sPath );
protected:
bool TryVideoMode( VideoModeParams params, bool &bNewDeviceOut );