|
Banuba SDK
|
Loading...
Searching...
No Matches
14 #if BNB_SDK_SHARED_LIBRARY
15 #define BNB_EXPORT __declspec(dllexport)
16 #elif BNB_SDK_STATIC_LIBRARY
19 #define BNB_EXPORT __declspec(dllimport)
22 #define BNB_EXPORT __attribute__((__visibility__("default")))
27#define BNB_OS_ANDROID 0
29#if !defined(BNB_DETAIL_OS_DETECTED) && (defined(__ANDROID__))
31 #define BNB_OS_ANDROID 1
35 #define BNB_OS_ANDROID_AVAILABLE
36 #include <bnb/utils/os_detected.hpp>
43#if !defined(BNB_DETAIL_OS_DETECTED) && (defined(__APPLE__) && defined(__MACH__) && defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__))
49 #define BNB_OS_IOS_AVAILABLE
50 #include <bnb/utils/os_detected.hpp>
57#if !defined(BNB_DETAIL_OS_DETECTED) && (defined(linux) || defined(__linux))
59 #define BNB_OS_LINUX 1
63 #define BNB_OS_LINUX_AVAILABLE
64 #include <bnb/utils/os_detected.hpp>
71#if !defined(BNB_DETAIL_OS_DETECTED) && (defined(macintosh) || defined(Macintosh) || (defined(__APPLE__) && defined(__MACH__)))
73 #define BNB_OS_MACOS 1
77 #define BNB_OS_MACOS_AVAILABLE
78 #include <bnb/utils/os_detected.hpp>
83#define BNB_OS_EMSCRIPTEN 0
85#if !defined(BNB_DETAIL_OS_DETECTED) && defined(__EMSCRIPTEN__)
86 #undef BNB_OS_EMSCRIPTEN
87 #define BNB_OS_EMSCRIPTEN 1
91 #define BNB_OS_EMSCRIPTEN_AVAILABLE
92 #include <bnb/utils/os_detected.hpp>
99#if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE)
101 #define BNB_OS_UNIX 1
105 #define BNB_OS_UNIX_AVAILABLE
110#define BNB_OS_WINDOWS 0
111#define BNB_OS_WINDOWS_ARM64 0
113#if !defined(BNB_DETAIL_OS_DETECTED) && (defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__))
114 #undef BNB_OS_WINDOWS
115 #define BNB_OS_WINDOWS 1
116 #undef BNB_OS_WINDOWS_ARM64
117 #define BNB_OS_WINDOWS_ARM64 _M_ARM64
121 #define BNB_OS_WINDOWS_AVAILABLE
122 #include <bnb/utils/os_detected.hpp>
128#if defined(macintosh) || defined(Macintosh) || defined(__APPLE__)
135#if BNB_OS_ANDROID || BNB_OS_IOS || BNB_OS_EMSCRIPTEN
136 #define BNB_GLSL_VERSION "#version 300 es\n"
137#elif BNB_OS_WINDOWS || BNB_OS_MACOS || BNB_OS_UNIX
138 #define BNB_GLSL_VERSION "#version 410 core\n"
140 #error "Can't determine GLSL version for OS"
143#if !defined(__cpp_char8_t)