Windows GDK Support (#5830)
* Added GDK * Simplfied checks in SDL_config_wingdk.h * Added testgdk sample * Added GDK readme * Fixed error in merge of SDL_windows.h * Additional GDK fixes * OpenWatcom should not export _SDL_GDKGetTaskQueue * Formatting fixes * Moved initialization code into SDL_GDKRunApp
This commit is contained in:
parent
314bb5a1ed
commit
3b191580c3
68 changed files with 4150 additions and 93 deletions
|
@ -672,7 +672,7 @@ done:
|
|||
return result;
|
||||
}
|
||||
|
||||
#ifdef __WIN32__
|
||||
#if defined(__WIN32__) || defined(__WINGDK__)
|
||||
|
||||
static DXGI_MODE_ROTATION
|
||||
D3D11_GetCurrentRotation()
|
||||
|
@ -681,7 +681,7 @@ D3D11_GetCurrentRotation()
|
|||
return DXGI_MODE_ROTATION_IDENTITY;
|
||||
}
|
||||
|
||||
#endif /* __WIN32__ */
|
||||
#endif /* defined(__WIN32__) || defined(__WINGDK__) */
|
||||
|
||||
static BOOL
|
||||
D3D11_IsDisplayRotated90Degrees(DXGI_MODE_ROTATION rotation)
|
||||
|
@ -827,7 +827,7 @@ D3D11_CreateSwapChain(SDL_Renderer * renderer, int w, int h)
|
|||
goto done;
|
||||
#endif
|
||||
} else {
|
||||
#ifdef __WIN32__
|
||||
#if defined(__WIN32__) || defined(__WINGDK__)
|
||||
SDL_SysWMinfo windowinfo;
|
||||
SDL_VERSION(&windowinfo.version);
|
||||
SDL_GetWindowWMInfo(renderer->window, &windowinfo);
|
||||
|
@ -849,7 +849,7 @@ D3D11_CreateSwapChain(SDL_Renderer * renderer, int w, int h)
|
|||
#else
|
||||
SDL_SetError(__FUNCTION__", Unable to find something to attach a swap chain to");
|
||||
goto done;
|
||||
#endif /* ifdef __WIN32__ / else */
|
||||
#endif /* defined(__WIN32__) || defined(__WINGDK__) / else */
|
||||
}
|
||||
data->swapEffect = swapChainDesc.SwapEffect;
|
||||
|
||||
|
@ -2473,7 +2473,7 @@ SDL_RenderDriver D3D11_RenderDriver = {
|
|||
|
||||
#endif /* SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED */
|
||||
|
||||
#ifdef __WIN32__
|
||||
#if defined(__WIN32__) || defined(__WINGDK__)
|
||||
/* This function needs to always exist on Windows, for the Dynamic API. */
|
||||
ID3D11Device *
|
||||
SDL_RenderGetD3D11Device(SDL_Renderer * renderer)
|
||||
|
@ -2497,6 +2497,6 @@ SDL_RenderGetD3D11Device(SDL_Renderer * renderer)
|
|||
|
||||
return device;
|
||||
}
|
||||
#endif /* __WIN32__ */
|
||||
#endif /* defined(__WIN32__) || defined(__WINGDK__) */
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue