osu-ds/source/System/TextManager.h
KonPet 183228e28e Change stuff to make it build
Removed the arm7 section
Changed the makefile to only use the arm9 stuff
Epicpkmn: Fix source/Graphics/GraphicsManager.cpp

Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
2021-10-21 00:03:39 +02:00

61 lines
1021 B
C++

#include <nds.h>
#include <stdio.h>
#include <stdarg.h>
#include <vector>
#include "Graphics/GraphicsManager.h"
#include "Libraries/gfxconsole.h"
#include "hoo06_bmf.h"
#include "gomics_bmf.h"
#include "370_bmf.h"
#include "ver08_bmf.h"
#ifndef __TEXTMANAGER_H__
#define __TEXTMANAGER_H__
#define NUMBER_OF_FONTS 4
typedef enum {
FONT_CONSOLE,
FONT_SCORE,
FONT_NUMBERING,
FONT_VERDANA
} FONT;
using namespace std;
class TextManager
{
public:
static TextManager& Top() { return sTop; }
static TextManager& Bottom() { return sBottom; }
static void Init();
static void Warn(char* format, ...);
void SetFont(FONT font);
void PrintFloat(char* format, ...);
void Print(char* format, ...);
void Clear();
void PrintLocate(int x, int y, DrawOrigin origin, char* format, ...);
protected:
gfxPrintConsole* mConsole;
int mFonts[NUMBER_OF_FONTS];
static TextManager sTop, sBottom;
static void AddFont(FONT font, const u8* data);
private:
TextManager();
};
#endif