This repository has been archived on 2025-02-04. You can view files and clone it, but cannot push or open issues or pull requests.
helpless/oogabooga/examples
Charlie b37652e1ce v0.00.004 - Custom logging, more concurrency & bugfixing
Concurrency:
	- Refactored spinlock out of OS api (deprecated old procs)
	- Concurrency utilites:
		void spinlock_init(Spinlock *l);
		void spinlock_acquire_or_wait(Spinlock* l);
		bool spinlock_acquire_or_wait_timeout(Spinlock* l, f64 timeout_seconds);
		void spinlock_release(Spinlock* l);
		void mutex_init(Mutex *m);
		void mutex_destroy(Mutex *m);
		void mutex_acquire_or_wait(Mutex *m);
		void mutex_release(Mutex *m);
		void binary_semaphore_init(Binary_Semaphore *sem, bool initial_state);
		void binary_semaphore_destroy(Binary_Semaphore *sem);
		void binary_semaphore_wait(Binary_Semaphore *sem);
		void binary_semaphore_signal(Binary_Semaphore *sem);
		Macro MEMORY_BARRIER
	- Concurrency tests

Docs:
	- custom_logger.c example to show how one can make a custom logger and have logs displayed in-game

Utility:
	- draw_text_and_measure() which is just an overload of draw_text but it also does a measure and returns it

Misc:
	- Added u64 thread_id to global context. This is set in main() for main thread and in thread startup when you dispatch a Thread
	- Fixed a bug where plain rects would be drawn with the incorrect color
	- Fixed a bug where quads from earlier frames would be drawn
2024-07-09 18:38:06 +02:00
..
berry_bush.png Ooga'd some boogas 2024-07-02 19:12:31 +02:00
bruh.ogg Add minimal libraries for decoding audio 2024-07-08 15:33:01 +02:00
custom_logger.c v0.00.004 - Custom logging, more concurrency & bugfixing 2024-07-09 18:38:06 +02:00
hammer.png Ooga'd some boogas 2024-07-02 19:12:31 +02:00
minimal_game_loop.c v0.00.004 - Custom logging, more concurrency & bugfixing 2024-07-09 18:38:06 +02:00
renderer_stress_test.c Fixed memory bug & window placement 2024-07-08 17:57:23 +02:00
song.mp3 Add minimal libraries for decoding audio 2024-07-08 15:33:01 +02:00
text_rendering.c v0.00.004 - Custom logging, more concurrency & bugfixing 2024-07-09 18:38:06 +02:00
whoosh.wav Add minimal libraries for decoding audio 2024-07-08 15:33:01 +02:00