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
+2 -4
View File
@@ -614,7 +614,7 @@ void Model::DrawPrimitives()
for (int i = 0; i < (int)m_Meshes.size(); i++)
{
msMesh *pMesh = &m_Meshes[i];
RageVertexVector& TempVertices = m_vTempVerticesByBone[i];
RageModelVertexVector& TempVertices = m_vTempVerticesByBone[i];
// apply material
if( pMesh->nMaterialIndex != -1 )
@@ -647,11 +647,9 @@ void Model::DrawPrimitives()
// process vertices
for (int j = 0; j < (int)pMesh->Vertices.size(); j++)
{
RageVertex& tempVert = TempVertices[j];
RageModelVertex& tempVert = TempVertices[j];
msVertex& originalVert = pMesh->Vertices[j];
tempVert.c = RageColor(1,1,1,1);
memcpy( &tempVert.t, originalVert.uv, sizeof(originalVert.uv) );
if( originalVert.nBoneIndex == -1 )