2020-05-05 01:51:13 +02:00
|
|
|
#include "Scene.h"
|
2020-09-19 14:36:50 +02:00
|
|
|
#include "Graphics/Graphics.h"
|
2022-11-30 10:19:45 +01:00
|
|
|
#include "Graphics/Mesh.h"
|
2023-10-26 18:37:29 +02:00
|
|
|
#include "Component/Mesh.h"
|
2022-11-15 12:19:11 +01:00
|
|
|
#include "Component/Transform.h"
|
2023-02-01 22:13:04 +01:00
|
|
|
#include "Asset/AssetRegistry.h"
|
|
|
|
|
#include "Asset/TextureAsset.h"
|
2023-02-13 14:56:13 +01:00
|
|
|
#include "Asset/MaterialAsset.h"
|
2023-03-09 17:39:57 +01:00
|
|
|
#include "Component/PointLight.h"
|
|
|
|
|
#include "Component/DirectionalLight.h"
|
|
|
|
|
#include "Actor/PointLightActor.h"
|
2020-05-05 01:51:13 +02:00
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
2020-09-19 14:36:50 +02:00
|
|
|
Scene::Scene(Gfx::PGraphics graphics)
|
|
|
|
|
: graphics(graphics)
|
2023-01-21 18:43:21 +01:00
|
|
|
, physics(registry)
|
2023-10-31 16:16:23 +01:00
|
|
|
, lightEnv(new LightEnvironment(graphics))
|
2020-05-05 01:51:13 +02:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Scene::~Scene()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-21 18:43:21 +01:00
|
|
|
void Scene::update(float deltaTime)
|
2020-05-05 01:51:13 +02:00
|
|
|
{
|
2023-01-21 18:43:21 +01:00
|
|
|
physics.update(deltaTime);
|
2020-05-05 01:51:13 +02:00
|
|
|
}
|
|
|
|
|
|