Skip to navigation


Graphics buffers: graphicsBuffersEnd

Name: graphicsBuffersEnd [Show more] Type: Variable Category: Graphics buffers Summary: The end addresses of each of the graphics buffers (these values get updated as objects are drawn into the buffers) 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 graphicsBuffersEnd * graphicsBufferEndAddr uses graphicsBuffersEnd
.graphicsBuffersEnd \ 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%