orca/src/milepost.c

80 lines
1.9 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 defined(PLATFORM_WIN64)
#include"platform/win32_memory.c"
2023-03-05 15:05:43 +00:00
#include"platform/win32_clock.c"
//TODO
#elif defined(PLATFORM_MACOS)
#include"platform/unix_memory.c"
2023-03-05 15:05:43 +00:00
#include"platform/osx_clock.c"
/*
#include"platform/unix_rng.c"
#include"platform/posix_thread.c"
#include"platform/posix_socket.c"
*/
#elif defined(PLATFORM_LINUX)
#include"platform/unix_base_memory.c"
2023-03-05 15:05:43 +00:00
#include"platform/linux_clock.c"
/*
#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 defined(PLATFORM_WIN64)
2023-03-05 15:05:43 +00:00
#include"win32_app.c"
#include"graphics.c"
#if MG_COMPILE_BACKEND_GL || MG_COMPILE_BACKEND_GLES
#include"gl_loader.c"
#endif
#if MG_COMPILE_BACKEND_GL
#include"wgl_surface.c"
#include"gl_canvas.c"
#endif
#if MG_COMPILE_BACKEND_GLES
#include"egl_surface.c"
#endif
#elif defined(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"