Files
Seele/src/Engine/Window/SceneView.h
T

24 lines
811 B
C++
Raw Normal View History

2020-03-05 11:43:38 +01:00
#pragma once
#include "View.h"
namespace Seele
{
2021-04-01 16:40:14 +02:00
DECLARE_REF(Scene)
DECLARE_REF(CameraActor)
2020-04-12 15:47:19 +02:00
class SceneView : public View
{
public:
2020-05-05 01:51:13 +02:00
SceneView(Gfx::PGraphics graphics, PWindow owner, const ViewportCreateInfo &createInfo);
2020-04-12 15:47:19 +02:00
~SceneView();
2021-01-19 15:30:00 +01:00
virtual void beginFrame();
2020-09-19 14:36:50 +02:00
PScene getScene() const { return scene; }
private:
PScene scene;
2020-10-29 02:22:01 +01:00
PCameraActor activeCamera;
virtual void keyCallback(KeyCode code, InputAction action, KeyModifier modifier) override;
virtual void mouseMoveCallback(double xPos, double yPos) override;
virtual void mouseButtonCallback(MouseButton button, InputAction action, KeyModifier modifier) override;
2021-01-19 15:30:00 +01:00
virtual void scrollCallback(double xOffset, double yOffset) override;
virtual void fileCallback(int count, const char** paths) override;
2020-04-12 15:47:19 +02:00
};
2021-04-01 16:40:14 +02:00
DEFINE_REF(SceneView)
2020-04-12 15:47:19 +02:00
} // namespace Seele