summaryrefslogtreecommitdiff
path: root/3de.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-08-10 19:21:55 +1000
committerquou <quou@disroot.org>2024-08-10 19:37:58 +1000
commitcfc86e984f965285094fca91fee7d9098423b4cb (patch)
tree2bec7b29e35ae56d9061931ec984d25d4f7b75ba /3de.c
parentdb26f27bbeea7de759c8f5a30fa79789bed066a2 (diff)
draw the gun
Diffstat (limited to '3de.c')
-rw-r--r--3de.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/3de.c b/3de.c
index 1c10e03..099096a 100644
--- a/3de.c
+++ b/3de.c
@@ -41,21 +41,6 @@ void draw_spinny(Renderer* r, Colour c) {
a += 20;
}
-void draw_gun(Renderer* r) {
- static int a = 0;
- const Mesh* m = get_mesh(asset_id_monkey);
- const Texture* tex = get_texture(asset_id_gun_texture);
- int p[] = { f1 * 7, 0, f1 * 5, f1 };
- mtx_push_trans(p);
- mtx_push_scale(0xff);
- /*mtx_push_rot_x(a);
- mtx_push_rot_y(a);
- mtx_push_rot_z(a);*/
- ren_mesh(r, m, tex);
- mtx_popn(2);
- a++;
-}
-
void draw_tri(Renderer* r, int x, int y) {
const Texture* tex = get_texture(asset_id_gun_texture);
int v0[] = { 100, 100, 0, 0, 0, f1, f1, f1 };
@@ -158,10 +143,8 @@ int entrypoint(int argc, const char** argv, Arena* a) {
if (editing) {
edit_map(&e, &g, map);
} else {
- push_player_cam(&p);
- draw_map(&r, &p, map);
- draw_gun(&r);
- pop_player_cam();
+ draw_map(&r, &p, map);
+ draw_player_world(&r, &p);
}
/*draw_tri(&r, app->mx, app->my);*/
gui_end(&g, &r);