Reworking VertexData
This commit is contained in:
@@ -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)
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user