index
:
3de
lighting_wip
master
3D Engine
quou@disroot.org
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
map.c
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'map.c')
-rw-r--r--
map.c
5
1 files changed, 5 insertions, 0 deletions
diff --git a/map.c b/map.c
new file mode 100644
index 0000000..3313f10
--- /dev/null
+++ b/
map.c
@@ -0,0 +1,5 @@
+#include "map.h"
+
+int map_size(int w, int h) {
+ return sizeof(Map) + w * h * sizeof(Map_Tile);
+}