Started working on macOS platform layer.

master
Yuval Dolev 2019-12-23 02:39:44 +02:00
parent 9f518de27b
commit 67dfd06149
4 changed files with 17 additions and 1 deletions

16
platform_mac/mac_4ed.mm Normal file
View File

@ -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);
}
}

View File

@ -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);