mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Removed use of memset from header file.
This commit is contained in:
parent
db59a9d44d
commit
143628442c
1 changed files with 24 additions and 15 deletions
|
@ -52,8 +52,10 @@ namespace bgfx
|
|||
inline void androidSetWindow(::ANativeWindow* _window)
|
||||
{
|
||||
PlatformData pd;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.nwh = _window;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = NULL;
|
||||
pd.backbuffer = NULL;
|
||||
setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
@ -66,8 +68,10 @@ namespace bgfx
|
|||
inline void iosSetEaglLayer(void* _window)
|
||||
{
|
||||
PlatformData pd;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.nwh = _window;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = NULL;
|
||||
pd.backbuffer = NULL;
|
||||
setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
@ -81,10 +85,10 @@ namespace bgfx
|
|||
inline void x11SetDisplayWindow(void* _display, uint32_t _window, void* _glx = NULL)
|
||||
{
|
||||
PlatformData pd;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.ndt = _display;
|
||||
pd.nwh = (void*)(uintptr_t)_window;
|
||||
pd.context = _glx;
|
||||
pd.ndt = _display;
|
||||
pd.nwh = (void*)(uintptr_t)_window;
|
||||
pd.context = _glx;
|
||||
pd.backbuffer = NULL;
|
||||
setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
@ -110,9 +114,10 @@ namespace bgfx
|
|||
inline void osxSetNSWindow(void* _window, void* _nsgl = NULL)
|
||||
{
|
||||
PlatformData pd;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.nwh = _window;
|
||||
pd.context = _nsgl;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = _nsgl;
|
||||
pd.backbuffer = NULL;
|
||||
setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
@ -127,8 +132,10 @@ namespace bgfx
|
|||
inline void winSetHwnd(::HWND _window)
|
||||
{
|
||||
PlatformData pd;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.nwh = _window;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = NULL;
|
||||
pd.backbuffer = NULL;
|
||||
setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
@ -143,8 +150,10 @@ namespace bgfx
|
|||
inline void winrtSetWindow(::IUnknown* _window)
|
||||
{
|
||||
PlatformData pd;
|
||||
memset(&pd, 0, sizeof(pd) );
|
||||
pd.nwh = _window;
|
||||
pd.ndt = NULL;
|
||||
pd.nwh = _window;
|
||||
pd.context = NULL;
|
||||
pd.backbuffer = NULL;
|
||||
setPlatformData(pd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue