mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-01 15:26:01 +00:00
4876610c75
* Darkmeiro decompilation Bg_Gnd_Darkmeiro decompiled, matched, and documented. * give this a shot * fix conflict * one more try * could be useful * whoops * ZAP2 stuff * ZAP why * ZAP again * spooky scary skeletons * there's a skeleton inside of you * formatting * types * a matched function even * undo change * lol anime * ok how did I forget the .s * array fix * would you like to ride the bone train? * stuff * more renames * renames and cleanup * names suck * idea * using void** for now * stuff * look more type fixes Co-authored-by: fig <fig02srl@gmail.com>
64 lines
1.4 KiB
C
64 lines
1.4 KiB
C
#ifndef _Z64LIGHT_H_
|
|
#define _Z64LIGHT_H_
|
|
|
|
#include "ultra64.h"
|
|
#include "ultra64/gbi.h"
|
|
#include "z64math.h"
|
|
#include "color.h"
|
|
|
|
typedef struct {
|
|
/* 0x0 */ s16 x;
|
|
/* 0x2 */ s16 y;
|
|
/* 0x4 */ s16 z;
|
|
/* 0x6 */ u8 color[3];
|
|
/* 0x9 */ u8 drawGlow;
|
|
/* 0xA */ s16 radius;
|
|
} LightPoint; // size = 0xC
|
|
|
|
typedef struct {
|
|
/* 0x0 */ s8 x;
|
|
/* 0x1 */ s8 y;
|
|
/* 0x2 */ s8 z;
|
|
/* 0x3 */ u8 color[3];
|
|
} LightDirectional; // size = 0x6
|
|
|
|
typedef union {
|
|
LightPoint point;
|
|
LightDirectional dir;
|
|
} LightParams; // size = 0xC
|
|
|
|
typedef struct {
|
|
/* 0x0 */ u8 type;
|
|
/* 0x2 */ LightParams params;
|
|
} LightInfo; // size = 0xE
|
|
|
|
typedef struct Lights {
|
|
/* 0x00 */ u8 numLights;
|
|
/* 0x08 */ Lightsn l;
|
|
} Lights; // size = 0x80
|
|
|
|
typedef struct LightNode {
|
|
/* 0x0 */ LightInfo* info;
|
|
/* 0x4 */ struct LightNode* prev;
|
|
/* 0x8 */ struct LightNode* next;
|
|
} LightNode; // size = 0xC
|
|
|
|
typedef struct {
|
|
/* 0x0 */ LightNode* listHead;
|
|
/* 0x4 */ Color_RGB8 ambient;
|
|
/* 0x7 */ u8 unk_07;
|
|
/* 0x8 */ u8 unk_08;
|
|
/* 0x9 */ u8 unk_09;
|
|
/* 0xA */ s16 unk_0A;
|
|
/* 0xC */ s16 unk_0C;
|
|
} LightContext; // size = 0x10
|
|
|
|
typedef enum {
|
|
/* 0x00 */ LIGHT_POINT_NOGLOW,
|
|
/* 0x01 */ LIGHT_DIRECTIONAL,
|
|
/* 0x02 */ LIGHT_POINT_GLOW
|
|
} LightType;
|
|
|
|
typedef void (*LightsBindFunc)(Lights* lights, LightParams* params, Vec3f* vec);
|
|
|
|
#endif
|