#include <texture_manager.hpp>
|
void | find_texture (texture_id aId, i_ref_ptr< i_texture > &aResult) const override |
|
void | clear_textures () override |
|
void | add_ref (texture_id aId) override |
|
void | release (texture_id aId) override |
|
long | use_count (texture_id aId) const override |
|
std::unique_ptr< i_texture_atlas > | create_texture_atlas (size const &aSize=size{ 1024.0, 1024.0 }) override |
|
ref_ptr< i_texture > | find_texture (texture_id aId) const |
|
ref_ptr< i_texture > | 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()) |
|
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_texture > | create_texture (i_image const &aImage, texture_data_format aDataFormat=texture_data_format::RGBA, texture_data_type aDataType=texture_data_type::UnsignedByte) |
|
ref_ptr< i_texture > | 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) |
|
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 | ~i_basic_cookie_consumer ()=default |
|
virtual void | add_ref (cookie_type aCookie)=0 |
|
virtual void | release (cookie_type aCookie)=0 |
|
virtual long | use_count (cookie_type aCookie) const =0 |
|
virtual | ~i_service ()=default |
|
Definition at line 30 of file texture_manager.hpp.
◆ texture_list
◆ texture_list_entry
◆ texture_pointer
◆ add_ref()
void neogfx::texture_manager::add_ref |
( |
texture_id |
aId | ) |
|
|
override |
◆ add_texture()
◆ allocate_texture_id()
texture_id neogfx::texture_manager::allocate_texture_id |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ clear_textures()
void neogfx::texture_manager::clear_textures |
( |
| ) |
|
|
overridevirtual |
◆ create_texture_atlas()
std::unique_ptr< i_texture_atlas > neogfx::texture_manager::create_texture_atlas |
( |
size const & |
aSize = size{ 1024.0, 1024.0 } | ) |
|
|
overridevirtual |
◆ find_texture() [1/3]
texture_list::iterator neogfx::texture_manager::find_texture |
( |
i_image const & |
aImage, |
|
|
rect const & |
aImagePart |
|
) |
| |
|
protected |
◆ find_texture() [2/3]
texture_list::const_iterator neogfx::texture_manager::find_texture |
( |
i_image const & |
aImage, |
|
|
rect const & |
aImagePart |
|
) |
| const |
|
protected |
◆ find_texture() [3/3]
◆ release()
void neogfx::texture_manager::release |
( |
texture_id |
aId | ) |
|
|
override |
◆ textures() [1/2]
◆ textures() [2/2]
const texture_list & neogfx::texture_manager::textures |
( |
| ) |
const |
|
protected |
◆ use_count()
long neogfx::texture_manager::use_count |
( |
texture_id |
aId | ) |
const |
|
override |
◆ item_cookie
◆ texture_wrapper
friend class texture_wrapper |
|
friend |
The documentation for this class was generated from the following file: