orca/src/milepost.c

86 lines
2.0 KiB
C
Raw Normal View History

2023-03-05 15:05:43 +00:00
/************************************************************//**
*
* @file: milepost.c
* @author: Martin Fouilleul
* @date: 13/02/2021
* @revision:
*
*****************************************************************/
//---------------------------------------------------------------
// platform implementations
//---------------------------------------------------------------
#include"platform.h"
2023-04-18 16:05:54 +00:00
#include"platform/std_log.c"
#if PLATFORM_WINDOWS
#include"platform/win32_memory.c"
2023-03-05 15:05:43 +00:00
#include"platform/win32_clock.c"
//TODO
#elif PLATFORM_MACOS
#include"platform/unix_memory.c"
2023-03-05 15:05:43 +00:00
#include"platform/osx_clock.c"
#include"platform/posix_io.c"
2023-03-05 15:05:43 +00:00
/*
#include"platform/unix_rng.c"
#include"platform/posix_thread.c"
#include"platform/posix_socket.c"
*/
#elif PLATFORM_LINUX
#include"platform/unix_base_memory.c"
2023-03-05 15:05:43 +00:00
#include"platform/linux_clock.c"
#include"platform/posix_io.c"
2023-03-05 15:05:43 +00:00
/*
#include"platform/unix_rng.c"
#include"platform/posix_thread.c"
#include"platform/posix_socket.c"
*/
#else
#error "Unsupported platform"
#endif
2023-04-18 16:05:54 +00:00
//---------------------------------------------------------------
// utilities implementations
//---------------------------------------------------------------
#include"util/memory.c"
#include"util/strings.c"
#include"util/utf8.c"
#include"util/hash.c"
#include"util/ringbuffer.c"
2023-03-05 15:05:43 +00:00
//---------------------------------------------------------------
// app/graphics layer
//---------------------------------------------------------------
#if PLATFORM_WINDOWS
2023-03-05 15:05:43 +00:00
#include"win32_app.c"
#include"graphics_common.c"
#include"graphics_surface.c"
2023-03-05 15:05:43 +00:00
#if MG_COMPILE_GL || MG_COMPILE_GLES
2023-03-05 15:05:43 +00:00
#include"gl_loader.c"
#endif
#if MG_COMPILE_GL
2023-03-05 15:05:43 +00:00
#include"wgl_surface.c"
#endif
#if MG_COMPILE_CANVAS
2023-03-05 15:05:43 +00:00
#include"gl_canvas.c"
#endif
#if MG_COMPILE_GLES
2023-03-05 15:05:43 +00:00
#include"egl_surface.c"
#endif
#elif PLATFORM_MACOS
2023-03-05 15:05:43 +00:00
//NOTE: macos application layer and graphics backends are defined in milepost.m
#else
#error "Unsupported platform"
#endif
#include"input_state.c"
2023-03-05 15:05:43 +00:00
#include"ui.c"