summaryrefslogtreecommitdiff
path: root/src/gameui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameui.c')
-rw-r--r--src/gameui.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/src/gameui.c b/src/gameui.c
index 1800af7..24eb9e0 100644
--- a/src/gameui.c
+++ b/src/gameui.c
@@ -1,16 +1,23 @@
#include "gameui.h"
-int setInitialState(gameIni_t *gIni, gameState_t *gState) {
- gState->cameraX = gIni->level.xPos;
- //FIXME : all lemmings states, skill counters...
- return 0;
-}
+#define SET_RENDER_ITEM(item,sp,px,py,f,abs,curid,mouseevt) \
+do { \
+ item.sprite = sp; \
+ item.x = px; item.y = py; \
+ item.currframe = f; \
+ item.absolute = abs; \
+ item.onhovercursorid = curid; \
+ item.onmousebuttonevent_proc = mouseevt; \
+} while(0)
+
+int buildGameRenderList(gameRess_t *gRess, gameUI_t *gUI) {
+ int cur=0;
-int buildRenderList(gameIni_t *gIni, gameRess_t *gRess, gameState_t *gState) {
- return -1; //FIXME : Not yet implemented
-}
+ SET_RENDER_ITEM(gUI->renderList[cur++],&gUI->terrainSprite,0,0,0,0,0,NULL);
-void disposeRenderList(gameState_t *gState) {
+ SET_RENDER_ITEM(gUI->renderList[cur++],&gRess->cursor,0,0,0,0,0,NULL);
+ return 0;
}
+