diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2024-01-07 14:17:07 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2024-01-07 14:17:07 +0100 |
| commit | 79eb2237b94900941c35859875c4bae21fa4fff6 (patch) | |
| tree | e40d1b81f4659286503ca1ef2d57657c64e811d3 /include | |
| parent | 843440d1e382f909d066c82d2269df67251b35f9 (diff) | |
fix ui audio source pos
Diffstat (limited to 'include')
| -rw-r--r-- | include/audio.h | 1 | ||||
| -rw-r--r-- | include/math_helper.h | 1 |
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 |
