2023-10-10 12:00:35 +00:00
|
|
|
// =================================================================================================
|
|
|
|
|
|
|
|
// NOTE(doyle): Work-around for clangd to correctly resolve symbols in unity
|
|
|
|
// builds by providing symbol definition and prototypes by including this
|
|
|
|
// mega-header in all files and using the "#pragma once" directive to
|
|
|
|
// avoid multiple defined symbols when compiling the unity build itself.
|
|
|
|
//
|
|
|
|
// See: https://www.frogtoss.com/labs/clangd-with-unity-builds.html
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// NOTE: DQN =======================================================================================
|
|
|
|
|
|
|
|
// NOTE: C-strings declared in a ternary cause global-buffer-overflow in
|
|
|
|
// MSVC2022.
|
|
|
|
// stb_sprintf assumes c-string literals are 4 byte aligned which is always
|
|
|
|
// true, however, reading past the end of a string whose size is not a multiple
|
|
|
|
// of 4 is UB causing ASAN to complain.
|
|
|
|
#if defined(_MSC_VER) && !defined(__clang__)
|
|
|
|
#define STBSP__ASAN __declspec(no_sanitize_address)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DQN_ASAN_POISON 0
|
|
|
|
#define DQN_ASAN_VET_POISON 1
|
|
|
|
#define DQN_ONLY_RECT
|
|
|
|
#define DQN_ONLY_V2
|
|
|
|
#define DQN_ONLY_V3
|
|
|
|
#define DQN_ONLY_V4
|
|
|
|
#define DQN_ONLY_WIN
|
|
|
|
#define DQN_ONLY_FARRAY
|
|
|
|
#define DQN_ONLY_PROFILER
|
|
|
|
#define DQN_ONLY_SLICE
|
|
|
|
#define DQN_ONLY_LIST
|
|
|
|
#define DQN_ONLY_VARRAY
|
|
|
|
#define DQN_ONLY_DSMAP
|
|
|
|
#define DQN_ONLY_FS
|
|
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
|
|
#define DQN_IMPLEMENTATION
|
|
|
|
#include "External/tely/External/dqn/dqn.h"
|
|
|
|
|
|
|
|
// NOTE: STB Headers ===============================================================================
|
|
|
|
|
|
|
|
DQN_GCC_WARNING_PUSH
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wunused-function)
|
2023-10-14 06:21:23 +00:00
|
|
|
#include "External/tely/External/stb/stb_image.h"
|
2023-10-10 12:00:35 +00:00
|
|
|
DQN_GCC_WARNING_POP
|
|
|
|
|
|
|
|
// =================================================================================================
|
|
|
|
|
2023-10-14 06:21:23 +00:00
|
|
|
#include "External/tely/External/raylib/raylib.h"
|
|
|
|
#include "External/tely/External/raylib/rlgl.h"
|
|
|
|
#include "External/tely/External/raylib/external/glfw/include/GLFW/glfw3.h"
|
2023-10-10 12:00:35 +00:00
|
|
|
|
|
|
|
// NOTE: TELY ======================================================================================
|
|
|
|
|
|
|
|
DQN_MSVC_WARNING_PUSH
|
|
|
|
DQN_MSVC_WARNING_DISABLE(4505) // warning C4505: unreferenced function with internal linkage has been removed
|
2023-10-14 14:31:33 +00:00
|
|
|
|
|
|
|
DQN_GCC_WARNING_PUSH
|
|
|
|
DQN_GCC_WARNING_DISABLE(-Wunused-function)
|
|
|
|
|
2023-10-10 12:00:35 +00:00
|
|
|
#include "External/tely/tely_profile.h"
|
|
|
|
#include "External/tely/tely_platform_input.h"
|
|
|
|
#include "External/tely/tely_tools.h"
|
|
|
|
#include "External/tely/tely_asset.h"
|
|
|
|
#include "External/tely/tely_colour.h"
|
|
|
|
#include "External/tely/tely_render.h"
|
|
|
|
#include "External/tely/tely_audio.h"
|
|
|
|
#include "External/tely/tely_platform.h"
|
|
|
|
#include "External/tely/tely_rfui.h"
|
|
|
|
|
|
|
|
#include "External/tely/tely_tools.cpp"
|
|
|
|
#include "External/tely/tely_asset.cpp"
|
|
|
|
#include "External/tely/tely_audio.cpp"
|
|
|
|
#include "External/tely/tely_render.cpp"
|
|
|
|
#include "External/tely/tely_platform_input.cpp"
|
|
|
|
#include "External/tely/tely_rfui.cpp"
|
|
|
|
|
|
|
|
// NOTE: feely_pona ================================================================================
|
|
|
|
#include "feely_pona.h"
|
|
|
|
#include "feely_pona_stdlib.h"
|
|
|
|
#include "feely_pona_entity.h"
|
|
|
|
#include "feely_pona_game.h"
|
|
|
|
|
2023-10-19 13:20:41 +00:00
|
|
|
#include "feely_pona_entity.cpp"
|
2023-10-10 12:00:35 +00:00
|
|
|
#include "feely_pona_game.cpp"
|
|
|
|
#include "feely_pona_entity_create.cpp"
|
|
|
|
#include "feely_pona_misc.cpp"
|
|
|
|
#include "feely_pona.cpp"
|
2023-10-14 14:31:33 +00:00
|
|
|
DQN_MSVC_WARNING_POP
|
|
|
|
DQN_GCC_WARNING_POP
|
2023-10-10 12:00:35 +00:00
|
|
|
|
2023-10-14 14:31:33 +00:00
|
|
|
#if defined(DQN_PLATFORM_EMSCRIPTEN)
|
2023-10-17 01:29:57 +00:00
|
|
|
#include <emscripten/emscripten.h>
|
|
|
|
#include <emscripten/html5.h>
|
2023-10-14 14:31:33 +00:00
|
|
|
#endif
|
2023-10-10 12:00:35 +00:00
|
|
|
|
2023-10-14 14:31:33 +00:00
|
|
|
// NOTE: TELY_Platform =============================================================================
|
2023-10-10 12:00:35 +00:00
|
|
|
#define TELY_PLATFORM_NO_DLL
|
|
|
|
#include "External/tely/tely_platform.cpp"
|
|
|
|
#include "External/tely/tely_platform_raylib.cpp"
|
|
|
|
|