move all graphics API calls into RageDisplay_*

This commit is contained in:
Chris Danford
2004-06-19 21:00:38 +00:00
parent f5ec5019d6
commit 91aafcd4c1
4 changed files with 28 additions and 4 deletions
+17
View File
@@ -1814,6 +1814,23 @@ void RageDisplay_OGL::UpdateTexture(
delete img;
}
void RageDisplay_OGL::SetPolygonMode( PolygonMode pm )
{
GLenum m;
switch( pm )
{
case POLYGON_FILL: m = GL_FILL; break;
case POLYGON_LINE: m = GL_LINE; break;
default: ASSERT(0); return;
}
glPolygonMode( GL_FRONT_AND_BACK, m );
}
void RageDisplay_OGL::SetLineWidth( int iWidth )
{
glLineWidth( iWidth );
}
CString RageDisplay_OGL::GetTextureDiagnostics( unsigned id ) const
{
return "";