mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-27 22:59:11 -04:00
Split game_166e40.c into gfxmemory.c and rename related symbols
This commit is contained in:
@@ -289,7 +289,7 @@ extern s32 var80082050;
|
||||
extern void *filetable[];
|
||||
extern u32 g_GfxSizesByPlayerCount[];
|
||||
extern u32 g_VtxSizesByPlayerCount[];
|
||||
extern u32 var80084008;
|
||||
extern u32 g_GfxNumSwaps;
|
||||
extern u32 var80084010;
|
||||
extern bool var80084014;
|
||||
extern f32 var80084018;
|
||||
|
||||
@@ -18,13 +18,5 @@ u32 fileGetUnk04(s32 filenum);
|
||||
u32 func0f1672a8(void);
|
||||
void func0f1672f0(u8 arg0);
|
||||
void func0f167330(void);
|
||||
void func0f167350(void);
|
||||
Gfx *gfxGetMasterDisplayList(void);
|
||||
struct gfxvtx *gfxAllocateVertices(s32 count);
|
||||
void *gfxAllocateMatrix(void);
|
||||
void *gfxAllocate4Words(s32 count);
|
||||
u32 *gfxAllocateColours(s32 count);
|
||||
void *gfxAllocate(u32 size);
|
||||
void func0f167a18(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef _IN_GAME_GFXMEMORY_H
|
||||
#define _IN_GAME_GFXMEMORY_H
|
||||
#include <ultra64.h>
|
||||
#include "types.h"
|
||||
|
||||
void gfxInitMemory(void);
|
||||
Gfx *gfxGetMasterDisplayList(void);
|
||||
struct gfxvtx *gfxAllocateVertices(s32 count);
|
||||
void *gfxAllocateMatrix(void);
|
||||
void *gfxAllocate4Words(s32 count);
|
||||
u32 *gfxAllocateColours(s32 count);
|
||||
void *gfxAllocate(u32 size);
|
||||
void gfxSwapBuffers(void);
|
||||
|
||||
#endif
|
||||
@@ -759,8 +759,8 @@ extern struct fileinfo g_FileInfo[NUM_FILES];
|
||||
extern u8 *g_GfxBuffers[3];
|
||||
extern u8 *g_VtxBuffers[3];
|
||||
extern u8 *g_GfxMemPos;
|
||||
extern u8 var800aa5a0;
|
||||
extern u32 var800aa5a4;
|
||||
extern u8 g_GfxActiveBufferIndex;
|
||||
extern u32 g_GfxRequestedDisplayList;
|
||||
extern struct audiohandle *g_BoostAndSlayerAudioHandles[3];
|
||||
extern s32 g_BoostAndSlayerActiveTypes[3];
|
||||
extern u32 var800aa5cc;
|
||||
|
||||
+2
-2
@@ -2611,7 +2611,7 @@ struct player {
|
||||
/*0x1738*/ void *unk1738;
|
||||
/*0x173c*/ Mtx *unk173c;
|
||||
/*0x1740*/ Mtxf *matrix1740;
|
||||
/*0x1744*/ u32 unk1744;
|
||||
/*0x1744*/ u32 c_viewfmdynticknum;
|
||||
/*0x1748*/ u32 unk1748;
|
||||
/*0x174c*/ Mtxf *unk174c;
|
||||
/*0x1750*/ void *unk1750;
|
||||
@@ -2619,7 +2619,7 @@ struct player {
|
||||
/*0x1758*/ Mtx *unk1758;
|
||||
/*0x175c*/ void *unk175c;
|
||||
/*0x1760*/ Mtxf *prev1740;
|
||||
/*0x1764*/ u32 unk1764;
|
||||
/*0x1764*/ u32 c_prevviewfmdynticknum;
|
||||
/*0x1768*/ Mtxf *unk1768;
|
||||
/*0x176c*/ f32 c_scalelod60;
|
||||
/*0x1770*/ f32 c_scalelod;
|
||||
|
||||
Reference in New Issue
Block a user