mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-23 16:48:52 -05:00
Fixes error in LUS where there were multiple Vertex classes declared.
This commit is contained in:
parent
3bcc9514ab
commit
d34a6d7666
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Ship
|
||||
{
|
||||
Vertex::Vertex()
|
||||
ModelVertex::ModelVertex()
|
||||
{
|
||||
pos = Vec3f(0, 0, 0);
|
||||
normal = Vec3f(0, 0, 0);
|
||||
@ -10,7 +10,7 @@ namespace Ship
|
||||
uv = Vec2f(0, 0);
|
||||
}
|
||||
|
||||
Vertex::Vertex(BinaryReader* reader)
|
||||
ModelVertex::ModelVertex(BinaryReader* reader)
|
||||
{
|
||||
pos = reader->ReadVec3f();
|
||||
normal = reader->ReadVec3f();
|
||||
@ -36,7 +36,7 @@ namespace Ship
|
||||
uvCoords = reader->ReadUInt32();
|
||||
boneWeights = reader->ReadUInt32();
|
||||
|
||||
Vertex* vtxData = new Vertex[numVerts];
|
||||
ModelVertex* vtxData = new ModelVertex[numVerts];
|
||||
uint32_t* indicesData = new uint32_t[numPolys];
|
||||
|
||||
if (vertices != 0)
|
||||
|
@ -43,15 +43,15 @@ namespace Ship
|
||||
void ParseFileBinary(BinaryReader* reader, Resource* res) override;
|
||||
};
|
||||
|
||||
struct Vertex
|
||||
struct ModelVertex
|
||||
{
|
||||
Vec3f pos;
|
||||
Vec3f normal;
|
||||
Color3b color;
|
||||
Vec2f uv;
|
||||
|
||||
Vertex();
|
||||
Vertex(BinaryReader* reader);
|
||||
ModelVertex();
|
||||
ModelVertex(BinaryReader* reader);
|
||||
};
|
||||
|
||||
class Model : public Resource
|
||||
@ -62,7 +62,7 @@ namespace Ship
|
||||
uint32_t numVerts;
|
||||
uint32_t numPolys;
|
||||
|
||||
Vertex* vertices;
|
||||
ModelVertex* vertices;
|
||||
Vec2f* boneWeights;
|
||||
uint32_t* indices;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user