diff options
Diffstat (limited to '3de.c')
-rw-r--r-- | 3de.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -73,6 +73,14 @@ void draw_map(Renderer* r, const Player* p, const Map* m) { ren_map(r, m, pos, p->f, p->l); } +void draw_guy(Renderer* r, const Player* p) { + const Mesh* m = get_mesh(asset_id_guy_mesh); + const Texture* tex = get_texture(asset_id_guy_texture); + push_player_cam(p); + ren_mesh(r, m, tex); + pop_player_cam(); +} + int entrypoint(int argc, const char** argv, Arena* a) { App* app; Renderer r = { 0 }; @@ -147,6 +155,7 @@ int entrypoint(int argc, const char** argv, Arena* a) { edit_map(&e, &g, map); } else { draw_map(&r, &p, map); + draw_guy(&r, &p); draw_player_world(&r, &p); } /*draw_tri(&r, app->mx, app->my);*/ |