Leviathan  0.8.0.0
Leviathan game engine
Leviathan::Camera Class Reference

Properties that a camera entity has (will also need a Position component) More...

#include <Components.h>

+ Inheritance diagram for Leviathan::Camera:

Public Member Functions

 Camera (uint8_t fovy=60, bool soundperceiver=true)
 Creates at specific position. More...
 
 REFERENCE_HANDLE_UNCOUNTED_TYPE (Camera)
 
- Public Member Functions inherited from Leviathan::Component
 Component (COMPONENT_TYPE type)
 
 Component (const Component &)=delete
 
Componentoperator= (const Component &)=delete
 

Public Attributes

uint8_t FOVY
 
bool SoundPerceiver
 
- Public Attributes inherited from Leviathan::Component
bool Marked
 
const COMPONENT_TYPE Type
 Type of this component, used for network serialization. More...
 

Static Public Attributes

static constexpr auto TYPE = COMPONENT_TYPE::Camera
 

Detailed Description

Properties that a camera entity has (will also need a Position component)

Definition at line 779 of file Components.h.

Constructor & Destructor Documentation

◆ Camera()

Leviathan::Camera::Camera ( uint8_t  fovy = 60,
bool  soundperceiver = true 
)
inline

Creates at specific position.

Definition at line 782 of file Components.h.

782  :
783  Component(TYPE), FOVY(fovy), SoundPerceiver(soundperceiver)
784  {
785  }
Component(COMPONENT_TYPE type)
Definition: Component.h:55
static constexpr auto TYPE
Definition: Components.h:799

Member Function Documentation

◆ REFERENCE_HANDLE_UNCOUNTED_TYPE()

Leviathan::Camera::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Camera  )

Member Data Documentation

◆ FOVY

uint8_t Leviathan::Camera::FOVY

Y-axis based field of view.

Warning
This is different than the usual x-axis based field of view! See the Ogre manual for details: Ogre::Frustum::setFOVy (const Radian & fovy )

Normal range is 45 to 60

Definition at line 794 of file Components.h.

◆ SoundPerceiver

bool Leviathan::Camera::SoundPerceiver

Definition at line 795 of file Components.h.

◆ TYPE

constexpr auto Leviathan::Camera::TYPE = COMPONENT_TYPE::Camera
static

Definition at line 799 of file Components.h.


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