v0.01.004 - Gamepad input, text wrapping, bug fixes
This commit is contained in:
parent
9664530935
commit
f2b81a0621
4 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
## v0.01.004
|
## v0.01.004 - Gamepad input, text wrapping, bug fixes
|
||||||
- Input
|
- Input
|
||||||
- Added Gamepad support
|
- Added Gamepad support
|
||||||
- Gamepad keycodes for buttons & clicks
|
- Gamepad keycodes for buttons & clicks
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
Now returns seconds sincs app init.
|
Now returns seconds sincs app init.
|
||||||
- draw_frame.view -> draw_frame.camera_xform (deprecated .view)
|
- draw_frame.view -> draw_frame.camera_xform (deprecated .view)
|
||||||
- Unecessary refactoring in drawing.c
|
- Unecessary refactoring in drawing.c
|
||||||
- Fixed temporary storage overflow warning (contributor kacpercwiklinski f9bf7ff)
|
- Fixed temporary storage overflow warning (contributor @kacpercwiklinski f9bf7ff)
|
||||||
- Added build.sh for building on linux (contributor 0xf0adc 90f00b)
|
- Added build.sh for building on linux (contributor @0xf0adc 90f00b)
|
||||||
- Added linmath constants
|
- Added linmath constants
|
||||||
v2_one
|
v2_one
|
||||||
v3_one
|
v3_one
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
v2_zero
|
v2_zero
|
||||||
v3_zero
|
v3_zero
|
||||||
v4_zero
|
v4_zero
|
||||||
|
- Refactored get_temporary_allocator() to fallback to get_initialization_allocator() if temp_allocator is not initted
|
||||||
|
|
||||||
## v0.01.003 - Mouse pointers, Audio improvement & features, bug fixes
|
## v0.01.003 - Mouse pointers, Audio improvement & features, bug fixes
|
||||||
- Os layer
|
- Os layer
|
||||||
|
|
|
@ -69,7 +69,7 @@ typedef struct Draw_Frame {
|
||||||
|
|
||||||
// This frame is passed to the platform layer and rendered in os_update.
|
// This frame is passed to the platform layer and rendered in os_update.
|
||||||
// Resets every frame.
|
// Resets every frame.
|
||||||
ogb_instance Draw_Frame draw_frame = {0};
|
ogb_instance Draw_Frame draw_frame;
|
||||||
|
|
||||||
#if !OOGABOOGA_LINK_EXTERNAL_INSTANCE
|
#if !OOGABOOGA_LINK_EXTERNAL_INSTANCE
|
||||||
Draw_Frame draw_frame;
|
Draw_Frame draw_frame;
|
||||||
|
|
|
@ -104,7 +104,7 @@ int entry(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
seed_for_random = 69;
|
seed_for_random = 69;
|
||||||
for (u64 i = 0; i < 2; i++) {
|
for (u64 i = 0; i < 10000; i++) {
|
||||||
float32 aspect = (float32)window.width/(float32)window.height;
|
float32 aspect = (float32)window.width/(float32)window.height;
|
||||||
float min_x = -aspect;
|
float min_x = -aspect;
|
||||||
float max_x = aspect;
|
float max_x = aspect;
|
||||||
|
|
|
@ -590,6 +590,7 @@ thread_local Allocator temp_allocator;
|
||||||
|
|
||||||
ogb_instance Allocator
|
ogb_instance Allocator
|
||||||
get_temporary_allocator() {
|
get_temporary_allocator() {
|
||||||
|
if (!temporary_storage) return get_initialization_allocator();
|
||||||
return temp_allocator;
|
return temp_allocator;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue