mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-15 10:36:44 -04:00
libvitaboy: Completely working model renderer. No animation as of yet.
This commit is contained in:
parent
860f67d522
commit
048a5ca2b2
3 changed files with 238 additions and 93 deletions
|
@ -185,12 +185,17 @@ struct Face_t {
|
|||
|
||||
struct BoneBinding_t {
|
||||
unsigned BoneIndex;
|
||||
unsigned FirstVertex;
|
||||
unsigned VertexCount;
|
||||
unsigned FirstFixedVertex;
|
||||
unsigned FixedVertexCount;
|
||||
unsigned FirstBlendedVertex;
|
||||
unsigned BlendedVertexCount;
|
||||
};
|
||||
|
||||
struct BlendData_t {
|
||||
float Weight;
|
||||
unsigned OtherVertex;
|
||||
};
|
||||
|
||||
struct Mesh_t {
|
||||
uint32_t Version;
|
||||
uint32_t BoneCount;
|
||||
|
@ -199,12 +204,16 @@ struct Mesh_t {
|
|||
Face_t * FaceData;
|
||||
uint32_t BindingCount;
|
||||
BoneBinding_t * BoneBindings;
|
||||
uint32_t TextureVertexCount;
|
||||
uint32_t FixedVertexCount;
|
||||
TextureVertex_t * TextureVertexData;
|
||||
uint32_t BlendDataCount;
|
||||
uint32_t VertexCount;
|
||||
uint32_t BlendedVertexCount;
|
||||
BlendData_t * BlendData;
|
||||
uint32_t TotalVertexCount;
|
||||
Vertex_t * VertexData;
|
||||
Vertex_t * VertexNorms;
|
||||
Vertex_t * TransformedVertexData;
|
||||
Vertex_t * TransformedVertexNorms;
|
||||
TextureVertex_t * TransformedTextureData;
|
||||
};
|
||||
|
||||
void ReadMesh(Mesh_t& Mesh);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue