summaryrefslogtreecommitdiff
path: root/src/include/data_ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/data_ui.h')
-rw-r--r--src/include/data_ui.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/data_ui.h b/src/include/data_ui.h
index b8e83f8..8f96d48 100644
--- a/src/include/data_ui.h
+++ b/src/include/data_ui.h
@@ -16,22 +16,24 @@ typedef struct {
void (*onmousebuttonevent_proc)(Uint8 button, Uint8 state, void *userptr);
} renderItem_t;
+enum gameRLIdx {RLI_terrain=0, RLI_lem0, RLI_cursor=MAX_RENDERLIST_SIZE-1};
+
typedef struct {
/* Render list of all in-game sprites (for batch processing)
Items are in paint order
created by buildRenderList() */
- int renderListSize;
renderItem_t renderList[MAX_RENDERLIST_SIZE];
+ /* Various */
+
/* Current camera position */
int cameraX;
- /* streamTerrain : viewable portion of terrain, in texture format
- updated by renderTerraiToTexture() */
+ /* Viewable portion of terrain, see renderTerrainToTextures() */
sprite_t terrainSprite;
- int remainingTime;
- int numLemmOut;
+ /* Computed or accumalted values from gameState_t infos */
+ int remainingTime, numLemmOut;
} gameUI_t;