optimization: don't make a temp copy of vertices if the model has no bones

This commit is contained in:
Chris Danford
2004-02-08 04:58:43 +00:00
parent 221b51c2b4
commit 9ca4de158f
4 changed files with 81 additions and 69 deletions
+5 -2
View File
@@ -45,14 +45,16 @@ typedef enum {
} msFlag;
/* msVertex */
/*
typedef struct msVertex
{
// byte nFlags; // we don't care about saving this flag
RageVector3 Vertex;
RageVector2 uv;
RageVector3 Normal;
RageVector2 uv;
char nBoneIndex;
} msVertex;
*/
/* msTriangle */
typedef struct
@@ -71,7 +73,8 @@ typedef struct msMesh
char szName[MS_MAX_NAME];
char nMaterialIndex;
vector<msVertex> Vertices;
vector<RageModelVertex> Vertices;
// vector<msVertex> Vertices;
// vector<msVec3> Normals; // each vertex holds its own normal