From 79eb2237b94900941c35859875c4bae21fa4fff6 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 7 Jan 2024 14:17:07 +0100 Subject: fix ui audio source pos --- include/audio.h | 1 + include/math_helper.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2