MOS
Public Member Functions | Public Attributes | List of all members
mos::gfx::Cube_camera Class Referencefinal

Camera for environment rendering. More...

#include <cube_camera.hpp>

Public Member Functions

 Cube_camera (const glm::vec3 &position=glm::vec3(0.0f, 0.0f, 1.25f), float near=0.1f, float far=100.0f)
 
auto position () const -> glm::vec3
 
auto position (const glm::vec3 &position) -> void
 Set position. More...
 
auto near_far (float near, float far) -> void
 Set near and far planes. More...
 

Public Attributes

std::array< Camera, 6 > cameras
 Cameras for eac axis. More...
 

Detailed Description

Camera for environment rendering.

Member Function Documentation

◆ near_far()

auto mos::gfx::Cube_camera::near_far ( float  near,
float  far 
) -> void

Set near and far planes.

◆ position()

auto mos::gfx::Cube_camera::position ( const glm::vec3 &  position) -> void

Set position.

Member Data Documentation

◆ cameras

std::array<Camera, 6> mos::gfx::Cube_camera::cameras

Cameras for eac axis.


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