SDL
2.0
|
#include "SDL_stdinc.h"
#include "SDL_keyboard.h"
#include "SDL_render.h"
#include "SDL_video.h"
#include "begin_code.h"
#include "close_code.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | SDL_WindowsMessageHook) (void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam) |
Set a function that is called for every windows message, before TranslateMessage() More... | |
typedef struct IDirect3DDevice9 | IDirect3DDevice9 |
Functions | |
void | SDL_SetWindowsMessageHook (SDL_WindowsMessageHook callback, void *userdata) |
int | SDL_Direct3D9GetAdapterIndex (int displayIndex) |
Returns the D3D9 adapter index that matches the specified display index. More... | |
IDirect3DDevice9 * | SDL_RenderGetD3D9Device (SDL_Renderer *renderer) |
Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer. More... | |
SDL_bool | SDL_DXGIGetOutputInfo (int displayIndex, int *adapterIndex, int *outputIndex) |
Returns the DXGI Adapter and Output indices for the specified display index. More... | |
SDL_bool | SDL_IsTablet (void) |
Return true if the current device is a tablet. More... | |
void | SDL_OnApplicationWillTerminate (void) |
void | SDL_OnApplicationDidReceiveMemoryWarning (void) |
void | SDL_OnApplicationWillResignActive (void) |
void | SDL_OnApplicationDidEnterBackground (void) |
void | SDL_OnApplicationWillEnterForeground (void) |
void | SDL_OnApplicationDidBecomeActive (void) |
Include file for platform specific SDL API functions
Definition in file SDL_system.h.
typedef struct IDirect3DDevice9 IDirect3DDevice9 |
Definition at line 58 of file SDL_system.h.
typedef void( * SDL_WindowsMessageHook) (void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam) |
Set a function that is called for every windows message, before TranslateMessage()
Definition at line 49 of file SDL_system.h.
int SDL_Direct3D9GetAdapterIndex | ( | int | displayIndex | ) |
Returns the D3D9 adapter index that matches the specified display index.
This adapter index can be passed to IDirect3D9::CreateDevice and controls on which monitor a full screen application will appear.
Referenced by SDLTest_CommonInit().
SDL_bool SDL_DXGIGetOutputInfo | ( | int | displayIndex, |
int * | adapterIndex, | ||
int * | outputIndex | ||
) |
Returns the DXGI Adapter and Output indices for the specified display index.
These can be passed to EnumAdapters and EnumOutputs respectively to get the objects required to create a DX10 or DX11 device and swap chain.
Referenced by SDLTest_CommonInit().
Return true if the current device is a tablet.
Definition at line 519 of file SDL.c.
References SDL_FALSE, and SDL_IsAndroidTablet().
Definition at line 803 of file SDL_dynapi_procs.h.
References _this, NULL, SDL_APP_DIDENTERFOREGROUND, SDL_SendAppEvent(), SDL_SendWindowEvent(), SDL_WINDOWEVENT_FOCUS_GAINED, SDL_WINDOWEVENT_RESTORED, and SDL_VideoDevice::windows.
Definition at line 801 of file SDL_dynapi_procs.h.
References SDL_APP_DIDENTERBACKGROUND, and SDL_SendAppEvent().
Definition at line 799 of file SDL_dynapi_procs.h.
References SDL_APP_LOWMEMORY, and SDL_SendAppEvent().
Definition at line 4087 of file SDL_video.c.
References SDL_APP_WILLENTERFOREGROUND, and SDL_SendAppEvent().
Definition at line 4070 of file SDL_video.c.
References _this, NULL, SDL_APP_WILLENTERBACKGROUND, SDL_SendAppEvent(), SDL_SendWindowEvent(), SDL_WINDOWEVENT_FOCUS_LOST, SDL_WINDOWEVENT_MINIMIZED, and SDL_VideoDevice::windows.
Definition at line 4060 of file SDL_video.c.
References SDL_APP_TERMINATING, and SDL_SendAppEvent().
IDirect3DDevice9* SDL_RenderGetD3D9Device | ( | SDL_Renderer * | renderer | ) |
Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer.
Once you are done using the device, you should release it to avoid a resource leak.
void SDL_SetWindowsMessageHook | ( | SDL_WindowsMessageHook | callback, |
void * | userdata | ||
) |