Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
irr::gui::CGUITTGlyphPage Class Reference

Holds a sheet of glyphs. More...

#include <CGUITTFont.h>

Public Member Functions

 CGUITTGlyphPage (video::IVideoDriver *Driver, const io::path &texture_name)
 
 ~CGUITTGlyphPage ()
 
bool createPageTexture (const u8 &pixel_mode, const core::dimension2du &texture_size)
 Create the actual page texture,.
 
void pushGlyphToBePaged (const SGUITTGlyph *glyph)
 Add the glyph to a list of glyphs to be paged.
 
void updateTexture ()
 Updates the texture atlas with new glyphs.
 

Public Attributes

video::ITexture * texture
 
u32 available_slots
 
u32 used_slots
 
bool dirty
 
core::array< core::vector2di > render_positions
 
core::array< core::recti > render_source_rects
 
core::array< video::SColor > render_colors
 

Private Attributes

core::array< const SGUITTGlyph * > glyph_to_be_paged
 
video::IVideoDriver * driver
 
io::path name
 

Detailed Description

Holds a sheet of glyphs.

Constructor & Destructor Documentation

◆ CGUITTGlyphPage()

irr::gui::CGUITTGlyphPage::CGUITTGlyphPage ( video::IVideoDriver *  Driver,
const io::path &  texture_name 
)
inline

◆ ~CGUITTGlyphPage()

irr::gui::CGUITTGlyphPage::~CGUITTGlyphPage ( )
inline

References driver, and texture.

Member Function Documentation

◆ createPageTexture()

bool irr::gui::CGUITTGlyphPage::createPageTexture ( const u8 &  pixel_mode,
const core::dimension2du &  texture_size 
)
inline

Create the actual page texture,.

References driver, name, and texture.

Referenced by irr::gui::CGUITTFont::createGlyphPage().

+ Here is the caller graph for this function:

◆ pushGlyphToBePaged()

void irr::gui::CGUITTGlyphPage::pushGlyphToBePaged ( const SGUITTGlyph glyph)
inline

Add the glyph to a list of glyphs to be paged.

This collection will be cleared after updateTexture is called.

References glyph_to_be_paged.

◆ updateTexture()

void irr::gui::CGUITTGlyphPage::updateTexture ( )
inline

Updates the texture atlas with new glyphs.

References dirty, driver, glyph_to_be_paged, irr::gui::SGUITTGlyph::isLoaded, irr::gui::SGUITTGlyph::source_rect, irr::gui::SGUITTGlyph::surface, and texture.

Referenced by irr::gui::CGUITTFont::createTextureFromChar().

+ Here is the caller graph for this function:

Member Data Documentation

◆ available_slots

◆ dirty

bool irr::gui::CGUITTGlyphPage::dirty

◆ driver

video::IVideoDriver* irr::gui::CGUITTGlyphPage::driver
private

◆ glyph_to_be_paged

core::array<const SGUITTGlyph*> irr::gui::CGUITTGlyphPage::glyph_to_be_paged
private

◆ name

io::path irr::gui::CGUITTGlyphPage::name
private

Referenced by createPageTexture().

◆ render_colors

core::array<video::SColor> irr::gui::CGUITTGlyphPage::render_colors

◆ render_positions

core::array<core::vector2di> irr::gui::CGUITTGlyphPage::render_positions

◆ render_source_rects

core::array<core::recti> irr::gui::CGUITTGlyphPage::render_source_rects

◆ texture

◆ used_slots

u32 irr::gui::CGUITTGlyphPage::used_slots

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