diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2024-04-06 10:23:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-06 10:23:06 -0700 |
| commit | e3ce14c932b80e5ed4c7680cb9dd9f638d739541 (patch) | |
| tree | 0bca0376b6b8000c83bcaa6b50da17927bcec84c /src/code/graphalloc.c | |
| parent | 47d43f2fa1b0a35b02a1186fb94e5bd227c92219 (diff) | |
Misc Clean (#1602)
* thiefbird
* eff_ss_dead
* PreRender_AntiAliasFilterPixel tmp -> invCvg
* Skin_InitAnimatedLimb
* gfxalloc
* loadfragment
* loadfragment strings
Diffstat (limited to 'src/code/graphalloc.c')
| -rw-r--r-- | src/code/graphalloc.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/code/graphalloc.c b/src/code/graphalloc.c deleted file mode 100644 index cbae8ebe4..000000000 --- a/src/code/graphalloc.c +++ /dev/null @@ -1,29 +0,0 @@ -#include "global.h" - -Gfx* Graph_GfxPlusOne(Gfx* gfx) { - return &gfx[1]; -} - -Gfx* Graph_BranchDlist(Gfx* gfx, Gfx* dst) { - gSPBranchList(gfx, dst); - return dst; -} - -/** - * Allocates a structure of `size` into the display list buffer`gfx`, - * returning a pointer to the start of the buffer. - * Since the alloc may not itself be display list commands, a BranchList - * command is used to step over this region. - */ -void* Graph_DlistAlloc(Gfx** gfx, size_t size) { - u8* start; - Gfx* end; - - size = ALIGN8(size); - start = (u8*)&(*gfx)[1]; - end = (Gfx*)(start + size); - gSPBranchList(*gfx, end); - - *gfx = end; - return start; -} |
