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

Allow user to make a collage of several textures in one image. More...

#include <TextureCollage.h>

Classes

struct  ImageInfo

Public Member Functions

 TextureCollage (const std::string &directory, const CollageOptions &options={})
 build a texture from a collage of all images in the directory
const sf::Image & image () const
 get texture collage
TextureAtlasatlas ()
 get texture atlas
const TextureAtlasatlas () const

Detailed Description

Allow user to make a collage of several textures in one image.

Constructor & Destructor Documentation

◆ TextureCollage()

sgui::TextureCollage::TextureCollage ( const std::string & directory,
const CollageOptions & options = {} )

build a texture from a collage of all images in the directory

Parameters
directoryDirectory from which all images will be patched
optionsIf a color need to be removed from images

Member Function Documentation

◆ atlas() [1/2]

TextureAtlas & sgui::TextureCollage::atlas ( )
inline

get texture atlas

◆ atlas() [2/2]

const TextureAtlas & sgui::TextureCollage::atlas ( ) const
inline

◆ image()

const sf::Image & sgui::TextureCollage::image ( ) const
inline

get texture collage


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