diff options
Diffstat (limited to '3rdparty/bgfx/include/bgfxplatform.c99.h')
-rw-r--r-- | 3rdparty/bgfx/include/bgfxplatform.c99.h | 57 |
1 files changed, 9 insertions, 48 deletions
diff --git a/3rdparty/bgfx/include/bgfxplatform.c99.h b/3rdparty/bgfx/include/bgfxplatform.c99.h index 5adff2435e1..31c65bd6fd0 100644 --- a/3rdparty/bgfx/include/bgfxplatform.c99.h +++ b/3rdparty/bgfx/include/bgfxplatform.c99.h @@ -31,55 +31,16 @@ typedef enum bgfx_render_frame */ BGFX_C_API bgfx_render_frame_t bgfx_render_frame(); -#if BX_PLATFORM_ANDROID -# include <android/native_window.h> - -/** - * - */ -BGFX_C_API void bgfx_android_set_window(ANativeWindow* _window); - -#elif BX_PLATFORM_IOS - -/** - * - */ -BGFX_C_API void bgfx_ios_set_eagl_layer(void* _layer); - -#elif BX_PLATFORM_FREEBSD || BX_PLATFORM_LINUX || BX_PLATFORM_RPI -# include <X11/Xlib.h> - -/** - * - */ -BGFX_C_API void bgfx_x11_set_display_window(Display* _display, Window _window); - -#elif BX_PLATFORM_NACL -# include <ppapi/c/ppb_graphics_3d.h> -# include <ppapi/c/ppb_instance.h> - -typedef void (*bgfx_post_swap_buffers_fn)(uint32_t _width, uint32_t _height); - -/** - * - */ -BGFX_C_API bool bgfx_nacl_set_interfaces(PP_Instance, const PPB_Instance*, const PPB_Graphics3D*, bgfx_post_swap_buffers_fn); - -#elif BX_PLATFORM_OSX - -/** - * - */ -BGFX_C_API void bgfx_osx_set_ns_window(void* _window); - -#elif BX_PLATFORM_WINDOWS -# include <windows.h> +typedef struct bgfx_platform_data +{ + void* ndt; + void* nwh; + void* context; + void* backBuffer; + void* backBufferDS; -/** - * - */ -BGFX_C_API void bgfx_win_set_hwnd(HWND _window); +} bgfx_platform_data_t; -#endif // BX_PLATFORM_ +BGFX_C_API void bgfx_set_platform_data(bgfx_platform_data_t* _pd); #endif // BGFX_PLATFORM_C99_H_HEADER_GUARD |