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 KDFoundation::Object
Public Functions
Protected Functions
|
Name |
void |
event(KDFoundation::EventReceiver * target, KDFoundation::Event * e) override |
Public Attributes
|
Name |
KDBindings::Property< KDGui::Window * > |
window |
KDBindings::Property<::Serenity::AbstractCamera * > |
camera |
KDBindings::Property< bool > |
running |
KDBindings::Property< float > |
moveSpeed |
KDBindings::Property< float > |
lookSpeed |
KDBindings::Property< float > |
zoomSpeed |
KDBindings::Property< glm::vec3 > |
viewCenter |
KDBindings::Property< glm::vec3 > |
cameraPosition |
KDBindings::Property< glm::vec3 > |
viewVector |
KDBindings::Property< glm::vec3 > |
upVector |
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(
KDFoundation::EventReceiver * target,
KDFoundation::Event * e
) override
|
Public Attributes Documentation
variable window
| KDBindings::Property< KDGui::Window * > window { nullptr };
|
variable camera
| KDBindings::Property<::Serenity::AbstractCamera * > camera { nullptr };
|
variable running
| KDBindings::Property< bool > running { true };
|
variable moveSpeed
| KDBindings::Property< float > moveSpeed { 1.0f };
|
variable lookSpeed
| KDBindings::Property< float > lookSpeed { float(M_PI) * 0.25f };
|
variable zoomSpeed
| KDBindings::Property< float > zoomSpeed { 10.0f };
|
variable viewCenter
| KDBindings::Property< glm::vec3 > viewCenter { glm::vec3(0.0f, 0.0f, 0.0f) };
|
variable cameraPosition
| KDBindings::Property< glm::vec3 > cameraPosition;
|
variable viewVector
| KDBindings::Property< glm::vec3 > viewVector;
|
variable upVector
| KDBindings::Property< glm::vec3 > upVector;
|
Friends
friend Kuesa::Serenity::Window
| friend class Kuesa::Serenity::Window(
Kuesa::Serenity::Window
);
|
Updated on 2023-07-03 at 11:02:08 +0000