-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.h
More file actions
17 lines (16 loc) · 806 Bytes
/
render.h
File metadata and controls
17 lines (16 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include "constants.h"
#include "player.h"
// Function prototypes for rendering
void render_callback(Canvas* canvas, void* ctx);
void draw_cube(Canvas* canvas, float y);
void draw_ship(Canvas* canvas, float y, GravityDirection gravity_dir);
void draw_ball(Canvas* canvas, float y);
void draw_ufo(Canvas* canvas, float y);
void draw_vertical_special_object(Canvas* canvas, int screen_x, int base_grid_y, ObstacleType type);
void draw_filled_spike(Canvas* canvas, int screen_x, int screen_y, ObstacleType type);
void draw_obstacle(Canvas* canvas, int screen_x, int grid_y, ObstacleType type);
void draw_ground(Canvas* canvas);
void draw_player(GeometryDashApp* app, Canvas* canvas);
void draw_ui(Canvas* canvas, GeometryDashApp* app);
void draw_game_scene(Canvas* canvas, GeometryDashApp* app);