initial commit
This commit is contained in:
22
lib/sokol.c
Normal file
22
lib/sokol.c
Normal file
@@ -0,0 +1,22 @@
|
||||
// sokol implementation library on non-Apple platforms
|
||||
#define SOKOL_IMPL
|
||||
#if defined(__MINGW32__)
|
||||
#define SOKOL_GLCORE
|
||||
#elif defined(_WIN32)
|
||||
#define SOKOL_D3D11
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#define SOKOL_GLES3
|
||||
#elif defined(__APPLE__)
|
||||
// NOTE: on macOS, sokol.c is compiled explicitely as ObjC
|
||||
#define SOKOL_METAL
|
||||
#else
|
||||
#define SOKOL_GLCORE
|
||||
#endif
|
||||
#include "sokol_app.h"
|
||||
#include "sokol_gfx.h"
|
||||
#include "sokol_glue.h"
|
||||
#include "sokol_log.h"
|
||||
#define CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
||||
#include "cimgui.h"
|
||||
#define SOKOL_IMGUI_IMPL
|
||||
#include "sokol_imgui.h"
|
Reference in New Issue
Block a user