let Actor subclasses have first crack at parsing commands

allow Models and BitmapTexts in BGAnimationLayer (detected through file extension)
add RageModelVertex, which doesn't have a color property
add "stretch" file name hint for textures
This commit is contained in:
Chris Danford
2003-07-07 01:29:18 +00:00
parent a06eeea9c7
commit c67d78d948
32 changed files with 636 additions and 418 deletions
+3 -3
View File
@@ -489,7 +489,7 @@ void LifeStream::DrawPrimitives()
{
// make the object in logical units centered at the origin
LPDIRECT3DVERTEXBUFFER8 pVB = DISPLAY->GetVertexBuffer();
RAGEVERTEX* v;
RageSpriteVertex* v;
pVB->Lock( 0, 0, (BYTE**)&v, 0 );
int iNumV = 0;
@@ -570,8 +570,8 @@ void LifeStream::DrawPrimitives()
// finally! Pump those triangles!
pd3dDevice->SetVertexShader( D3DFVF_RAGEVERTEX );
pd3dDevice->SetStreamSource( 0, pVB, sizeof(RAGEVERTEX) );
pd3dDevice->SetVertexShader( D3DFVF_RageSpriteVertex );
pd3dDevice->SetStreamSource( 0, pVB, sizeof(RageSpriteVertex) );
pd3dDevice->DrawPrimitive( D3DPT_TRIANGLESTRIP, 0, iNumV-2 );
}