fork/training-mode-ce
git clone https://git.julia.blue/fork/training-mode-ce
a913daa
master
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{ 12u8 * cmd_data ;// 0x0 13u8 priority ;// 0x4 14u8 x5 ;// 0x5, forget what this does 15}; 16struct ColorOverlay 17{ 18int timer ;// 0x0 19int pri ;// 0x4 this colanims priority, lower = will persist 20void * ptr1 ;// 0x8 21int loop ;// 0xc 22void * ptr2 ;// 0x10 23int x14 ;// 0x14 24void * alloc ;// 0x18 25int x1c ;// 0x1c 26int x20 ;// 0x20 27int x24 ;// 0x24 28int colanim ;// 0x28, id for the color animation in effect 29GXColor hex ;// 0x2C 30float color_red ;// 0x30 31float color_green ;// 0x34 32float color_blue ;// 0x38 33float color_alpha ;// 0x3C 34float colorblend_red ;// 0x40 35float colorblend_green ;// 0x44 36float colorblend_blue ;// 0x48 37float colorblend_alpha ;// 0x4C 38GXColor light_color ;// 0x50 39float light_red ;// 0x54 40float light_green ;// 0x58 41float light_blue ;// 0x5C 42float light_alpha ;// 0x60 43float lightblend_red ;// 0x64 44float lightblend_green ;// 0x68 45float lightblend_blue ;// 0x6c 46float lightblend_alpha ;// 0x70 47float light_angle ;// 0x74 48float light_unk ;// 0x78 49unsigned char color_enable :1 ;// 0x7c, 0x80 50unsigned char flag2 :1 ;// 0x7c, 0x40 51unsigned char light_enable :1 ;// 0x7c, 0x20 52unsigned char flag4 :1 ;// 0x7c, 0x10 53unsigned char flag5 :1 ;// 0x7c, 0x08 54unsigned char flag6 :1 ;// 0x7c, 0x04 55unsigned char flag7 :1 ;// 0x7c, 0x02 56unsigned 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