- We just add to a frame of quads which the renderer deals with in gfx_update
- draw_quad, draw_rect, draw_rect_rotated
- Currently just implemented with legacy opengl, so we can't do custom shading
- Added third party code from lodepng so we can load pngs without any other dependencies (no C includes)
- ALLOCATOR_REALLOCATE
- Basic Vector2, Vector3, Vector4 stuff, and some math utilities
- Added <math.h> dependency for now.
- Graphics renderer frontend layer
- Naive get_random() implementation
- Jai-like print procedures
- %s formats 'string' and to format a char* you do %cs
- It detects if %cs pointer is outside of program memory or stack and asserts
- AND same for if a char* is passed to %s
- Print directly writes to stdout without any allocations
- Basic utlity procedures
- Buncha string tests
- Beef up assert to display file & line as well
- Don't define memcpy procedures if compiler has intrinsics for them
- Init memory arena for allocations in initialization time before heap is ready (stack memory)
- os_compare_and_swap
- Spinlock "primitive" (wrapper around a bool using compare_and_swap)
- Switched to using spinlock instead of os mutex in heap for synchronization.
- is_pointer_valid() which checks if address is in program_memory or thread stack
- Dyamically load minimum crt symbols in os backend so we don't need to #include c headers
- Some more os calls:
- write to stdout (with our string type)
- macros for variadic argument lists
- Dynamic library loading
- Some compile options that make sense for build.bat, and a build_release.bat
- oogabooga:
- Big buffer program_memory that always has same base address (goodbye serialisation problems)
- Big buffer grows as needed, crash when out of memory
- Very sexy platform abstraction & basic os call procedures
- Heap allocator around the program memory.
- Jaiyfication (context, context.allocator, push_allocator, temp allocator)
- Some tests to make sure we ooga the right boogas