Use scene module in editor
This commit is contained in:
parent
55f5537a67
commit
a0a40f1d04
7 changed files with 78 additions and 140 deletions
|
|
@ -1,34 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include "Topology.hpp"
|
||||
#include <memory>
|
||||
|
||||
class ObjectBuffers;
|
||||
|
||||
namespace tp {
|
||||
|
||||
class Object {
|
||||
public:
|
||||
Object() = default;
|
||||
|
||||
public:
|
||||
Topology mTopology;
|
||||
std::shared_ptr<ObjectBuffers> mBuffers;
|
||||
};
|
||||
|
||||
struct PointLight {
|
||||
Vec3F pos;
|
||||
halnf fallOut = 1.f;
|
||||
halnf intensity = 1.f;
|
||||
};
|
||||
|
||||
class Scene {
|
||||
public:
|
||||
Scene() = default;
|
||||
|
||||
public:
|
||||
Buffer<Object> mObjects;
|
||||
Buffer<PointLight> mLights;
|
||||
Camera mCamera;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue