Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
sgui::TextureMeshes Class Reference

Compute texture meshes for a given texture map. More...

#include <TextureMeshes.h>

Public Member Functions

void computeTextureMapping (const TextureAtlas &textures)
 Compute texture mapping, this should be called before any texture() call.
Mesh texture (const std::string &textureID, const uint32_t frame=0) const
 get computed texture mesh of an entry
auto begin ()
auto end ()
auto begin () const
auto end () const

Detailed Description

Compute texture meshes for a given texture map.

Member Function Documentation

◆ begin() [1/2]

auto sgui::TextureMeshes::begin ( )
inline

To iterate through stored meshes

◆ begin() [2/2]

auto sgui::TextureMeshes::begin ( ) const
inline

◆ computeTextureMapping()

void sgui::TextureMeshes::computeTextureMapping ( const TextureAtlas & textures)

Compute texture mapping, this should be called before any texture() call.

Parameters
textureAtlas of all the textures in the files

◆ end() [1/2]

auto sgui::TextureMeshes::end ( )
inline

◆ end() [2/2]

auto sgui::TextureMeshes::end ( ) const
inline

◆ texture()

Mesh sgui::TextureMeshes::texture ( const std::string & textureID,
const uint32_t frame = 0 ) const

get computed texture mesh of an entry

Parameters
textureIDIdentifier of the texture
frameFrame number of the texture, if it is animated

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