mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-31 05:05:34 +00:00
Removed bgfx::setPlatformData usage from entry example harness.
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
|
||||
#if ENTRY_CONFIG_USE_NATIVE && BX_PLATFORM_ANDROID
|
||||
|
||||
#include <bgfx/platform.h>
|
||||
|
||||
#include <bx/thread.h>
|
||||
#include <bx/file.h>
|
||||
|
||||
@@ -29,18 +27,6 @@ extern "C"
|
||||
|
||||
namespace entry
|
||||
{
|
||||
///
|
||||
inline void androidSetWindow(::ANativeWindow* _window)
|
||||
{
|
||||
bgfx::PlatformData pd;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = NULL;
|
||||
pd.backBuffer = NULL;
|
||||
pd.backBufferDS = NULL;
|
||||
bgfx::setPlatformData(pd);
|
||||
}
|
||||
|
||||
struct GamepadRemap
|
||||
{
|
||||
uint16_t m_keyCode;
|
||||
@@ -233,7 +219,6 @@ namespace entry
|
||||
if (m_window != m_app->window)
|
||||
{
|
||||
m_window = m_app->window;
|
||||
androidSetWindow(m_window);
|
||||
|
||||
int32_t width = ANativeWindow_getWidth(m_window);
|
||||
int32_t height = ANativeWindow_getHeight(m_window);
|
||||
@@ -550,6 +535,21 @@ namespace entry
|
||||
BX_UNUSED(_handle, _lock);
|
||||
}
|
||||
|
||||
void* getNativeWindowHandle(WindowHandle _handle)
|
||||
{
|
||||
if (kDefaultWindowHandle.idx == _handle.idx)
|
||||
{
|
||||
return s_ctx.m_window;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void* getNativeDisplayHandle()
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int32_t MainThreadEntry::threadFunc(bx::Thread* _thread, void* _userData)
|
||||
{
|
||||
BX_UNUSED(_thread);
|
||||
|
||||
Reference in New Issue
Block a user