entity editor, scene graph viewer, scene viewer basics done. Can rotate, translate and scale selected models.
This commit is contained in:
30
src/FreeCameraController.h
Normal file
30
src/FreeCameraController.h
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// Created by slinky on 5/11/26.
|
||||
//
|
||||
|
||||
#ifndef B_ENGINE_FREECAMERACONTROLLER_H
|
||||
#define B_ENGINE_FREECAMERACONTROLLER_H
|
||||
|
||||
#include "Camera.h"
|
||||
#include "EditorContext.h"
|
||||
|
||||
class FreeCameraController {
|
||||
public:
|
||||
FreeCameraController() = default;
|
||||
|
||||
void update(EditorContext& ctx);
|
||||
void on_mouse_delta(float xoff, float yoff) const;
|
||||
|
||||
void set_camera(Camera& c);
|
||||
void release_camera();
|
||||
|
||||
float movement_speed = .01;
|
||||
float look_sensitivity = .01;
|
||||
private:
|
||||
Camera* camera {nullptr};
|
||||
|
||||
bool checkInput = false;
|
||||
};
|
||||
|
||||
|
||||
#endif //B_ENGINE_FREECAMERACONTROLLER_H
|
||||
Reference in New Issue
Block a user