Overload  1.1
Game engine with editor
Public Member Functions | Static Public Member Functions | List of all members
OvRendering::Resources::Loaders::TextureLoader Class Reference

#include <TextureLoader.h>

Public Member Functions

 TextureLoader ()=delete
 

Static Public Member Functions

static TextureCreate (const std::string &p_filepath, OvRendering::Settings::ETextureFilteringMode p_firstFilter, OvRendering::Settings::ETextureFilteringMode p_secondFilter, bool p_generateMipmap)
 
static TextureCreateColor (uint32_t p_data, OvRendering::Settings::ETextureFilteringMode p_firstFilter, OvRendering::Settings::ETextureFilteringMode p_secondFilter, bool p_generateMipmap)
 
static TextureCreateFromMemory (uint8_t *p_data, uint32_t p_width, uint32_t p_height, OvRendering::Settings::ETextureFilteringMode p_firstFilter, OvRendering::Settings::ETextureFilteringMode p_secondFilter, bool p_generateMipmap)
 
static void Reload (Texture &p_texture, const std::string &p_filePath)
 
static bool Destroy (Texture *&p_textureInstance)
 

Detailed Description

Handle the Texture creation and destruction

Constructor & Destructor Documentation

◆ TextureLoader()

OvRendering::Resources::Loaders::TextureLoader::TextureLoader ( )
delete

Disabled constructor

Member Function Documentation

◆ Create()

OvRendering::Resources::Texture * OvRendering::Resources::Loaders::TextureLoader::Create ( const std::string &  p_filepath,
OvRendering::Settings::ETextureFilteringMode  p_firstFilter,
OvRendering::Settings::ETextureFilteringMode  p_secondFilter,
bool  p_generateMipmap 
)
static

Create a texture from file

Parameters
p_filePath
p_firstFilter
p_secondFilter
p_generateMipmap

◆ CreateColor()

OvRendering::Resources::Texture * OvRendering::Resources::Loaders::TextureLoader::CreateColor ( uint32_t  p_data,
OvRendering::Settings::ETextureFilteringMode  p_firstFilter,
OvRendering::Settings::ETextureFilteringMode  p_secondFilter,
bool  p_generateMipmap 
)
static

Create a texture from a single pixel color

Parameters
p_data
p_firstFilder
p_secondFilter
p_generateMipmap

◆ CreateFromMemory()

OvRendering::Resources::Texture * OvRendering::Resources::Loaders::TextureLoader::CreateFromMemory ( uint8_t *  p_data,
uint32_t  p_width,
uint32_t  p_height,
OvRendering::Settings::ETextureFilteringMode  p_firstFilter,
OvRendering::Settings::ETextureFilteringMode  p_secondFilter,
bool  p_generateMipmap 
)
static

Create a texture from memory

Parameters
p_data
p_width
p_height
p_firstFilder
p_secondFilter
p_generateMipmap

◆ Destroy()

bool OvRendering::Resources::Loaders::TextureLoader::Destroy ( Texture *&  p_textureInstance)
static

Destroy a texture

Parameters
p_textureInstance

◆ Reload()

void OvRendering::Resources::Loaders::TextureLoader::Reload ( Texture p_texture,
const std::string &  p_filePath 
)
static

Reload a texture from file

Parameters
p_texture
p_filePath

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