Runs on MacOS, tho window size is terrible
This commit is contained in:
@@ -9,7 +9,9 @@ target_sources(Engine
|
||||
Entity.cpp
|
||||
Entity.h
|
||||
PointLightActor.cpp
|
||||
PointLightActor.h)
|
||||
PointLightActor.h
|
||||
StaticMeshActor.h
|
||||
StaticMeshActor.cpp)
|
||||
|
||||
target_sources(Engine
|
||||
PUBLIC FILE_SET HEADERS
|
||||
@@ -18,4 +20,5 @@ target_sources(Engine
|
||||
CameraActor.h
|
||||
DirectionalLightActor.h
|
||||
Entity.h
|
||||
PointLightActor.h)
|
||||
PointLightActor.h
|
||||
StaticMeshActor.h)
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#include "StaticMeshActor.h"
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
StaticMeshActor::StaticMeshActor(PScene scene, PMeshAsset mesh)
|
||||
: Actor(scene)
|
||||
{
|
||||
attachComponent<Component::Mesh>(mesh);
|
||||
}
|
||||
|
||||
Seele::StaticMeshActor::~StaticMeshActor()
|
||||
{
|
||||
}
|
||||
|
||||
Component::Mesh &Seele::StaticMeshActor::getMesh()
|
||||
{
|
||||
return accessComponent<Component::Mesh>();
|
||||
}
|
||||
|
||||
const Component::Mesh &Seele::StaticMeshActor::getMesh() const
|
||||
{
|
||||
return accessComponent<Component::Mesh>();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "Actor.h"
|
||||
#include "Component/Mesh.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class StaticMeshActor : public Actor
|
||||
{
|
||||
public:
|
||||
StaticMeshActor(PScene scene, PMeshAsset mesh);
|
||||
virtual ~StaticMeshActor();
|
||||
Component::Mesh& getMesh();
|
||||
const Component::Mesh& getMesh() const;
|
||||
private:
|
||||
};
|
||||
} // namespace Seele
|
||||
Reference in New Issue
Block a user