Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::TextureManager Class Referenceexport

Public Member Functions

 TextureManager (Renderer const &renderer)
void addConfig (json const &config)
std::vector< std::array< float, 3 > > addNormalMapTexture (std::string const &name)
void addSkyBox (std::string const &skybox_name, std::vector< std::string > const &skybox_images, Renderer const &renderer)
void addKTXTexture (std::string const &name, std::string const &path, VkImageAspectFlags const aspect_flags, ktx_transcode_fmt_e const transcoding, Renderer const &renderer, bool const is_public=false)
void clear ()
TexturegetSkyboxTexture ()
Texture getSkyboxTexture () const &
std::unordered_map< std::string, std::string > const & getPaths () const
std::unordered_map< std::string, Texture > const & getTextures () const
TexturegetTerrainTexture ()
TexturegetWaterTexture ()
std::function< void(std::latch &count_down)> load (Renderer const &renderer)
std::function< void(std::latch &count_down)> loadSkybox (std::string_view skybox, Renderer const &renderer)
void setTerrainName (std::string const &terrain_name)
void setWaterName (std::string const &water_name)
void addTexture (Texture texture)
void add (std::string const &name, std::string const &file_path, VkImageAspectFlags const aspect_flags, TEXTURE_TYPE texture_type, Renderer const &renderer)
void addMaterial (material_t material)

Constructor & Destructor Documentation

◆ TextureManager()

Vyroda::TextureManager::TextureManager ( Renderer const & renderer)
Here is the call graph for this function:

Member Function Documentation

◆ add()

void Vyroda::TextureManager::add ( std::string const & name,
std::string const & file_path,
VkImageAspectFlags const aspect_flags,
TEXTURE_TYPE texture_type,
Renderer const & renderer )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addConfig()

void Vyroda::TextureManager::addConfig ( json const & config)
inline

◆ addKTXTexture()

void Vyroda::TextureManager::addKTXTexture ( std::string const & name,
std::string const & path,
VkImageAspectFlags const aspect_flags,
ktx_transcode_fmt_e const transcoding,
Renderer const & renderer,
bool const is_public = false )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addMaterial()

void Vyroda::TextureManager::addMaterial ( material_t material)
inline

◆ addNormalMapTexture()

std::vector< std::array< float, 3 > > Vyroda::TextureManager::addNormalMapTexture ( std::string const & name)
Here is the call graph for this function:

◆ addSkyBox()

void Vyroda::TextureManager::addSkyBox ( std::string const & skybox_name,
std::vector< std::string > const & skybox_images,
Renderer const & renderer )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTexture()

void Vyroda::TextureManager::addTexture ( Texture texture)
inline
Here is the call graph for this function:

◆ clear()

void Vyroda::TextureManager::clear ( )

◆ getPaths()

std::unordered_map< std::string, std::string > const & Vyroda::TextureManager::getPaths ( ) const
inline

◆ getSkyboxTexture() [1/2]

Texture & Vyroda::TextureManager::getSkyboxTexture ( )
inline

◆ getSkyboxTexture() [2/2]

Texture Vyroda::TextureManager::getSkyboxTexture ( ) const &
inline

◆ getTerrainTexture()

Texture & Vyroda::TextureManager::getTerrainTexture ( )
inline

◆ getTextures()

std::unordered_map< std::string, Texture > const & Vyroda::TextureManager::getTextures ( ) const
inline

◆ getWaterTexture()

Texture & Vyroda::TextureManager::getWaterTexture ( )
inline

◆ load()

std::function< void(std::latch &count_down)> Vyroda::TextureManager::load ( Renderer const & renderer)
Here is the call graph for this function:

◆ loadSkybox()

std::function< void(std::latch &count_down)> Vyroda::TextureManager::loadSkybox ( std::string_view skybox,
Renderer const & renderer )
Here is the call graph for this function:

◆ setTerrainName()

void Vyroda::TextureManager::setTerrainName ( std::string const & terrain_name)
inline
Here is the caller graph for this function:

◆ setWaterName()

void Vyroda::TextureManager::setWaterName ( std::string const & water_name)
inline
Here is the caller graph for this function:

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