Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::CameraMovementSystem< MainCameraTag > Class Template Reference

#include <CameraMovementSystem.hpp>

Inheritance diagram for shkyera::CameraMovementSystem< MainCameraTag >:
[legend]

Public Member Functions

 CameraMovementSystem (std::shared_ptr< Registry > registry)
 
void update ()
 
- Public Member Functions inherited from shkyera::RegistryViewer
template<typename... Resources>
 RegistryViewer (std::shared_ptr< Registry > registry, ReadAccess< Resources... > read)
 
template<typename... Resources>
 RegistryViewer (std::shared_ptr< Registry > registry, WriteAccess< Resources... > read)
 
template<typename... ReadResources, typename... WriteResources>
 RegistryViewer (std::shared_ptr< Registry > registry, ReadAccess< ReadResources... > read, WriteAccess< WriteResources... > write)
 
const PolicygetPolicy () const
 
template<typename Component , typename... Args>
Componentadd (Entity entity, Args &&... args)
 
template<typename Component >
void clear ()
 
template<typename Component >
bool has (Entity entity) const
 
template<typename Component >
Componentwrite (Entity entity)
 
template<typename Component >
const Componentread (Entity entity) const
 
template<NonSingletonComponentType Component>
const autoread () const
 
template<SingletonComponentType Component>
const autoread () const
 
template<NonSingletonComponentType Component>
autowrite ()
 
template<SingletonComponentType Component>
autowrite ()
 
template<SingletonComponentType Component>
std::optional< EntitygetEntity () const
 
const std::optional< EntitygetParent (Entity entity) const
 
template<typename Component >
SparseSet< Component > & writeAll ()
 
template<typename Component >
const SparseSet< Component > & readAll () const
 

Private Attributes

bool _cameraControl
 
glm::vec2 _previousMousePosition
 

Static Private Attributes

static constexpr float MOVEMENT_SPEED = 0.6
 
static constexpr float MOUSE_SENSITIVITY = 0.2
 

Constructor & Destructor Documentation

◆ CameraMovementSystem()

template<typename MainCameraTag >
shkyera::CameraMovementSystem< MainCameraTag >::CameraMovementSystem ( std::shared_ptr< Registry registry)

Member Function Documentation

◆ update()

Member Data Documentation

◆ _cameraControl

◆ _previousMousePosition

template<typename MainCameraTag >
glm::vec2 shkyera::CameraMovementSystem< MainCameraTag >::_previousMousePosition
private

◆ MOUSE_SENSITIVITY

template<typename MainCameraTag >
constexpr float shkyera::CameraMovementSystem< MainCameraTag >::MOUSE_SENSITIVITY = 0.2
staticconstexprprivate

◆ MOVEMENT_SPEED

template<typename MainCameraTag >
constexpr float shkyera::CameraMovementSystem< MainCameraTag >::MOVEMENT_SPEED = 0.6
staticconstexprprivate

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