Remove composited text. The large amount of memory it uses is a bigger penalty than drawing a quad for each glyph.

This commit is contained in:
Chris Danford
2003-06-05 22:18:42 +00:00
parent 428d560a6b
commit 429d311c2a
13 changed files with 37 additions and 272 deletions
+1 -11
View File
@@ -25,8 +25,6 @@
#include "SDL_utils.h"
#include "SDL_dither.h"
#include "CompositedText.h"
#include "RageTimer.h"
static void GetResolutionFromFileName( CString sPath, int &Width, int &Height )
@@ -84,15 +82,7 @@ void RageBitmapTexture::Create()
/* Create (and return) a surface ready to be loaded to OpenGL */
/* Load the image into an SDL surface. */
SDL_Surface *img;
if( GetID().filename.Right(3).CompareNoCase("ini")==0 )
{
img = CreateCompositedText( GetID().filename, GetID().text );
}
else
{
img = IMG_Load( GetID().filename );
}
SDL_Surface *img = IMG_Load( GetID().filename );
/* XXX: Wait, we don't want to throw for all images; in particular, we