Skip to navigation


Graphics buffers: graphicsBuffers

Name: graphicsBuffers [Show more] Type: Variable Category: Graphics buffers Summary: The addresses of each of the graphics buffers (these values do not change) Deep dive: Depth-sorting with the graphics buffers
Context: See this variable in context in the source code References: This variable is used as follows: * graphicsBuffEndAddr2 uses graphicsBuffers * graphicsBufferAddr uses graphicsBuffers
.graphicsBuffers \ We need a graphics buffer for each tile \ corner row, numbered 0 to 10 (and the game \ also includes an extra buffer that is \ unused) ] buffer = workspace + buffers \ The graphics buffers live at the address \ given in the buffersAddr variable FOR I% = 1 TO TILES_Z + 1 \ Add a buffer for each corner row (plus 1) [ OPT pass% EQUD buffer \ Insert the address of the buffer ] buffer = buffer + BUFFER_SIZE \ Move on to the next buffer NEXT \ Repeat until we have inserted addresses of \ all the graphics buffers [ OPT pass%