aboutsummaryrefslogtreecommitdiff
path: root/src/engine/draw_screen.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-03-22 10:45:34 +0100
committerGitHub <noreply@github.com>2023-03-22 10:45:34 +0100
commitd32a4942c7e16af5daf71a769906b17cb44de8e1 (patch)
tree8da86d27d30d841d786a5beca634e3fbaaf00570 /src/engine/draw_screen.h
parent6d82f9e3d165e0200bed2f2784a1183f47b37fa3 (diff)
parent7f51cd925883bbf958baa289d4d19231667c9eba (diff)
Merge branch 'lonkaars:dev' into dev
Diffstat (limited to 'src/engine/draw_screen.h')
-rw-r--r--src/engine/draw_screen.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/engine/draw_screen.h b/src/engine/draw_screen.h
new file mode 100644
index 0000000..95765e5
--- /dev/null
+++ b/src/engine/draw_screen.h
@@ -0,0 +1,26 @@
+#pragma once
+
+
+// every function call for drawing the screen goes here.
+#include "engine/maths.h"
+#include "ppu/consts.h"
+#include "ppu/ppu.h"
+
+#include <stdio.h>
+#include <stdint.h>
+#include <stdlib.h>
+
+
+#define HH_map_size_X 80
+#define HH_map_size_Y 60
+
+/** @brief return a single tile from world binary */
+uint8_t hh_world_to_tile(vec2 pos);
+/** @brief shift to level if viewport changed position */
+void hh_draw_screen(vec2 viewport);
+/** @brief send data to BAM memory from binary level */
+void hh_setup_screen();
+/** @brief send black screen to background memory */
+void hh_clear_screen();
+/** @brief clears all sprite data */
+void hh_clear_sprite();