jubilant-funicular
|
represents the organization of a texture containing the characters More...
#include <SpriteFont.h>
Classes | |
struct | CharRect |
a rectangle representing the location of a char in the FontMap More... | |
Public Member Functions | |
FontMap () | |
constructor and destructor | |
glm::vec2 | getBoundingDimensions () const |
returns the dimensions of the rectangle that contains the FontMap | |
void | addRect (char c, crvec2 dimensions) |
adds a rectangle and associates it with c (replacing any preexisting rectangle) | |
void | position () |
positions map so that the topleft is at (0,0) | |
Public Attributes | |
friend | SpriteFont |
Private Member Functions | |
bool | isOverlapping (const CharRect &rect) const |
returns whether or not rect is overlapping with any existing CharRect | |
Private Attributes | |
CharRect * | m_rects = nullptr |
the rectangles making up the FontMap | |
represents the organization of a texture containing the characters
Definition at line 26 of file SpriteFont.h.