33 void EnableLinearFilter(
bool atSmall,
bool atLarge);
37 mColorMapping.min = min;
38 mColorMapping.max = max;
41 void ResetColorMapping() {
42 SetColorMapping(DEFAULT_COLOR_MAPPING_MIN, DEFAULT_COLOR_MAPPING_MAX);
45 void SetTextColor(
Color start) {
46 mTextColor.start = start;
51 mTextColor.start = start;
56 void SetGradationMode(GradationMode mode) {
57 mTextColor.gradationMode = mode;
61 f32 GetScaleH()
const {
64 f32 GetScaleV()
const {
68 void SetScale(f32 x, f32 y) {
73 f32 GetCursorX()
const {
76 void SetCursorX(f32 x) {
80 f32 GetCursorY()
const {
83 void SetCursorY(f32 y) {
87 void SetCursor(f32 x, f32 y) {
91 void SetCursor(f32 x, f32 y, f32 z) {
97 void MoveCursorX(f32 dx) {
100 void MoveCursorY(f32 dy) {
104 void EnableFixedWidth(
bool enable) {
105 mIsWidthFixed = enable;
107 bool IsWidthFixed()
const {
108 return mIsWidthFixed;
111 void SetFixedWidth(f32 width) {
114 f32 GetFixedWidth()
const {
118 void SetFont(
const Font& rFont) {
121 const Font* GetFont()
const {
125 void SetFontSize(f32 width, f32 height);
127 f32 GetFontWidth()
const;
128 f32 GetFontHeight()
const;
129 f32 GetFontAscent()
const;
130 f32 GetFontDescent()
const;
148 GradationMode gradationMode;
156 return atSmall != rOther.atSmall || atLarge != rOther.atLarge;
166 return slot != rOther.slot || texture != rOther.texture ||
167 filter != rOther.filter;
171 slot = GX_TEXMAP_NULL;
176 static const ulong DEFAULT_COLOR_MAPPING_MIN = 0x00000000;
177 static const ulong DEFAULT_COLOR_MAPPING_MAX = 0xFFFFFFFF;
180 static void SetupVertexFormat();
181 static void SetupGXDefault();
182 static void SetupGXWithColorMapping(
Color min,
Color max);
183 static void SetupGXForI();
184 static void SetupGXForRGBA();
186 void UpdateVertexColor();
187 void PrintGlyph(f32 x, f32 y, f32 z,
const Glyph& rGlyph);
189 void LoadTexture(
const Glyph& rGlyph, GXTexMapID slot);
190 void ResetTextureCache() {
191 mLoadingTexture.Reset();
195 ColorMapping mColorMapping;
196 VertexColor mVertexColor;
197 TextColor mTextColor;
200 TextureFilter mFilter;
201 u8 PADDING_0x40[0x42 - 0x40];
207 static LoadingTexture mLoadingTexture;