matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
engine::resources::Skybox Class Reference

Represents a skybox object within the OpenGL context. More...

#include <Skybox.hpp>

Public Member Functions

uint32_t vao () const
 Returns the OpenGL ID of the skybox.
 
uint32_t texture () const
 Returns the OpenGL ID of the skybox texture.
 
void destroy ()
 Destroys the skybox object in the OpenGL context.
 

Private Member Functions

 Skybox ()=default
 
 Skybox (uint32_t vao, uint32_t texture_id, std::filesystem::path path, std::string name)
 Constructs a Skybox object.
 

Private Attributes

uint32_t m_vao {0}
 
uint32_t m_texture_id {0}
 
std::filesystem::path m_path {}
 
std::string m_name {}
 

Friends

class ResourcesController
 

Detailed Description

Represents a skybox object within the OpenGL context.

Constructor & Destructor Documentation

◆ Skybox() [1/2]

engine::resources::Skybox::Skybox ( )
privatedefault

◆ Skybox() [2/2]

engine::resources::Skybox::Skybox ( uint32_t  vao,
uint32_t  texture_id,
std::filesystem::path  path,
std::string  name 
)
inlineprivate

Constructs a Skybox object.

Parameters
vaoThe OpenGL ID of the skybox.
texture_idThe OpenGL ID of the skybox texture.
pathThe path to the skybox texture.
nameThe name of the skybox.

Member Function Documentation

◆ vao()

uint32_t engine::resources::Skybox::vao ( ) const
inline

Returns the OpenGL ID of the skybox.

Returns
The OpenGL ID of the skybox.

◆ texture()

uint32_t engine::resources::Skybox::texture ( ) const
inline

Returns the OpenGL ID of the skybox texture.

Returns
The OpenGL ID of the skybox texture.

◆ destroy()

void engine::resources::Skybox::destroy ( )

Destroys the skybox object in the OpenGL context.

Friends And Related Symbol Documentation

◆ ResourcesController

friend class ResourcesController
friend

Member Data Documentation

◆ m_vao

uint32_t engine::resources::Skybox::m_vao {0}
private

◆ m_texture_id

uint32_t engine::resources::Skybox::m_texture_id {0}
private

◆ m_path

std::filesystem::path engine::resources::Skybox::m_path {}
private

◆ m_name

std::string engine::resources::Skybox::m_name {}
private

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