mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-29 06:33:06 +00:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <gfx/seadColor.h>
|
|
#include <math/seadBoundBox.h>
|
|
|
|
namespace sead
|
|
{
|
|
class Viewport;
|
|
class Camera;
|
|
class Projection;
|
|
class DrawContext;
|
|
class TextWriter
|
|
{
|
|
public:
|
|
virtual ~TextWriter();
|
|
TextWriter(sead::DrawContext *);
|
|
TextWriter(sead::DrawContext *, sead::Viewport const *);
|
|
|
|
void printImpl_(char const*, int, bool, sead::BoundBox2<float>*);
|
|
void printf(char const*, ...);
|
|
void printf(char16_t const*, ...);
|
|
void setScaleFromFontHeight(float);
|
|
void setCursorFromTopLeft(sead::Vector2<f32> const &);
|
|
void beginDraw();
|
|
void endDraw();
|
|
|
|
sead::DebugFontMgrNvn *getDefaultFont();
|
|
static void setDefaultFont(sead::FontBase *);
|
|
static void setupGraphics(sead::DrawContext*);
|
|
sead::Viewport *mViewport;
|
|
sead::Projection *mProjection;
|
|
sead::Camera *mCamera;
|
|
int TextWriter_x20;
|
|
int TextWriter_x24;
|
|
int TextWriter_x28;
|
|
int TextWriter_x2C;
|
|
sead::Vector2<float> mScale;
|
|
sead::Color4f mColor;
|
|
int TextWriter_x48;
|
|
float mLineSpace;
|
|
sead::BoundBox2<float> *mBoundBox2;
|
|
int TextWriter_x58;
|
|
int TextWriter_x5C;
|
|
char16_t *mFormatBuffer;
|
|
int mFormatBufferSize;
|
|
int TextWriter_x6C;
|
|
sead::DrawContext *mDrawContext;
|
|
};
|
|
} // namespace sead
|