draw models with 2 textures with multitexture instead of 2 passes. D3D multitexture not tested yet

This commit is contained in:
Chris Danford
2004-02-04 09:55:18 +00:00
parent 9c7d8a60c2
commit 9502f1c262
12 changed files with 96 additions and 25 deletions
+2 -1
View File
@@ -219,7 +219,8 @@ void BitmapText::DrawChars()
unsigned end = start;
while(end < uEndGlyph && tex[end] == tex[start])
end++;
DISPLAY->SetTexture( tex[start] );
DISPLAY->ClearAllTextures();
DISPLAY->SetTexture( 0, tex[start] );
RageSpriteVertex &start_vertex = verts[start*4];
int iNumVertsToDraw = (end-start)*4;
DISPLAY->DrawQuads( &start_vertex, iNumVertsToDraw );