vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
ven::TextureFactory Class Reference

Class for Texture factory. More...

#include <Texture.hpp>

+ Collaboration diagram for ven::TextureFactory:

Public Member Functions

 TextureFactory ()=delete
 
 ~TextureFactory ()=default
 
 TextureFactory (const TextureFactory &)=delete
 
TextureFactoryoperator= (const TextureFactory &)=delete
 
 TextureFactory (TextureFactory &&)=delete
 
TextureFactoryoperator= (TextureFactory &&)=delete
 

Static Public Member Functions

static std::unique_ptr< Texturecreate (Device &device, const std::string &filepath)
 
static std::unordered_map< std::string, std::shared_ptr< Texture > > loadAll (Device &device, const std::string &folderPath)
 

Detailed Description

Class for Texture factory.

Definition at line 21 of file Texture.hpp.

Constructor & Destructor Documentation

◆ TextureFactory() [1/3]

ven::TextureFactory::TextureFactory ( )
delete

◆ ~TextureFactory()

ven::TextureFactory::~TextureFactory ( )
default

◆ TextureFactory() [2/3]

ven::TextureFactory::TextureFactory ( const TextureFactory & )
delete

◆ TextureFactory() [3/3]

ven::TextureFactory::TextureFactory ( TextureFactory && )
delete

Member Function Documentation

◆ create()

static std::unique_ptr< Texture > ven::TextureFactory::create ( Device & device,
const std::string & filepath )
inlinestatic

Definition at line 33 of file Texture.hpp.

Referenced by ven::SceneManager::SceneManager().

+ Here is the caller graph for this function:

◆ loadAll()

std::unordered_map< std::string, std::shared_ptr< ven::Texture > > ven::TextureFactory::loadAll ( Device & device,
const std::string & folderPath )
static

Definition at line 6 of file Texture.cpp.

References ven::Logger::logExecutionTime(), and ven::Logger::logWarning().

+ Here is the call graph for this function:

◆ operator=() [1/2]

TextureFactory & ven::TextureFactory::operator= ( const TextureFactory & )
delete

◆ operator=() [2/2]

TextureFactory & ven::TextureFactory::operator= ( TextureFactory && )
delete

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