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

#include <Skybox.h>

Collaboration diagram for hellfire::Skybox:

Public Member Functions

 Skybox ()=default
 
 ~Skybox ()
 
void set_cubemap_faces (const std::array< std::string, 6 > &faces)
 
void set_tint (const glm::vec3 &tint)
 
void set_exposure (float exposure)
 
uint32_t get_cubemap () const
 
glm::vec3 get_tint () const
 
float get_exposure () const
 
bool is_loaded () const
 

Private Member Functions

uint32_t load_cubemap (const std::array< std::string, 6 > &faces)
 

Private Attributes

uint32_t cubemap_texture_ = 0
 
glm::vec3 tint_ = glm::vec3(1.0f)
 
float exposure_ = 1.0f
 

Detailed Description

Definition at line 11 of file Skybox.h.

Constructor & Destructor Documentation

◆ Skybox()

hellfire::Skybox::Skybox ( )
default

◆ ~Skybox()

hellfire::Skybox::~Skybox ( )

Definition at line 12 of file Skybox.cpp.

Member Function Documentation

◆ get_cubemap()

uint32_t hellfire::Skybox::get_cubemap ( ) const
inline

Definition at line 27 of file Skybox.h.

◆ get_exposure()

float hellfire::Skybox::get_exposure ( ) const
inline

Definition at line 29 of file Skybox.h.

◆ get_tint()

glm::vec3 hellfire::Skybox::get_tint ( ) const
inline

Definition at line 28 of file Skybox.h.

◆ is_loaded()

bool hellfire::Skybox::is_loaded ( ) const
inline

Definition at line 31 of file Skybox.h.

◆ load_cubemap()

uint32_t hellfire::Skybox::load_cubemap ( const std::array< std::string, 6 > &  faces)
private

Definition at line 23 of file Skybox.cpp.

◆ set_cubemap_faces()

void hellfire::Skybox::set_cubemap_faces ( const std::array< std::string, 6 > &  faces)

Definition at line 16 of file Skybox.cpp.

◆ set_exposure()

void hellfire::Skybox::set_exposure ( float  exposure)
inline

Definition at line 23 of file Skybox.h.

◆ set_tint()

void hellfire::Skybox::set_tint ( const glm::vec3 &  tint)
inline

Definition at line 19 of file Skybox.h.

Member Data Documentation

◆ cubemap_texture_

uint32_t hellfire::Skybox::cubemap_texture_ = 0
private

Definition at line 37 of file Skybox.h.

◆ exposure_

float hellfire::Skybox::exposure_ = 1.0f
private

Definition at line 39 of file Skybox.h.

◆ tint_

glm::vec3 hellfire::Skybox::tint_ = glm::vec3(1.0f)
private

Definition at line 38 of file Skybox.h.


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