Loading...
Searching...
No Matches
hellfire::PerspectiveCamera Class Reference

#include <CameraFactory.h>

Collaboration diagram for hellfire::PerspectiveCamera:

Static Public Member Functions

static EntityID create (Scene *scene, const std::string &name, float fov=70.0f, float aspect=16.0f/9.0f, float near_plane=0.1f, float far_plane=1000.0f, const glm::vec3 &position=glm::vec3(0.0f))
 
static EntityID create_looking_at (Scene *scene, const std::string &name, const glm::vec3 &position, const glm::vec3 &target, float fov=70.0f, float aspect=16.0f/9.0f, float near_plane=0.1f, float far_plane=1000.0f)
 
static Entitycreate (const std::string &name="PerspectiveCamera", float fov=45.0f, float aspect=16.0f/9.0f, float near_plane=0.1f, float far_plane=100.0f, const glm::vec3 &position=glm::vec3(0.0f, 0.0f, 0.0f))
 
static Entitycreate_looking_at (const std::string &name, const glm::vec3 &position, const glm::vec3 &target, float fov=45.0f, float aspect=16.0f/9.0f, float near_plane=0.1f, float far_plane=100.0f)
 

Detailed Description

Definition at line 9 of file CameraFactory.h.

Member Function Documentation

◆ create() [1/2]

static Entity * hellfire::PerspectiveCamera::create ( const std::string &  name = "PerspectiveCamera",
float  fov = 45.0f,
float  aspect = 16.0f / 9.0f,
float  near_plane = 0.1f,
float  far_plane = 100.0f,
const glm::vec3 &  position = glm::vec3(0.0f, 0.0f, 0.0f) 
)
inlinestatic

Definition at line 8 of file Cameras.h.

◆ create() [2/2]

EntityID hellfire::PerspectiveCamera::create ( Scene scene,
const std::string &  name,
float  fov = 70.0f,
float  aspect = 16.0f/9.0f,
float  near_plane = 0.1f,
float  far_plane = 1000.0f,
const glm::vec3 &  position = glm::vec3(0.0f) 
)
static

Definition at line 7 of file CameraFactory.cpp.

◆ create_looking_at() [1/2]

static Entity * hellfire::PerspectiveCamera::create_looking_at ( const std::string &  name,
const glm::vec3 &  position,
const glm::vec3 &  target,
float  fov = 45.0f,
float  aspect = 16.0f / 9.0f,
float  near_plane = 0.1f,
float  far_plane = 100.0f 
)
inlinestatic

Definition at line 25 of file Cameras.h.

◆ create_looking_at() [2/2]

EntityID hellfire::PerspectiveCamera::create_looking_at ( Scene scene,
const std::string &  name,
const glm::vec3 &  position,
const glm::vec3 &  target,
float  fov = 70.0f,
float  aspect = 16.0f/9.0f,
float  near_plane = 0.1f,
float  far_plane = 1000.0f 
)
static

Definition at line 21 of file CameraFactory.cpp.


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