Fixing destruction
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "Component/Transform.h"
|
||||
#include "Graphics/Graphics.h"
|
||||
#include "Graphics/Mesh.h"
|
||||
|
||||
#include "Graphics/StaticMeshVertexData.h"
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
@@ -17,4 +17,12 @@ Scene::Scene(Gfx::PGraphics graphics) : graphics(graphics), lightEnv(new LightEn
|
||||
|
||||
Scene::~Scene() {}
|
||||
|
||||
void Scene::bakeLighting() {
|
||||
const auto& matData = StaticMeshVertexData::getInstance()->getMaterialData();
|
||||
for (const auto& mat : matData)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void Scene::update(float deltaTime) { physics.update(deltaTime); }
|
||||
|
||||
@@ -15,6 +15,7 @@ class Scene {
|
||||
public:
|
||||
Scene(Gfx::PGraphics graphics);
|
||||
~Scene();
|
||||
void bakeLighting();
|
||||
void update(float deltaTime);
|
||||
entt::entity createEntity() { return registry.create(); }
|
||||
void destroyEntity(entt::entity identifier) { registry.destroy(identifier); }
|
||||
@@ -39,6 +40,7 @@ class Scene {
|
||||
Gfx::PGraphics graphics;
|
||||
OLightEnvironment lightEnv;
|
||||
PhysicsSystem physics;
|
||||
Array<Gfx::OTexture2D> lightMaps;
|
||||
};
|
||||
DEFINE_REF(Scene)
|
||||
} // namespace Seele
|
||||
Reference in New Issue
Block a user