neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_texture_manager Class Referenceabstract

#include <i_texture_manager.hpp>

Inheritance diagram for neogfx::i_texture_manager:
neolib::i_basic_cookie_consumer< CookieType > neolib::services::i_service neogfx::texture_manager

Classes

struct  texture_not_found
 

Public Member Functions

ref_ptr< i_texturefind_texture (texture_id aId) const
 
virtual void find_texture (texture_id aId, i_ref_ptr< i_texture > &aResult) const =0
 
ref_ptr< i_texturecreate_texture (neogfx::size const &aExtents, dimension aDpiScaleFactor=1.0, texture_sampling aSampling=texture_sampling::NormalMipmap, texture_data_format aDataFormat=texture_data_format::RGBA, texture_data_type aDataType=texture_data_type::UnsignedByte, color_space aColorSpace=color_space::sRGB, optional_color const &aColor=optional_color())
 
virtual void create_texture (neogfx::size const &aExtents, dimension aDpiScaleFactor, texture_sampling aSampling, texture_data_format aDataFormat, texture_data_type aDataType, color_space aColorSpace, optional_color const &aColor, i_ref_ptr< i_texture > &aResult)=0
 
ref_ptr< i_texturecreate_texture (i_image const &aImage, texture_data_format aDataFormat=texture_data_format::RGBA, texture_data_type aDataType=texture_data_type::UnsignedByte)
 
ref_ptr< i_texturecreate_texture (i_image const &aImage, const rect &aImagePart, texture_data_format aDataFormat=texture_data_format::RGBA, texture_data_type aDataType=texture_data_type::UnsignedByte)
 
virtual void create_texture (i_image const &aImage, const rect &aImagePart, texture_data_format aDataFormat, texture_data_type aDataType, i_ref_ptr< i_texture > &aResult)=0
 
virtual void clear_textures ()=0
 
virtual std::unique_ptr< i_texture_atlascreate_texture_atlas (const size &aSize=size{ 1024.0, 1024.0 })=0
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static uuid const & iid ()
 

Friends

class texture_atlas
 

Additional Inherited Members

Detailed Description

Definition at line 33 of file i_texture_manager.hpp.

Member Function Documentation

◆ clear_textures()

virtual void neogfx::i_texture_manager::clear_textures ( )
pure virtual

Implemented in neogfx::texture_manager.

◆ create_texture() [1/5]

virtual void neogfx::i_texture_manager::create_texture ( i_image const &  aImage,
const rect aImagePart,
texture_data_format  aDataFormat,
texture_data_type  aDataType,
i_ref_ptr< i_texture > &  aResult 
)
pure virtual

◆ create_texture() [2/5]

ref_ptr< i_texture > neogfx::i_texture_manager::create_texture ( i_image const &  aImage,
const rect aImagePart,
texture_data_format  aDataFormat = texture_data_format::RGBA,
texture_data_type  aDataType = texture_data_type::UnsignedByte 
)
inline

Definition at line 59 of file i_texture_manager.hpp.

◆ create_texture() [3/5]

ref_ptr< i_texture > neogfx::i_texture_manager::create_texture ( i_image const &  aImage,
texture_data_format  aDataFormat = texture_data_format::RGBA,
texture_data_type  aDataType = texture_data_type::UnsignedByte 
)
inline

Definition at line 55 of file i_texture_manager.hpp.

◆ create_texture() [4/5]

virtual void neogfx::i_texture_manager::create_texture ( neogfx::size const &  aExtents,
dimension  aDpiScaleFactor,
texture_sampling  aSampling,
texture_data_format  aDataFormat,
texture_data_type  aDataType,
color_space  aColorSpace,
optional_color const &  aColor,
i_ref_ptr< i_texture > &  aResult 
)
pure virtual

◆ create_texture() [5/5]

ref_ptr< i_texture > neogfx::i_texture_manager::create_texture ( neogfx::size const &  aExtents,
dimension  aDpiScaleFactor = 1.0,
texture_sampling  aSampling = texture_sampling::NormalMipmap,
texture_data_format  aDataFormat = texture_data_format::RGBA,
texture_data_type  aDataType = texture_data_type::UnsignedByte,
color_space  aColorSpace = color_space::sRGB,
optional_color const &  aColor = optional_color() 
)
inline

Definition at line 48 of file i_texture_manager.hpp.

◆ create_texture_atlas()

virtual std::unique_ptr< i_texture_atlas > neogfx::i_texture_manager::create_texture_atlas ( const size aSize = size{ 1024.0, 1024.0 })
pure virtual

Implemented in neogfx::texture_manager.

◆ find_texture() [1/2]

ref_ptr< i_texture > neogfx::i_texture_manager::find_texture ( texture_id  aId) const
inline

Definition at line 41 of file i_texture_manager.hpp.

◆ find_texture() [2/2]

virtual void neogfx::i_texture_manager::find_texture ( texture_id  aId,
i_ref_ptr< i_texture > &  aResult 
) const
pure virtual

Implemented in neogfx::texture_manager.

◆ iid()

static uuid const & neogfx::i_texture_manager::iid ( )
inlinestatic

Definition at line 73 of file i_texture_manager.hpp.

Friends And Related Symbol Documentation

◆ texture_atlas

friend class texture_atlas
friend

Definition at line 35 of file i_texture_manager.hpp.


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