|
| 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.
|
| |
◆ glyph_atlas_info()
| constexpr v1::glyph_atlas_info::glyph_atlas_info |
( |
point3 | position, |
|
|
extent2 | size, |
|
|
scale2 | border_scale, |
|
|
scale2 | texture_coordinate_scale ) |
|
inlineconstexprnoexcept |
- Parameters
-
| position | Pixel coordinate (x, y), z: texture map number. |
| size | Number of pixels in width and height |
| border_scale | The amount to scale a polygon to add a border. |
| texture_coordinate_scale | The amount to scale texel coordinate to UV (0.0-1.0) coordinates. |
◆ 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: