Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::Core::FreeMovement Class Reference

#include <FreeMovement.hpp>

Collaboration diagram for lug::Core::FreeMovement:
[legend]

Public Member Functions

 FreeMovement ()=default
 
 ~FreeMovement ()=default
 
void setTargetNode (lug::Graphics::Scene::Node &target)
 Sets the camera node (i.e. the node to which the camera is attached to). More...
 
void setEventSource (lug::Window::Window &eventSource)
 Sets the event source, a Window instance. More...
 
void onFrame (const System::Time &elapsedTime)
 

Private Attributes

lug::Graphics::Scene::Node_target {nullptr}
 
lug::Window::Window_eventSource {nullptr}
 
float _speed {0.005f}
 
bool _hasFocus {false}
 
Math::Vec2i _lastMousePos {0, 0}
 

Detailed Description

Definition at line 12 of file FreeMovement.hpp.

Constructor & Destructor Documentation

◆ FreeMovement()

lug::Core::FreeMovement::FreeMovement ( )
explicitdefault

◆ ~FreeMovement()

lug::Core::FreeMovement::~FreeMovement ( )
default

Member Function Documentation

◆ setTargetNode()

void FreeMovement::setTargetNode ( lug::Graphics::Scene::Node target)
inline

Sets the camera node (i.e. the node to which the camera is attached to).

Definition at line 1 of file FreeMovement.inl.

◆ setEventSource()

void FreeMovement::setEventSource ( lug::Window::Window eventSource)
inline

Sets the event source, a Window instance.

Parameters
[in]eventSourceThe event source

Definition at line 5 of file FreeMovement.inl.

◆ onFrame()

void lug::Core::FreeMovement::onFrame ( const System::Time elapsedTime)

Definition at line 8 of file FreeMovement.cpp.

Member Data Documentation

◆ _target

lug::Graphics::Scene::Node* lug::Core::FreeMovement::_target {nullptr}
private

Definition at line 32 of file FreeMovement.hpp.

◆ _eventSource

lug::Window::Window* lug::Core::FreeMovement::_eventSource {nullptr}
private

Definition at line 33 of file FreeMovement.hpp.

◆ _speed

float lug::Core::FreeMovement::_speed {0.005f}
private

Definition at line 34 of file FreeMovement.hpp.

◆ _hasFocus

bool lug::Core::FreeMovement::_hasFocus {false}
private

Definition at line 36 of file FreeMovement.hpp.

◆ _lastMousePos

Math::Vec2i lug::Core::FreeMovement::_lastMousePos {0, 0}
private

Definition at line 37 of file FreeMovement.hpp.


The documentation for this class was generated from the following files: