Remove unsupported platforms.
This commit is contained in:
parent
4946079f1d
commit
de9f4b3385
@ -14,7 +14,7 @@
|
|||||||
# error "GLFW 3.2 or later is required"
|
# error "GLFW 3.2 or later is required"
|
||||||
#endif // GLFW_VERSION_MINOR < 2
|
#endif // GLFW_VERSION_MINOR < 2
|
||||||
|
|
||||||
#if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
#if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
# include <wayland-egl.h>
|
# include <wayland-egl.h>
|
||||||
# define GLFW_EXPOSE_NATIVE_WAYLAND
|
# define GLFW_EXPOSE_NATIVE_WAYLAND
|
||||||
@ -44,7 +44,7 @@ namespace entry
|
|||||||
{
|
{
|
||||||
static void* glfwNativeWindowHandle(GLFWwindow* _window)
|
static void* glfwNativeWindowHandle(GLFWwindow* _window)
|
||||||
{
|
{
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
wl_egl_window *win_impl = (wl_egl_window*)glfwGetWindowUserPointer(_window);
|
wl_egl_window *win_impl = (wl_egl_window*)glfwGetWindowUserPointer(_window);
|
||||||
if(!win_impl)
|
if(!win_impl)
|
||||||
@ -72,7 +72,7 @@ namespace entry
|
|||||||
{
|
{
|
||||||
if(!_window)
|
if(!_window)
|
||||||
return;
|
return;
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
wl_egl_window *win_impl = (wl_egl_window*)glfwGetWindowUserPointer(_window);
|
wl_egl_window *win_impl = (wl_egl_window*)glfwGetWindowUserPointer(_window);
|
||||||
if(win_impl)
|
if(win_impl)
|
||||||
@ -864,7 +864,7 @@ namespace entry
|
|||||||
|
|
||||||
void* getNativeDisplayHandle()
|
void* getNativeDisplayHandle()
|
||||||
{
|
{
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
return glfwGetWaylandDisplay();
|
return glfwGetWaylandDisplay();
|
||||||
# else
|
# else
|
||||||
@ -877,7 +877,7 @@ namespace entry
|
|||||||
|
|
||||||
bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType()
|
bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType()
|
||||||
{
|
{
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
return bgfx::NativeWindowHandleType::Wayland;
|
return bgfx::NativeWindowHandleType::Wayland;
|
||||||
# else
|
# else
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#if ENTRY_CONFIG_USE_SDL
|
#if ENTRY_CONFIG_USE_SDL
|
||||||
|
|
||||||
#if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
#if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
# include <wayland-egl.h>
|
# include <wayland-egl.h>
|
||||||
# endif
|
# endif
|
||||||
@ -48,7 +48,7 @@ namespace entry
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
|
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ namespace entry
|
|||||||
{
|
{
|
||||||
if(!_window)
|
if(!_window)
|
||||||
return;
|
return;
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
wl_egl_window *win_impl = (wl_egl_window*)SDL_GetWindowData(_window, "wl_egl_window");
|
wl_egl_window *win_impl = (wl_egl_window*)SDL_GetWindowData(_window, "wl_egl_window");
|
||||||
if(win_impl)
|
if(win_impl)
|
||||||
@ -1148,7 +1148,7 @@ namespace entry
|
|||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
|
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
|
||||||
return wmi.info.wl.display;
|
return wmi.info.wl.display;
|
||||||
@ -1168,7 +1168,7 @@ namespace entry
|
|||||||
{
|
{
|
||||||
return bgfx::NativeWindowHandleType::Default;
|
return bgfx::NativeWindowHandleType::Default;
|
||||||
}
|
}
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# if ENTRY_CONFIG_USE_WAYLAND
|
# if ENTRY_CONFIG_USE_WAYLAND
|
||||||
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
|
if (wmi.subsystem == SDL_SYSWM_WAYLAND)
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "entry_p.h"
|
#include "entry_p.h"
|
||||||
|
|
||||||
#if ENTRY_CONFIG_USE_NATIVE && (BX_PLATFORM_BSD || BX_PLATFORM_LINUX || BX_PLATFORM_RPI)
|
#if ENTRY_CONFIG_USE_NATIVE && (BX_PLATFORM_LINUX || BX_PLATFORM_RPI)
|
||||||
|
|
||||||
#define XK_MISCELLANY
|
#define XK_MISCELLANY
|
||||||
#define XK_LATIN1
|
#define XK_LATIN1
|
||||||
@ -784,4 +784,4 @@ int main(int _argc, const char* const* _argv)
|
|||||||
return s_ctx.run(_argc, _argv);
|
return s_ctx.run(_argc, _argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ENTRY_CONFIG_USE_NATIVE && (BX_PLATFORM_BSD || BX_PLATFORM_LINUX || BX_PLATFORM_RPI)
|
#endif // ENTRY_CONFIG_USE_NATIVE && (BX_PLATFORM_LINUX || BX_PLATFORM_RPI)
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
|| BX_PLATFORM_WINDOWS \
|
|| BX_PLATFORM_WINDOWS \
|
||||||
)
|
)
|
||||||
#define BGFX_PLATFORM_SUPPORTS_GLSL (0 \
|
#define BGFX_PLATFORM_SUPPORTS_GLSL (0 \
|
||||||
|| BX_PLATFORM_BSD \
|
|
||||||
|| BX_PLATFORM_LINUX \
|
|| BX_PLATFORM_LINUX \
|
||||||
|| BX_PLATFORM_OSX \
|
|| BX_PLATFORM_OSX \
|
||||||
|| BX_PLATFORM_WINDOWS \
|
|| BX_PLATFORM_WINDOWS \
|
||||||
|
@ -80,7 +80,6 @@
|
|||||||
|
|
||||||
# ifndef BGFX_CONFIG_RENDERER_OPENGL
|
# ifndef BGFX_CONFIG_RENDERER_OPENGL
|
||||||
# define BGFX_CONFIG_RENDERER_OPENGL (0 \
|
# define BGFX_CONFIG_RENDERER_OPENGL (0 \
|
||||||
|| BX_PLATFORM_BSD \
|
|
||||||
|| BX_PLATFORM_LINUX \
|
|| BX_PLATFORM_LINUX \
|
||||||
|| BX_PLATFORM_WINDOWS \
|
|| BX_PLATFORM_WINDOWS \
|
||||||
? BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION : 0)
|
? BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION : 0)
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#define BGFX_USE_EGL ( (BGFX_CONFIG_RENDERER_OPENGL || BGFX_CONFIG_RENDERER_OPENGLES) && (0 \
|
#define BGFX_USE_EGL ( (BGFX_CONFIG_RENDERER_OPENGL || BGFX_CONFIG_RENDERER_OPENGLES) && (0 \
|
||||||
|| BX_PLATFORM_ANDROID \
|
|| BX_PLATFORM_ANDROID \
|
||||||
|| BX_PLATFORM_BSD \
|
|
||||||
|| BX_PLATFORM_LINUX \
|
|| BX_PLATFORM_LINUX \
|
||||||
|| BX_PLATFORM_NX \
|
|| BX_PLATFORM_NX \
|
||||||
|| BX_PLATFORM_RPI \
|
|| BX_PLATFORM_RPI \
|
||||||
@ -23,7 +22,6 @@
|
|||||||
) )
|
) )
|
||||||
|
|
||||||
#define BGFX_USE_GL_DYNAMIC_LIB (0 \
|
#define BGFX_USE_GL_DYNAMIC_LIB (0 \
|
||||||
|| BX_PLATFORM_BSD \
|
|
||||||
|| BX_PLATFORM_LINUX \
|
|| BX_PLATFORM_LINUX \
|
||||||
|| BX_PLATFORM_WINDOWS \
|
|| BX_PLATFORM_WINDOWS \
|
||||||
)
|
)
|
||||||
@ -62,7 +60,7 @@
|
|||||||
# if BGFX_CONFIG_RENDERER_OPENGL >= 31
|
# if BGFX_CONFIG_RENDERER_OPENGL >= 31
|
||||||
# include <gl/glcorearb.h>
|
# include <gl/glcorearb.h>
|
||||||
# else
|
# else
|
||||||
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
|
# if BX_PLATFORM_LINUX
|
||||||
# define GL_PROTOTYPES
|
# define GL_PROTOTYPES
|
||||||
# define GL_GLEXT_LEGACY
|
# define GL_GLEXT_LEGACY
|
||||||
# include <GL/gl.h>
|
# include <GL/gl.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user