summaryrefslogtreecommitdiff
path: root/kon/kontile.h
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-13 10:28:17 +0800
committerKonAki <konaki@anokonaki.org>2026-10-13 10:28:17 +0800
commitd3432fcc288a53dff9eb219c8857ca48c5981323 (patch)
treefba5cc730c91d2c674efe6d71dd20e9d6bf7d0d8 /kon/kontile.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/kontile.h')
-rw-r--r--kon/kontile.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/kontile.h b/kon/kontile.h
index 00119b1..f3e04f0 100644
--- a/kon/kontile.h
+++ b/kon/kontile.h
@@ -29,6 +29,10 @@
#include "konsofren.h"
#include "koncollide.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
/* tiles holds columns * rows ids, 0 is empty and n draws tile n - 1 of the sheet, counted left to right then top to bottom */
@@ -67,4 +71,8 @@ int kon_tilemapMove(const kon_tilemap_t *map, kon_box2_t *box, float dx, float d
/* cameraX, cameraY is the map pixel shown at the top left of fb */
void kon_drawTilemap(kon_framebuffer_t *fb, const kon_tilemap_t *map, int cameraX, int cameraY);
+
+#ifdef __cplusplus
+}
+#endif
#endif