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 fov=90, 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

uint16_t FOV
 Horizontal (ie. "normal") field of view. More...
 
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 713 of file Components.h.

Constructor & Destructor Documentation

◆ Camera()

Leviathan::Camera::Camera ( uint8_t  fov = 90,
bool  soundperceiver = true 
)
inline

Creates at specific position.

Version
This now takes the horizontal instead of vertical FOV

Definition at line 717 of file Components.h.

717  :
718  Component(TYPE), FOV(fov), SoundPerceiver(soundperceiver)
719  {}
Component(COMPONENT_TYPE type)
Definition: Component.h:54
static constexpr auto TYPE
Definition: Components.h:730
uint16_t FOV
Horizontal (ie. "normal") field of view.
Definition: Components.h:724

Member Function Documentation

◆ REFERENCE_HANDLE_UNCOUNTED_TYPE()

Leviathan::Camera::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Camera  )

Member Data Documentation

◆ FOV

uint16_t Leviathan::Camera::FOV

Horizontal (ie. "normal") field of view.

Definition at line 724 of file Components.h.

◆ SoundPerceiver

bool Leviathan::Camera::SoundPerceiver

Definition at line 726 of file Components.h.

◆ TYPE

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

Definition at line 730 of file Components.h.


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