56 lines
1.1 KiB
C
56 lines
1.1 KiB
C
#pragma attribute(push, nogc, nothrow)
|
|
|
|
#ifdef __linux__
|
|
# define VK_USE_PLATFORM_XLIB_KHR
|
|
# define XLIB_ILLEGAL_ACCESS
|
|
# include <X11/Xlib.h>
|
|
# include <X11/XKBlib.h>
|
|
# include <X11/Xlib-xcb.h>
|
|
# include <X11/keysym.h>
|
|
# include <X11/extensions/Xfixes.h>
|
|
# include <X11/Xatom.h>
|
|
# include <X11/Xutil.h>
|
|
|
|
# include <ft2build.h>
|
|
# include <GL/glx.h>
|
|
# include <GL/glxext.h>
|
|
# include FT_FREETYPE_H
|
|
# include FT_GLYPH_H
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
# include <windows.h>
|
|
# define VK_USE_PLATFORM_WIN32_KHR
|
|
#endif
|
|
|
|
#if !defined(NO_STBI) && !defined(BUILD_WASM)
|
|
# include "../external/stb/stb_image.h"
|
|
# include "../external/stb/stb_image_write.h"
|
|
#endif
|
|
|
|
#ifdef BUILD_WASM
|
|
# include "../external/tinyalloc/tinyalloc.c"
|
|
#endif
|
|
|
|
#ifdef DLIB_INCLUDE_VULKAN
|
|
# include "../../VulkanRenderer/vulkan_includes.c"
|
|
#endif
|
|
|
|
#ifndef BUILD_WASM
|
|
# include "../external/cgltf/cgltf.h"
|
|
#endif
|
|
|
|
#ifdef BUILD_VULKAN
|
|
|
|
# define VK_NO_PROTOTYPES
|
|
|
|
# include <vulkan/vulkan.h>
|
|
|
|
# define VMA_STATIC_VULKAN_FUNCTIONS 0
|
|
# define VMA_DYNAMIC_VULKAN_FUNCTIONS 1
|
|
# define VMA_VULKAN_VERSION 1002000
|
|
|
|
# include "../external/vma/vk_mem_alloc.h"
|
|
|
|
#endif
|