summaryrefslogtreecommitdiff
path: root/src/include/data_localgame.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/data_localgame.h')
-rw-r--r--src/include/data_localgame.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/include/data_localgame.h b/src/include/data_localgame.h
index 9153d6e..01f5008 100644
--- a/src/include/data_localgame.h
+++ b/src/include/data_localgame.h
@@ -5,15 +5,27 @@
typedef struct {
SDL_Rect screen;
-
} gameConfig_t;
typedef struct {
- SDL_Surface *screen, *terrain, *stencil;
- SDL_Rect viewport; // Viewport top-left corner coords in screen
- int dirtRectsCount; // Dirt rectangle to refresh for current tick
- SDL_Rect *dirtRects;
+ int zOrder, surfId, animFrames, currentAnimFrame;
+ SDL_Rect *objectsBBox;
+} gameGraphObjState_t;
+
+typedef struct {
+ SDL_Surface *screen, *terrain, *stencil, **objectsSurf;
+ gameGraphObjState_t *objectsStat;
+} gameGraphSurfaces_t;
+
+typedef struct {
+ SDL_Surface *screen;
+ SDL_Rect viewport; // Viewport top-left corner coords in screen
+
+ gameGraphSurfaces_t surfaces;
+
+ int dirtRectsCount;
+ SDL_Rect *dirtRects; // Dirt rectangles to refresh for current tick
} gameGraphics_t;
typedef struct {