summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-10-14 16:16:34 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-10-14 16:16:34 +0200
commit672180b2ee3ed9b9ff984538a85e6eaf2e1c91bc (patch)
tree9dc40562890b7dff088afc46fb4e2af0ea3552d8 /src/common.hpp
parente4ca910e7731e2a12815a4a8de2582157f519898 (diff)
Move assets to assets.cpp.
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/common.hpp b/src/common.hpp
index 4645bea..f458190 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -116,7 +116,6 @@ namespace game {
void start(void);
void tick(void);
- void render(render::state_t *render);
};
}
@@ -190,6 +189,17 @@ namespace render {
};
}
+namespace assets {
+ typedef struct {
+ render::oriented_sprite_4M_t head_idle, body_idle;
+ render::oriented_sprite_4M2_t legs_idle, legs_walking;
+ } human_assets_t;
+
+ extern human_assets_t human;
+
+ void load(void);
+};
+
// Divide and round to minus infinity.
template <typename T>
T divide_rmi(T x, T y, T *rem)