Kuesa::Serenity::CameraController
Module: Kuesa Serenity API
A CameraController providing zooming, panning and orbiting motions to a Serenity Camera. More...
#include <Kuesa/Serenity/api/cameracontroller.h>
Inherits from Serenity::Object
Public Functions
Protected Functions
|
Name |
void |
event(::Serenity::EventReceiver * target, ::Serenity::Event * e) override |
Public Attributes
Friends
Detailed Description
| class Kuesa::Serenity::CameraController;
|
A CameraController providing zooming, panning and orbiting motions to a Serenity Camera.
Since: Kuesa 2.0
Public Functions Documentation
function CameraController
function ~CameraController
Protected Functions Documentation
function event
| void event(
::Serenity::EventReceiver * target,
::Serenity::Event * e
) override
|
Public Attributes Documentation
variable window
| Property<::Serenity::Window * > window { nullptr };
|
variable camera
| Property<::Serenity::Camera * > camera { nullptr };
|
variable running
| Property< bool > running { true };
|
variable moveSpeed
| Property< float > moveSpeed { 1.0f };
|
variable lookSpeed
| Property< float > lookSpeed { float(M_PI) * 0.25f };
|
variable zoomSpeed
| Property< float > zoomSpeed { 10.0f };
|
variable viewCenter
| Property< glm::vec3 > viewCenter { glm::vec3(0.0f, 0.0f, 0.0f) };
|
variable cameraPosition
| Property< glm::vec3 > cameraPosition;
|
variable viewVector
| Property< glm::vec3 > viewVector;
|
variable upVector
| Property< glm::vec3 > upVector;
|
Friends
friend Kuesa::Serenity::Window
| friend class Kuesa::Serenity::Window(
Kuesa::Serenity::Window
);
|
Updated on 2022-10-18 at 11:12:51 +0200