fork/training-mode-ce

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

AitchMerge pull request #95 from NickCondron/mex-updatea913daa

master
2.2 KiB62 linesraw
1#ifndef MEX_H_COLOR
2#define MEX_H_COLOR
3
4#include "gx.h"
5#include "structs.h"
6#include "datatypes.h"
7
8/*** Structs ***/
9
10struct ColAnimDesc // in PlCo
11{
12    u8 *cmd_data; // 0x0
13    u8 priority;  // 0x4
14    u8 x5;        // 0x5, forget what this does
15};
16struct ColorOverlay
17{
18    int timer;                      // 0x0
19    int pri;                        // 0x4  this colanims priority, lower = will persist
20    void *ptr1;                     // 0x8
21    int loop;                       // 0xc
22    void *ptr2;                     // 0x10
23    int x14;                        // 0x14
24    void *alloc;                    // 0x18
25    int x1c;                        // 0x1c
26    int x20;                        // 0x20
27    int x24;                        // 0x24
28    int colanim;                    // 0x28, id for the color animation in effect
29    GXColor hex;                    // 0x2C
30    float color_red;                // 0x30
31    float color_green;              // 0x34
32    float color_blue;               // 0x38
33    float color_alpha;              // 0x3C
34    float colorblend_red;           // 0x40
35    float colorblend_green;         // 0x44
36    float colorblend_blue;          // 0x48
37    float colorblend_alpha;         // 0x4C
38    GXColor light_color;            // 0x50
39    float light_red;                // 0x54
40    float light_green;              // 0x58
41    float light_blue;               // 0x5C
42    float light_alpha;              // 0x60
43    float lightblend_red;           // 0x64
44    float lightblend_green;         // 0x68
45    float lightblend_blue;          // 0x6c
46    float lightblend_alpha;         // 0x70
47    float light_angle;              // 0x74
48    float light_unk;                // 0x78
49    unsigned char color_enable : 1; // 0x7c, 0x80
50    unsigned char flag2 : 1;        // 0x7c, 0x40
51    unsigned char light_enable : 1; // 0x7c, 0x20
52    unsigned char flag4 : 1;        // 0x7c, 0x10
53    unsigned char flag5 : 1;        // 0x7c, 0x08
54    unsigned char flag6 : 1;        // 0x7c, 0x04
55    unsigned char flag7 : 1;        // 0x7c, 0x02
56    unsigned char flag8 : 1;        // 0x7c, 0x01
57};
58
59void ColAnim_Apply(ColorOverlay *col, void *colanim_data, int colanim_index, int r6);
60void ColAnim_Disable(ColorOverlay *col);
61
62#endif