blob: 4d4d8140637a3416f77a35cf60803a0a82d4e7d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef RENDER_INCLUDE_H
#define RENDER_INCLUDE_H
// NOTE: sits on top of base + core. doesn't know about the platform layer, vk_init takes the
// raw wl_display / wl_surface.
#ifndef VULKAN
#define VULKAN 0
#endif
#if !VULKAN
#error only the vulkan backend is implemented
#endif
#define VK_USE_PLATFORM_WAYLAND_KHR 1
#include <vulkan/vulkan.h>
// NOTE: freetype has struct members called `internal`, which base #defines to static
#pragma push_macro("internal")
#undef internal
#include <ft2build.h>
#include FT_FREETYPE_H
#include <hb.h>
#include <hb-ft.h>
#pragma pop_macro("internal")
#include "render_draw.h"
#include "render_font.h"
#include "render_vulkan.h"
#include "render_draw.cpp"
#include "render_font.cpp"
#include "render_vulkan.cpp"
#endif // RENDER_INCLUDE_H
|