mirror of https://github.com/bkaradzic/bgfx
Added BX_PLATFORM_QNX.
This commit is contained in:
parent
d936a29ea6
commit
ab05bc6974
7
makefile
7
makefile
|
@ -13,6 +13,7 @@ all:
|
|||
premake4 --file=premake/premake4.lua --gcc=linux gmake
|
||||
premake4 --file=premake/premake4.lua --gcc=emscripten gmake
|
||||
premake4 --file=premake/premake4.lua --gcc=osx gmake
|
||||
premake4 --file=premake/premake4.lua --gcc=qnx-arm gmake
|
||||
premake4 --file=premake/premake4.lua xcode4
|
||||
make -s --no-print-directory -C src
|
||||
|
||||
|
@ -78,6 +79,12 @@ osx-release64:
|
|||
make -C .build/projects/gmake-osx config=release64
|
||||
osx: osx-debug32 osx-release32 osx-debug64 osx-release64
|
||||
|
||||
qnx-arm-debug32:
|
||||
make -C .build/projects/gmake-osx config=debug32
|
||||
qnx-arm-release32:
|
||||
make -C .build/projects/gmake-osx config=release32
|
||||
qnx-arm: qnx-arm-debug32 qnx-arm-release32
|
||||
|
||||
rebuild-shaders:
|
||||
make -C examples rebuild
|
||||
|
||||
|
|
|
@ -25,12 +25,12 @@ project "bgfx"
|
|||
"$(DXSDK_DIR)/include",
|
||||
}
|
||||
|
||||
configuration { "macosx" }
|
||||
configuration { "osx" }
|
||||
files {
|
||||
BGFX_DIR .. "src/**.mm",
|
||||
}
|
||||
|
||||
configuration { "not nacl" }
|
||||
configuration { "(not nacl*) and (not qnx*)" }
|
||||
includedirs {
|
||||
--nacl has GLES2 headers modified...
|
||||
BGFX_DIR .. "3rdparty/glext",
|
||||
|
|
|
@ -81,7 +81,7 @@ function exampleProject(_name, _uuid)
|
|||
"pthread",
|
||||
}
|
||||
|
||||
configuration { "macosx" }
|
||||
configuration { "osx" }
|
||||
files {
|
||||
BGFX_DIR .. "examples/common/**.mm",
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
| BX_PLATFORM_NACL \
|
||||
| BX_PLATFORM_ANDROID \
|
||||
| BX_PLATFORM_IOS \
|
||||
| BX_PLATFORM_QNX \
|
||||
)
|
||||
# endif // BGFX_CONFIG_RENDERER_OPENGLES2
|
||||
|
||||
|
|
|
@ -162,6 +162,7 @@ namespace bgfx
|
|||
}
|
||||
}
|
||||
|
||||
#if BGFX_CONFIG_RENDERER_OPENGL
|
||||
static void APIENTRY debugProcCb(GLenum _source, GLenum _type, GLuint _id, GLenum _severity, GLsizei /*_length*/, const GLchar* _message, GLvoid* /*_userParam*/)
|
||||
{
|
||||
BX_TRACE("src %d, type %d, id %d, severity %d, '%s'"
|
||||
|
@ -172,6 +173,7 @@ namespace bgfx
|
|||
, _message
|
||||
);
|
||||
}
|
||||
#endif // BGFX_CONFIG_RENDERER_OPENGL
|
||||
|
||||
struct RendererContext
|
||||
{
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
# include <GLES3/gl3ext.h>
|
||||
# endif // BGFX_CONFIG_RENDERER_
|
||||
|
||||
# if BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINDOWS
|
||||
# if BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINDOWS || BX_PLATFORM_QNX
|
||||
# undef BGFX_USE_EGL
|
||||
# define BGFX_USE_EGL 1
|
||||
# include "glcontext_egl.h"
|
||||
|
|
Loading…
Reference in New Issue