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
+3 -2
View File
@@ -122,11 +122,12 @@ void GraphDisplay::Update( float fDeltaTime )
void GraphDisplay::DrawPrimitives()
{
DISPLAY->SetTexture( m_pTexture );
DISPLAY->ClearAllTextures();
DISPLAY->SetTexture( 0, m_pTexture );
Actor::SetRenderStates(); // set Actor-specified render states
DISPLAY->DrawQuads( Slices, ARRAYSIZE(Slices) );
DISPLAY->SetTexture( NULL );
DISPLAY->SetTexture( 0, NULL );
}