Some warning fixes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#pragma once
|
||||
#include "VertexData.h"
|
||||
|
||||
namespace Seele
|
||||
@@ -7,6 +8,24 @@ class StaticMeshVertexData : public VertexData
|
||||
public:
|
||||
StaticMeshVertexData(Gfx::PGraphics graphics);
|
||||
virtual ~StaticMeshVertexData();
|
||||
virtual MeshId allocateVertexData(uint64 numVertices) override;
|
||||
void loadPositions(MeshId id, const Array<Vector>& data);
|
||||
void loadTexCoords(MeshId id, const Array<Vector2>& data);
|
||||
void loadNormals(MeshId id, const Array<Vector>& data);
|
||||
void loadTangents(MeshId id, const Array<Vector>& data);
|
||||
void loadBiTangents(MeshId id, const Array<Vector>& data);
|
||||
private:
|
||||
Gfx::PShaderBuffer positions;
|
||||
Array<Vector> positionData;
|
||||
Gfx::PShaderBuffer texCoords;
|
||||
Array<Vector2> texCoordsData;
|
||||
Gfx::PShaderBuffer normals;
|
||||
Array<Vector> normalData;
|
||||
Gfx::PShaderBuffer tangents;
|
||||
Array<Vector> tangentData;
|
||||
Gfx::PShaderBuffer biTangents;
|
||||
Array<Vector> biTangentData;
|
||||
Map<MeshId, uint64_t> meshOffsets;
|
||||
uint64 head;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user