HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
v1::glyph_atlas_info Class Reference

Public Member Functions

constexpr bool empty () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr glyph_atlas_info (point3 position, extent2 size, scale2 border_scale, scale2 texture_coordinate_scale) noexcept
 

Data Fields

point3 position
 pixel coordinates.
 
extent2 size
 Size of the glyph in pixels in the texture map.
 
scale2 border_scale
 The scaling factor used for scaling a quad to include the border.
 
aarectangle texture_coordinates
 The position and size of the glyph in the texture in UV coordinates.
 

Constructor & Destructor Documentation

◆ glyph_atlas_info()

constexpr v1::glyph_atlas_info::glyph_atlas_info ( point3 position,
extent2 size,
scale2 border_scale,
scale2 texture_coordinate_scale )
inlineconstexprnoexcept
Parameters
positionPixel coordinate (x, y), z: texture map number.
sizeNumber of pixels in width and height
border_scaleThe amount to scale a polygon to add a border.
texture_coordinate_scaleThe amount to scale texel coordinate to UV (0.0-1.0) coordinates.

Field Documentation

◆ border_scale

scale2 v1::glyph_atlas_info::border_scale

The scaling factor used for scaling a quad to include the border.

◆ position

point3 v1::glyph_atlas_info::position

pixel coordinates.

  • (x, y): pixel coordinate of left-bottom corner of the glyph in the atlas.
  • z: index in the texture map array.

◆ size

extent2 v1::glyph_atlas_info::size

Size of the glyph in pixels in the texture map.

◆ texture_coordinates

aarectangle v1::glyph_atlas_info::texture_coordinates

The position and size of the glyph in the texture in UV coordinates.

The coordinates are relative values between 0.0 - 1.0 between the edges of the texture map.


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