Mario Kart 64
Loading...
Searching...
No Matches
buffers.c File Reference
#include <ultra64.h>
#include <macros.h>
#include <mk64.h>
#include "buffers.h"
Include dependency graph for buffers.c:

Variables

ALIGNED8 union_D_802BFB80 D_802BFB80
 look like to be a buffer of decoded textures
 
ALIGNED8 struct_D_802DFB80 gEncodedKartTexture [2][2][8]
 
ALIGNED8 u16 gPlayerPalettesList [2][4][0x100 *8]
 
ALIGNED8 u16 gZBuffer [SCREEN_WIDTH *SCREEN_HEIGHT]
 
u16 gFramebuffer0 [SCREEN_WIDTH *SCREEN_HEIGHT]
 
u16 gFramebuffer1 [SCREEN_WIDTH *SCREEN_HEIGHT]
 
u16 gFramebuffer2 [SCREEN_WIDTH *SCREEN_HEIGHT]
 

Variable Documentation

◆ D_802BFB80

look like to be a buffer of decoded textures

◆ gEncodedKartTexture

ALIGNED8 struct_D_802DFB80 gEncodedKartTexture[2][2][8]

◆ gFramebuffer0

u16 gFramebuffer0[SCREEN_WIDTH *SCREEN_HEIGHT]

◆ gFramebuffer1

u16 gFramebuffer1[SCREEN_WIDTH *SCREEN_HEIGHT]

◆ gFramebuffer2

u16 gFramebuffer2[SCREEN_WIDTH *SCREEN_HEIGHT]

◆ gPlayerPalettesList

ALIGNED8 u16 gPlayerPalettesList[2][4][0x100 *8]

It would be nice to define gPlayerPalettesList as "struct_D_802F1F80 gPlayerPalettesList[2][4][8]". But due to register allocation issues in load_kart_palette / update_wheel_palette we have to define it in a different manner to match those functions. If AVOID_UB is defined, the struct is properly defined with their correct pointers.

◆ gZBuffer