Files
tp/include/JSystem/JUtility/JUTDirectPrint.h
T

59 lines
1.8 KiB
C++
Raw Normal View History

2021-03-28 22:49:05 +02:00
#ifndef JUTDIRECTPRINT_H
#define JUTDIRECTPRINT_H
2021-09-24 17:51:55 +02:00
#include "JSystem/JUtility/TColor.h"
2021-09-26 12:28:18 +02:00
#include "Runtime.PPCEABI.H/__va_arg.h"
2021-09-25 21:08:33 +02:00
#include "dolphin/types.h"
2021-09-24 17:51:55 +02:00
class JUTDirectPrint {
2021-09-26 01:29:20 +02:00
private:
2021-09-24 17:51:55 +02:00
/* 802E41E8 */ JUTDirectPrint();
2021-09-26 01:29:20 +02:00
public:
2021-09-24 17:51:55 +02:00
/* 802E4288 */ void erase(int, int, int, int);
/* 802E431C */ void drawChar(int, int, int);
/* 802E456C */ void changeFrameBuffer(void*, u16, u16);
2021-09-26 12:28:18 +02:00
/* -------- */ void print(u16, u16, char const*, ...);
/* 802E45A4 */ void printSub(u16, u16, char const*, va_list, bool);
2021-09-24 17:51:55 +02:00
/* 802E46D8 */ void drawString(u16, u16, char*);
/* 802E4708 */ void drawString_f(u16, u16, char const*, ...);
/* 802E47C8 */ void setCharColor(u8, u8, u8);
/* 802E4798 */ void setCharColor(JUtility::TColor);
2021-09-26 01:29:20 +02:00
/* 802E4240 */ static JUTDirectPrint* start();
2021-11-09 23:09:38 +01:00
bool isActive() const { return field_0x00 != 0; }
2022-01-10 04:07:06 -08:00
JUtility::TColor getCharColor() const { return mCharColor; }
2021-11-09 23:09:38 +01:00
2021-09-27 18:49:30 +02:00
static JUTDirectPrint* getManager() { return sDirectPrint; }
2021-09-26 01:29:20 +02:00
private:
2021-09-24 17:51:55 +02:00
static u8 sAsciiTable[128];
2021-09-25 17:52:47 +02:00
static u32 sFontData[64];
static u32 sFontData2[77];
2021-09-24 17:57:00 +02:00
static JUTDirectPrint* sDirectPrint;
static u8 sDirectPrint_padding[4 /* padding */];
2021-09-24 17:51:55 +02:00
private:
/* 0x00 */ void* field_0x00;
/* 0x04 */ u16 mFrameBufferWidth;
/* 0x06 */ u16 mFrameBufferHeight;
/* 0x08 */ u16 mStride;
2021-09-24 17:51:55 +02:00
/* 0x0A */ u16 field_0x0A;
/* 0x0C */ size_t mFrameBufferSize;
2021-09-24 17:51:55 +02:00
/* 0x10 */ u8 field_0x10[4];
2021-09-24 18:09:12 +02:00
/* 0x14 */ u16* mFrameBuffer;
2021-09-24 17:51:55 +02:00
/* 0x18 */ JUtility::TColor mCharColor;
2021-09-26 00:53:28 +02:00
/* 0x1C */ u16 mCharColor_Y;
/* 0x1E */ u16 mCharColor_Cb;
/* 0x20 */ u16 mCharColor_Cb2;
/* 0x22 */ u16 mCharColor_Cb4;
/* 0x24 */ u16 mCharColor_Cr;
/* 0x26 */ u16 mCharColor_Cr2;
/* 0x28 */ u16 mCharColor_Cr4;
2021-09-24 17:51:55 +02:00
/* 0x2A */ u16 field_0x2A;
/* 0x2C */
};
2021-03-28 22:49:05 +02:00
#endif /* JUTDIRECTPRINT_H */