diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2023-08-15 18:21:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-15 12:21:19 -0400 |
| commit | ccae1f73879e25c1a771542272e6d18442478106 (patch) | |
| tree | ff98598cc57a7dfe44a7d824d65ac5c0ee3165e3 /include/prerender.h | |
| parent | b8aa2a251e38c4ca31d2e0ab5042a8ea84fd4be5 (diff) | |
Split z64.h: move various things, state, sram, gfx, jpeg, prerender, speedmeter (#1487)
* Split z64.h more
* fix speedmeter.h (expect this kind of issue resolution to pop up eventually)
* fix z64object.h
* fix z64state.h
* fix (probably only partially) z64play.h
* fix fix speedmeter.h :)
* revert making a play header (sadge), add/split transition & transition_instances
* move stuff to cutscene, interface
* Move `TransitionCircle%` enums to `z64transition_instances.h`
* z64state.h -> z64game.h with a "this is not final" comment
* forward declare GraphicsContext in z64game.h instead of including the header file for it
* don't comment on where the forward declarations are from
reasoning:
1) it's easy to go out of sync (like this comment, it was outdated anyway)
2) any IDE can easily find the struct anyway
Diffstat (limited to 'include/prerender.h')
| -rw-r--r-- | include/prerender.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/prerender.h b/include/prerender.h new file mode 100644 index 000000000..12f17f7ed --- /dev/null +++ b/include/prerender.h @@ -0,0 +1,33 @@ +#ifndef PRERENDER_H +#define PRERENDER_H + +#include "ultra64/ultratypes.h" + +typedef struct ListAlloc { + /* 0x00 */ struct ListAlloc* prev; + /* 0x04 */ struct ListAlloc* next; +} ListAlloc; // size = 0x8 + +typedef struct { + /* 0x00 */ s32 width; + /* 0x04 */ s32 height; + /* 0x08 */ s32 widthSave; + /* 0x0C */ s32 heightSave; + /* 0x10 */ u16* fbuf; + /* 0x14 */ u16* fbufSave; + /* 0x18 */ u8* cvgSave; + /* 0x1C */ u16* zbuf; + /* 0x20 */ u16* zbufSave; + /* 0x24 */ s32 ulxSave; + /* 0x28 */ s32 ulySave; + /* 0x2C */ s32 lrxSave; + /* 0x30 */ s32 lrySave; + /* 0x34 */ s32 ulx; + /* 0x38 */ s32 uly; + /* 0x3C */ s32 lrx; + /* 0x40 */ s32 lry; + /* 0x44 */ ListAlloc alloc; + /* 0x4C */ u32 unk_4C; +} PreRender; // size = 0x50 + +#endif |
