fork/training-mode-ce

git clone https://git.julia.blue/fork/training-mode-ce

AitchAdd warnings and fix them (#297)4f5d26e

master
2.2 KiB65 linesraw
1#ifndef MEX_H_DEVTEXT
2#define MEX_H_DEVTEXT
3
4#include "structs.h"
5#include "gx.h"
6
7/*** Structs ***/
8
9struct DevText
10{
11    int x0;                   // 0x0
12    u8 width;                 // 0x4
13    u8 height;                // 0x5
14    u8 cursor_x;              // 0x6
15    u8 cursor_y;              // 0x7
16    Vec2 scale;               // 0x8
17    GXColor bg_color;         // 0x10
18    int x14;                  // 0x14
19    int x18;                  // 0x18
20    int x1c;                  // 0x1c
21    int x20;                  // 0x20
22    char x24;                 // 0x24
23    char x25;                 // 0x25
24    char show_text : 1;       // 0x26
25    char show_background : 1; // 0x26
26    char x26_20 : 1;          // 0x26
27    char show_cursor : 1;     // 0x26
28    char x27;                 // 0x27
29    u8 *text_data;            // 0x28
30    int x2c;                  // 0x2c
31    DevText *next;            // 0x30
32    int x34;                  // 0x34
33    int x38;                  // 0x38
34    int x3c;                  // 0x3c
35    int x40;                  // 0x40
36    int x44;                  // 0x44
37    int x48;                  // 0x48
38    int x4c;                  // 0x4c
39    int x50;                  // 0x50
40    int x54;                  // 0x54
41    int x58;                  // 0x58
42    int x5c;                  // 0x5c
43};
44
45/*** Functions ***/
46
47DevText *DevelopText_CreateDataTable(int unk1, int x, int y, int width, int height, void *alloc);
48void DevelopText_Activate(void *unk, DevText *text);
49void DevelopText_Deactivate(void *unk);
50void DevelopText_AddString(DevText *text, ...);
51void DevelopText_EraseAllText(DevText *text);
52void DevelopText_ResetCursorXY(DevText *text, int x, int y);
53void DevelopText_StoreTextColor(DevText *text, GXColor *RGBA);
54void DevelopText_StoreBGColor(DevText *text, GXColor *RGBA);
55void DevelopText_ShowText(DevText *text);
56void DevelopText_HideText(DevText *text);
57void DevelopText_ShowBG(DevText *text);
58void DevelopText_HideBG(DevText *text);
59void DevelopText_StoreTextScale(DevText *text, float x, float y);
60void Develop_DrawSphere(float size, Vec3 *pos1, Vec3 *pos2, GXColor *diffuse, GXColor *ambient);
61void Develop_UpdateMatchHotkeys();
62
63static int *stc_dblevel = R13_OFFSET(-0x6C98);
64
65#endif