summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/audio.h1
-rw-r--r--include/math_helper.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/audio.h b/include/audio.h
index 9ee0bfd..5199854 100644
--- a/include/audio.h
+++ b/include/audio.h
@@ -43,6 +43,7 @@ typedef struct t_audio_event {
#define MAX_AUDIO_EVENTS (NUM_AUDIO_CHANNELS)
audio_event audio_events[MAX_AUDIO_EVENTS] = {0};
int max_audio_events = MAX_AUDIO_EVENTS;
+vec3f global_audio_source_position =(vec3f){-1,-1,-1};
void play_music(Mix_Music* music);
void add_throwable_audio_event_to_queue(audio_event_type event, throwable_type throwable, u32 playerid, vec3f position);
diff --git a/include/math_helper.h b/include/math_helper.h
index cdb083f..bfbc1cd 100644
--- a/include/math_helper.h
+++ b/include/math_helper.h
@@ -20,5 +20,6 @@ box get_render_box_of_square(platform_window* window, vec3f position, vec3f size
box get_box_of_square(vec3f position, vec3f size);
vec3f get_center_of_square(vec3f position, vec3f size);
bool rect_contains_point(vec2 point, vec2 tl, vec2 br);
+bool vec3f_equals(vec3f p1, vec3f p2);
#endif \ No newline at end of file