2017-06-30 01:13:20 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 06.28.2017
|
|
|
|
*
|
|
|
|
* Mac C++ layer for 4coder
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
2017-06-30 21:28:09 +00:00
|
|
|
#define IS_PLAT_LAYER
|
|
|
|
|
2017-06-30 01:13:20 +00:00
|
|
|
#include "4tech_defines.h"
|
|
|
|
#include "4coder_API/version.h"
|
|
|
|
|
2017-06-30 21:33:30 +00:00
|
|
|
#include "unix_4ed_functions.cpp"
|
|
|
|
|
2017-06-30 01:13:20 +00:00
|
|
|
#include "osx_objective_c_to_cpp_links.h"
|
|
|
|
|
|
|
|
OSX_Vars osx;
|
|
|
|
|
|
|
|
// TODO(allen): Implement a real allocate
|
|
|
|
#include <stdlib.h>
|
2017-06-30 01:28:34 +00:00
|
|
|
external void*
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_allocate(umem size){
|
|
|
|
void *result = malloc(size);
|
|
|
|
return(result);
|
|
|
|
}
|
|
|
|
|
2017-06-30 01:28:34 +00:00
|
|
|
external void
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_resize(int width, int height){
|
|
|
|
osx.width = width;
|
|
|
|
osx.height = height;
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2017-06-30 01:28:34 +00:00
|
|
|
external void
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_character_input(u32 code, OSX_Keyboard_Modifiers modifier_flags){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2017-06-30 01:28:34 +00:00
|
|
|
external void
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_mouse(i32 mx, i32 my, u32 type){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2017-06-30 01:28:34 +00:00
|
|
|
external void
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_mouse_wheel(float dx, float dy){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2017-06-30 01:28:34 +00:00
|
|
|
external void
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_step(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
2017-06-30 01:28:34 +00:00
|
|
|
external void
|
2017-06-30 01:13:20 +00:00
|
|
|
osx_init(){
|
|
|
|
// TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|