Reworking VertexData

This commit is contained in:
Dynamitos
2023-10-24 15:01:09 +02:00
parent a47f17481b
commit 28e5c9ff01
61 changed files with 1157 additions and 1144 deletions
+2 -2
View File
@@ -9,6 +9,7 @@ target_sources(Engine
Component.h
DirectionalLight.h
KeyboardInput.h
Mesh.h
MeshCollider.h
PointLight.h
RigidBody.h
@@ -16,7 +17,6 @@ target_sources(Engine
ShapeBase.cpp
Skybox.h
SphereCollider.h
StaticMesh.h
Transform.h
Transform.cpp)
@@ -32,10 +32,10 @@ target_sources(Engine
DirectionalLight.h
KeyboardInput.h
MeshCollider.h
Mesh.h
PointLight.h
RigidBody.h
ShapeBase.h
Skybox.h
SphereCollider.h
StaticMesh.h
Transform.h)
+18
View File
@@ -0,0 +1,18 @@
#pragma once
#include "Asset/MeshAsset.h"
#include "Graphics/VertexData.h"
#include "Graphics/TopologyData.h"
#include "Material/MaterialInstance.h"
namespace Seele
{
namespace Component
{
struct Mesh
{
VertexData* vertexData;
MeshId id;
PMaterialInstance instance;
};
} // namespace Component
} // namespace Seele
-15
View File
@@ -1,15 +0,0 @@
#pragma once
#include "Asset/MeshAsset.h"
namespace Seele
{
namespace Component
{
struct StaticMesh
{
StaticMesh() {}
StaticMesh(PMeshAsset mesh) : mesh(mesh) {}
PMeshAsset mesh;
};
} // namespace Component
} // namespace Seele