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...
- 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
 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 699 of file Components.h.

Constructor & Destructor Documentation

◆ Camera()

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

Creates at specific position.

Definition at line 702 of file Components.h.

702  :
703  Component(TYPE), FOVY(fovy), SoundPerceiver(soundperceiver)
704  {}
Component(COMPONENT_TYPE type)
Definition: Component.h:54
static constexpr auto TYPE
Definition: Components.h:718

Member Function Documentation


Leviathan::Camera::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Camera  )

Member Data Documentation


uint8_t Leviathan::Camera::FOVY

Y-axis based field of view.

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 713 of file Components.h.

◆ SoundPerceiver

bool Leviathan::Camera::SoundPerceiver

Definition at line 714 of file Components.h.


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

Definition at line 718 of file Components.h.

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