From 672180b2ee3ed9b9ff984538a85e6eaf2e1c91bc Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 14 Oct 2017 16:16:34 +0200 Subject: Move assets to assets.cpp. --- src/common.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/common.hpp') 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 T divide_rmi(T x, T y, T *rem) -- cgit