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

#include <texture_atlas.hpp>

Inheritance diagram for neogfx::texture_atlas:
neogfx::i_texture_atlas

Public Member Functions

 texture_atlas (const size &aPageSize)
 
const i_sub_texturesub_texture (texture_id aSubTextureId) const override
 
i_sub_texturesub_texture (texture_id aSubTextureId) override
 
i_sub_texturecreate_sub_texture (const size &aSize, dimension aDpiScaleFactor, texture_sampling aSampling, texture_data_format aDataFormat=texture_data_format::RGBA) override
 
i_sub_texturecreate_sub_texture (const i_image &aImage) override
 
i_sub_texturecreate_sub_texture (const i_image &aImage, const rect &aImagePart) override
 
void destroy_sub_texture (i_sub_texture &aSubTexture) override
 
- Public Member Functions inherited from neogfx::i_texture_atlas
virtual ~i_texture_atlas ()=default
 

Detailed Description

Definition at line 36 of file texture_atlas.hpp.

Constructor & Destructor Documentation

◆ texture_atlas()

neogfx::texture_atlas::texture_atlas ( const size aPageSize)

Member Function Documentation

◆ create_sub_texture() [1/3]

i_sub_texture & neogfx::texture_atlas::create_sub_texture ( const i_image aImage)
overridevirtual

◆ create_sub_texture() [2/3]

i_sub_texture & neogfx::texture_atlas::create_sub_texture ( const i_image aImage,
const rect aImagePart 
)
overridevirtual

◆ create_sub_texture() [3/3]

i_sub_texture & neogfx::texture_atlas::create_sub_texture ( const size aSize,
dimension  aDpiScaleFactor,
texture_sampling  aSampling,
texture_data_format  aDataFormat = texture_data_format::RGBA 
)
overridevirtual

◆ destroy_sub_texture()

void neogfx::texture_atlas::destroy_sub_texture ( i_sub_texture aSubTexture)
overridevirtual

◆ sub_texture() [1/2]

const i_sub_texture & neogfx::texture_atlas::sub_texture ( texture_id  aSubTextureId) const
overridevirtual

◆ sub_texture() [2/2]

i_sub_texture & neogfx::texture_atlas::sub_texture ( texture_id  aSubTextureId)
overridevirtual

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