Nugget
Classes | Public Member Functions | Protected Types | Protected Member Functions | Friends | List of all members
psyqo::FontBase Class Referenceabstract

The Font drawing class. More...

#include <font.hh>

Inheritance diagram for psyqo::FontBase:
Inheritance graph
[legend]

Classes

struct  GlyphsFragmentPrologue
 
struct  XPrintfInfo
 

Public Member Functions

void uploadSystemFont (GPU &gpu)
 
void print (GPU &gpu, const char *text, Vertex pos, Color color)
 
void print (GPU &gpu, const char *text, Vertex pos, Color color, eastl::function< void()> &&callback, DMA::DmaCallback dmaCallback)
 
void printf (GPU &gpu, Vertex pos, Color color, const char *format,...)
 
void printf (GPU &gpu, Vertex pos, Color color, eastl::function< void()> &&callback, DMA::DmaCallback dmaCallback, const char *format,...)
 
void vprintf (GPU &gpu, Vertex pos, Color color, const char *format, va_list ap)
 
void vprintf (GPU &gpu, Vertex pos, Color color, eastl::function< void()> &&callback, DMA::DmaCallback dmaCallback, const char *format, va_list ap)
 
void chainprint (GPU &gpu, const char *text, Vertex pos, Color color)
 
void chainprintf (GPU &gpu, Vertex pos, Color color, const char *format,...)
 
void chainvprintf (GPU &gpu, Vertex pos, Color color, const char *format, va_list ap)
 

Protected Types

typedef Fragments::FixedFragmentWithPrologue< GlyphsFragmentPrologue, Prim::Sprite, 48 > GlyphsFragment
 

Protected Member Functions

virtual GlyphsFragmentgetGlyphFragment (bool increment)=0
 
virtual void forEach (eastl::function< void(GlyphsFragment &)> &&cb)=0
 
void innerprint (GlyphsFragment &fragment, GPU &gpu, const char *text, Vertex pos, Color color)
 
void innervprintf (GlyphsFragment &fragment, GPU &gpu, Vertex pos, Color color, const char *format, va_list ap)
 

Friends

struct XPrintfInfo
 

Detailed Description

The Font drawing class.

This class might be overhauled in the future as it's not fully featured yet. The goal is to provide a simple interface for drawing text on the screen. Currently only the internal system font is supported.


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