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

21 lines
647 B
C++
Raw Normal View History

2020-03-05 11:43:38 +01:00
#pragma once
#include "View.h"
namespace Seele
{
2020-09-19 14:36:50 +02:00
DECLARE_REF(Scene);
2020-10-29 02:22:01 +01:00
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();
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;
2020-04-12 15:47:19 +02:00
};
2020-05-05 01:51:13 +02:00
DEFINE_REF(SceneView);
2020-04-12 15:47:19 +02:00
} // namespace Seele