CGVIS Utils
Loading...
Searching...
No Matches
CharPosition Struct Reference

Character box in a bitmap atlas. More...

#include <FontRenderer.h>

Collaboration diagram for CharPosition:
[legend]

Public Attributes

char c
 Character this rectangle corresponds to.
Vec2ui topLeft
 Top-left corner (inclusive) of the glyph box in the atlas.
Vec2ui bottomRight
 Bottom-right corner (exclusive) of the glyph box in the atlas.

Detailed Description

Character box in a bitmap atlas.

Holds the character code and the inclusive-exclusive rectangle defining its region in the atlas image, expressed in pixel coordinates with origin at the top-left of the atlas.

Member Data Documentation

◆ bottomRight

Vec2ui CharPosition::bottomRight

Bottom-right corner (exclusive) of the glyph box in the atlas.

◆ c

char CharPosition::c

Character this rectangle corresponds to.

◆ topLeft

Vec2ui CharPosition::topLeft

Top-left corner (inclusive) of the glyph box in the atlas.


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