summaryrefslogtreecommitdiff
path: root/include/engine/fov.h
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2023-10-30 22:11:54 +0000
committer0scar <qgt268@alumni.ku.dk>2023-10-30 22:12:34 +0000
commit5c0311ff3095a5dd30fb15db54aa394498dd2bcf (patch)
tree2abb0e3dc145e4372fcf07aeeb736279d00471e5 /include/engine/fov.h
parent3e3fe3d42206dc14baca2f50445e6fe8bb2d2480 (diff)
The great formattening!
Diffstat (limited to 'include/engine/fov.h')
-rw-r--r--include/engine/fov.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/include/engine/fov.h b/include/engine/fov.h
index 3af421e..15ef38b 100644
--- a/include/engine/fov.h
+++ b/include/engine/fov.h
@@ -1,26 +1,21 @@
#ifndef ENGINE_FOV_H
#define ENGINE_FOV_H
-#include <stdbool.h>
#include "types.h"
#include "vector.h"
+#include <stdbool.h>
/* `fov_shadowcast`: */
/* map: your 2D enum tile grid
* mapsize: x: width, y: height of the map
* visblocking: pointer to a function that returns `true` when receiving a
* pointer to a LOS blocking tile
- * lightmap: [out] 2D lightmap, this is simply overwritten with the distance to
- * the source.
- * range: visibility range/radius.
- * src: 2D point to calculate FOV from
+ * lightmap: [out] 2D lightmap, this is simply overwritten with the
+ * distance to the source. range: visibility range/radius. src: 2D
+ * point to calculate FOV from
* */
-void fov_shadowcast(
- const void *map,
- const v2_i32 mapsize,
- bool (*visblocking)(const void*),
- i32 *lightmap,
- const i32 range,
- v2_i32 src);
+void fov_shadowcast(const void* map, const v2_i32 mapsize,
+ bool (*visblocking)(const void*), i32* lightmap,
+ const i32 range, v2_i32 src);
#endif