LuaSTG-x Core API
imgui::ImFontAtlas Class Reference

Public Member Functions

function addCustomRectFontGlyph (local font, local id, local width, local height, local advance_x, local offset)
 
function addCustomRectRegular (local width, local height)
 
function build ()
 
function clear ()
 
function clearFonts ()
 
function clearInputData ()
 
function clearTexData ()
 
function getCustomRectByIndex (local index)
 
function isBuilt ()
 

Member Function Documentation

◆ addCustomRectFontGlyph()

function addCustomRectFontGlyph ( local  font,
local  id,
local  width,
local  height,
local  advance_x,
local  offset 
)
Parameters
fontimgui.ImFont
idnumber
widthnumber
heightnumber
advance_xnumber
offsetImVec2
Returns
number

◆ addCustomRectRegular()

function addCustomRectRegular ( local  width,
local  height 
)
Parameters
widthnumber
heightnumber
Returns
number

◆ build()

function build ( )

Build pixels data. This is called automatically for you by the GetTexData*** functions.

Returns
boolean

◆ clear()

function clear ( )

Clear all input and output.

Returns
imgui.ImFontAtlas

◆ clearFonts()

function clearFonts ( )

Clear output font data (glyphs storage, UV coordinates).

Returns
imgui.ImFontAtlas

◆ clearInputData()

function clearInputData ( )

Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts.

Returns
imgui.ImFontAtlas

◆ clearTexData()

function clearTexData ( )

Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory.

Returns
imgui.ImFontAtlas

◆ getCustomRectByIndex()

function getCustomRectByIndex ( local  index)
Parameters
indexnumber
Returns
imgui.ImFontAtlasCustomRect

◆ isBuilt()

function isBuilt ( )
Returns
boolean

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