jubilant-funicular
Classes | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
nta::FontMap Class Reference

represents the organization of a texture containing the characters More...

#include <SpriteFont.h>

Collaboration diagram for nta::FontMap:
Collaboration graph
[legend]

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

CharRectm_rects = nullptr
 the rectangles making up the FontMap
 

Detailed Description

represents the organization of a texture containing the characters

Definition at line 26 of file SpriteFont.h.


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