Started working on macOS platform layer.
This commit is contained in:
parent
9f518de27b
commit
67dfd06149
|
@ -0,0 +1,16 @@
|
|||
int
|
||||
main(int arg_count, char **args){
|
||||
Thread_Context _tctx = {};
|
||||
thread_ctx_init(&_tctx, ThreadKind_Main,
|
||||
get_base_allocator_system(),
|
||||
get_base_allocator_system());
|
||||
|
||||
block_zero_struct(&global_mac_vars);
|
||||
global_mac_vars.tctx = &_tctx;
|
||||
|
||||
// NOTE(yuval): Application Core Update
|
||||
Application_Step_Result result = {};
|
||||
if (app.step != 0){
|
||||
result = app.step(mac_vars.tctx, &target, base_ptr, &input);
|
||||
}
|
||||
}
|
|
@ -335,7 +335,7 @@ system_set_fullscreen_sig(){
|
|||
|
||||
internal
|
||||
system_is_fullscreen_sig(){
|
||||
// NOTE(allen): Report the fullscreen status as it would be set at the beginning of the
|
||||
// NOTE(allen): Report the fullscreen status as it would be set at the beginning of the
|
||||
// next frame. That is, take into account all fullscreen toggle requests that have come in
|
||||
// already this frame. Read: "full_screen XOR do_toggle"
|
||||
b32 result = (win32vars.full_screen != win32vars.do_toggle);
|
||||
|
|
Loading…
Reference in New Issue