Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTDirectPrint Class Reference

#include <JUTDirectPrint.h>

+ Collaboration diagram for JUTDirectPrint:

Public Member Functions

void erase (int, int, int, int)
 
void drawChar (int, int, int)
 
void changeFrameBuffer (void *, u16, u16)
 
void print (u16, u16, char const *,...)
 
void printSub (u16, u16, char const *, va_list, bool)
 
void drawString (u16, u16, char *)
 
void drawString_f (u16, u16, char const *,...)
 
void setCharColor (u8, u8, u8)
 
void setCharColor (JUtility::TColor)
 
bool isActive () const
 
JUtility::TColor getCharColor () const
 
void changeFrameBuffer (void *param_0)
 
voidgetFrameBuffer ()
 

Static Public Member Functions

static JUTDirectPrintstart ()
 
static JUTDirectPrintgetManager ()
 

Private Member Functions

 JUTDirectPrint ()
 

Private Attributes

voidfield_0x00
 
u16 mFrameBufferWidth
 
u16 mFrameBufferHeight
 
u16 mStride
 
u16 field_0x0A
 
size_t mFrameBufferSize
 
u8 field_0x10 [4]
 
u16mFrameBuffer
 
JUtility::TColor mCharColor
 
u16 mCharColor_Y
 
u16 mCharColor_Cb
 
u16 mCharColor_Cb2
 
u16 mCharColor_Cb4
 
u16 mCharColor_Cr
 
u16 mCharColor_Cr2
 
u16 mCharColor_Cr4
 
u16 field_0x2A
 

Static Private Attributes

static u8 sAsciiTable [128]
 
static u32 sFontData [64]
 
static u32 sFontData2 [77]
 
static JUTDirectPrintsDirectPrint
 
static u8 sDirectPrint_padding [4]
 

Constructor & Destructor Documentation

◆ JUTDirectPrint()

JUTDirectPrint::JUTDirectPrint ( )
private

Member Function Documentation

◆ changeFrameBuffer() [1/2]

void JUTDirectPrint::changeFrameBuffer ( void frameBuffer,
u16  width,
u16  height 
)

◆ changeFrameBuffer() [2/2]

void JUTDirectPrint::changeFrameBuffer ( void param_0)
inline

◆ drawChar()

void JUTDirectPrint::drawChar ( int  position_x,
int  position_y,
int  ch 
)

◆ drawString()

void JUTDirectPrint::drawString ( u16  position_x,
u16  position_y,
char text 
)

◆ drawString_f()

void JUTDirectPrint::drawString_f ( u16  position_x,
u16  position_y,
char const format,
  ... 
)

◆ erase()

void JUTDirectPrint::erase ( int  x,
int  y,
int  width,
int  height 
)

◆ getCharColor()

JUtility::TColor JUTDirectPrint::getCharColor ( ) const
inline

◆ getFrameBuffer()

void * JUTDirectPrint::getFrameBuffer ( )
inline

◆ getManager()

static JUTDirectPrint * JUTDirectPrint::getManager ( )
inlinestatic

◆ isActive()

bool JUTDirectPrint::isActive ( ) const
inline

◆ print()

void JUTDirectPrint::print ( u16  position_x,
u16  position_y,
char const format,
  ... 
)

◆ printSub()

void JUTDirectPrint::printSub ( u16  position_x,
u16  position_y,
char const format,
va_list  args,
bool  clear 
)

◆ setCharColor() [1/2]

void JUTDirectPrint::setCharColor ( JUtility::TColor  color)

◆ setCharColor() [2/2]

void JUTDirectPrint::setCharColor ( u8  r,
u8  g,
u8  b 
)

◆ start()

JUTDirectPrint * JUTDirectPrint::start ( )
static

Member Data Documentation

◆ field_0x00

void* JUTDirectPrint::field_0x00
private

◆ field_0x0A

u16 JUTDirectPrint::field_0x0A
private

◆ field_0x10

u8 JUTDirectPrint::field_0x10[4]
private

◆ field_0x2A

u16 JUTDirectPrint::field_0x2A
private

◆ mCharColor

JUtility::TColor JUTDirectPrint::mCharColor
private

◆ mCharColor_Cb

u16 JUTDirectPrint::mCharColor_Cb
private

◆ mCharColor_Cb2

u16 JUTDirectPrint::mCharColor_Cb2
private

◆ mCharColor_Cb4

u16 JUTDirectPrint::mCharColor_Cb4
private

◆ mCharColor_Cr

u16 JUTDirectPrint::mCharColor_Cr
private

◆ mCharColor_Cr2

u16 JUTDirectPrint::mCharColor_Cr2
private

◆ mCharColor_Cr4

u16 JUTDirectPrint::mCharColor_Cr4
private

◆ mCharColor_Y

u16 JUTDirectPrint::mCharColor_Y
private

◆ mFrameBuffer

u16* JUTDirectPrint::mFrameBuffer
private

◆ mFrameBufferHeight

u16 JUTDirectPrint::mFrameBufferHeight
private

◆ mFrameBufferSize

size_t JUTDirectPrint::mFrameBufferSize
private

◆ mFrameBufferWidth

u16 JUTDirectPrint::mFrameBufferWidth
private

◆ mStride

u16 JUTDirectPrint::mStride
private

◆ sAsciiTable

u8 JUTDirectPrint::sAsciiTable
staticprivate
Initial value:
= {
0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A, 0xFD, 0xFE, 0x7A, 0x7A, 0x7A, 0x7A, 0x7A,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0x29, 0x64, 0x65, 0x66, 0x2B, 0x67, 0x68, 0x25, 0x26, 0x69, 0x2A, 0x6A, 0x27, 0x2C, 0x6B,
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x24, 0x6C, 0x6D, 0x6E, 0x6F, 0x28,
0x70, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x71, 0x72, 0x73, 0x74, 0x75,
0xFF, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B,
0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x76, 0x77, 0x78, 0x79, 0x7A,
}

◆ sDirectPrint

JUTDirectPrint * JUTDirectPrint::sDirectPrint
staticprivate

◆ sDirectPrint_padding

u8 JUTDirectPrint::sDirectPrint_padding[4]
staticprivate

◆ sFontData

u32 JUTDirectPrint::sFontData
staticprivate
Initial value:
= {
0x70871C30, 0x8988A250, 0x88808290, 0x88830C90, 0x888402F8, 0x88882210, 0x71CF9C10, 0xF9CF9C70,
0x8208A288, 0xF200A288, 0x0BC11C78, 0x0A222208, 0x8A222208, 0x71C21C70, 0x23C738F8, 0x5228A480,
0x8A282280, 0x8BC822F0, 0xFA282280, 0x8A28A480, 0x8BC738F8, 0xF9C89C08, 0x82288808, 0x82088808,
0xF2EF8808, 0x82288888, 0x82288888, 0x81C89C70, 0x8A08A270, 0x920DA288, 0xA20AB288, 0xC20AAA88,
0xA208A688, 0x9208A288, 0x8BE8A270, 0xF1CF1CF8, 0x8A28A220, 0x8A28A020, 0xF22F1C20, 0x82AA0220,
0x82492220, 0x81A89C20, 0x8A28A288, 0x8A28A288, 0x8A289488, 0x8A2A8850, 0x894A9420, 0x894AA220,
0x70852220, 0xF8011000, 0x08020800, 0x10840400, 0x20040470, 0x40840400, 0x80020800, 0xF8011000,
0x70800000, 0x88822200, 0x08820400, 0x108F8800, 0x20821000, 0x00022200, 0x20800020, 0x00000000,
}

◆ sFontData2

u32 JUTDirectPrint::sFontData2
staticprivate
Initial value:
= {
0x51421820, 0x53E7A420, 0x014A2C40, 0x01471000, 0x0142AA00, 0x03EAA400, 0x01471A78, 0x00000000,
0x50008010, 0x20010820, 0xF8020040, 0x20420820, 0x50441010, 0x00880000, 0x00070E00, 0x01088840,
0x78898820, 0x004A8810, 0x788A8810, 0x01098808, 0x00040E04, 0x70800620, 0x11400820, 0x12200820,
0x10001020, 0x10000820, 0x100F8820, 0x70000620, 0x60070000, 0x110F82A0, 0x12AA8AE0, 0x084F92A0,
0x100FBE1C, 0x10089008, 0x60070808, 0x00000000, 0x02000200, 0x7A078270, 0x8BC81E88, 0x8A2822F8,
0x9A282280, 0x6BC79E78, 0x30000000, 0x48080810, 0x41E80000, 0x422F1830, 0xFBE88810, 0x40288890,
0x43C89C60, 0x81000000, 0x81000000, 0x990F3C70, 0xA10AA288, 0xE10AA288, 0xA10AA288, 0x98CAA270,
0x00000000, 0x00000020, 0xF1EF1E20, 0x8A28A0F8, 0x8A281C20, 0xF1E80220, 0x80283C38, 0x00000000,
0x00000000, 0x8A28B688, 0x8A2A8888, 0x8A2A8878, 0x894A8808, 0x788536F0, 0x00000000, 0x00000000,
0xF8000000, 0x10000000, 0x20000000, 0x40000000, 0xF8000000,
}

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