World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл SDL_system.h

См. исходные тексты.

Определения типов

typedef void(SDLCALL * 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() Подробнее...
 
typedef struct IDirect3DDevice9 IDirect3DDevice9
 

Перечисления

enum  SDL_WinRT_Path { SDL_WINRT_PATH_INSTALLED_LOCATION, SDL_WINRT_PATH_LOCAL_FOLDER, SDL_WINRT_PATH_ROAMING_FOLDER, SDL_WINRT_PATH_TEMP_FOLDER }
 WinRT / Windows Phone path types. Подробнее...
 
enum  SDL_WinRT_DeviceFamily { SDL_WINRT_DEVICEFAMILY_UNKNOWN, SDL_WINRT_DEVICEFAMILY_DESKTOP, SDL_WINRT_DEVICEFAMILY_MOBILE, SDL_WINRT_DEVICEFAMILY_XBOX }
 WinRT Device Family. Подробнее...
 

Функции

DECLSPEC void SDLCALL SDL_SetWindowsMessageHook (SDL_WindowsMessageHook callback, void *userdata)
 
DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex (int displayIndex)
 Returns the D3D9 adapter index that matches the specified display index. Подробнее...
 
DECLSPEC IDirect3DDevice9 *SDLCALL SDL_RenderGetD3D9Device (SDL_Renderer *renderer)
 Returns the D3D device associated with a renderer, or NULL if it's not a D3D renderer. Подробнее...
 
DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo (int displayIndex, int *adapterIndex, int *outputIndex)
 Returns the DXGI Adapter and Output indices for the specified display index. Подробнее...
 
DECLSPEC int SDLCALL SDL_LinuxSetThreadPriority (Sint64 threadID, int priority)
 Sets the UNIX nice value for a thread, using setpriority() if possible, and RealtimeKit if available. Подробнее...
 
DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback (SDL_Window *window, int interval, void(*callback)(void *), void *callbackParam)
 
DECLSPEC void SDLCALL SDL_iPhoneSetEventPump (SDL_bool enabled)
 
DECLSPEC void *SDLCALL SDL_AndroidGetJNIEnv (void)
 Get the JNI environment for the current thread. Подробнее...
 
DECLSPEC void *SDLCALL SDL_AndroidGetActivity (void)
 Get the SDL Activity object for the application. Подробнее...
 
DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion (void)
 Return API level of the current device. Подробнее...
 
DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV (void)
 Return true if the application is running on Android TV. Подробнее...
 
DECLSPEC SDL_bool SDLCALL SDL_IsChromebook (void)
 Return true if the application is running on a Chromebook. Подробнее...
 
DECLSPEC SDL_bool SDLCALL SDL_IsDeXMode (void)
 Return true is the application is running on a Samsung DeX docking station. Подробнее...
 
DECLSPEC void SDLCALL SDL_AndroidBackButton (void)
 Trigger the Android system back button behavior. Подробнее...
 
const DECLSPEC char *SDLCALL SDL_AndroidGetInternalStoragePath (void)
 Get the path used for internal storage for this application. Подробнее...
 
DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState (void)
 Get the current state of external storage, a bitmask of these values: SDL_ANDROID_EXTERNAL_STORAGE_READ SDL_ANDROID_EXTERNAL_STORAGE_WRITE. Подробнее...
 
const DECLSPEC char *SDLCALL SDL_AndroidGetExternalStoragePath (void)
 Get the path used for external storage for this application. Подробнее...
 
const DECLSPEC wchar_t *SDLCALL SDL_WinRTGetFSPathUNICODE (SDL_WinRT_Path pathType)
 Retrieves a WinRT defined path on the local file system. Подробнее...
 
const DECLSPEC char *SDLCALL SDL_WinRTGetFSPathUTF8 (SDL_WinRT_Path pathType)
 Retrieves a WinRT defined path on the local file system. Подробнее...
 
DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily ()
 Detects the device family of WinRT plattform on runtime. Подробнее...
 
DECLSPEC SDL_bool SDLCALL SDL_IsTablet (void)
 Return true if the current device is a tablet. Подробнее...
 
DECLSPEC void SDLCALL SDL_OnApplicationWillTerminate (void)
 
DECLSPEC void SDLCALL SDL_OnApplicationDidReceiveMemoryWarning (void)
 
DECLSPEC void SDLCALL SDL_OnApplicationWillResignActive (void)
 
DECLSPEC void SDLCALL SDL_OnApplicationDidEnterBackground (void)
 
DECLSPEC void SDLCALL SDL_OnApplicationWillEnterForeground (void)
 
DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive (void)
 
DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation (void)
 

Подробное описание

Include file for platform specific SDL API functions

См. определение в файле SDL_system.h

Типы

◆ SDL_WindowsMessageHook

typedef void(SDLCALL * 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()

См. определение в файле SDL_system.h строка 49

◆ IDirect3DDevice9

См. определение в файле SDL_system.h строка 60

Перечисления

◆ SDL_WinRT_Path

WinRT / Windows Phone path types.

Элементы перечислений
SDL_WINRT_PATH_INSTALLED_LOCATION 

The installed app's root directory. Files here are likely to be read-only.

SDL_WINRT_PATH_LOCAL_FOLDER 

The app's local data store. Files may be written here.

SDL_WINRT_PATH_ROAMING_FOLDER 

The app's roaming data store. Unsupported on Windows Phone. Files written here may be copied to other machines via a network connection.

SDL_WINRT_PATH_TEMP_FOLDER 

The app's temporary data store. Unsupported on Windows Phone. Files written here may be deleted at any time.

См. определение в файле SDL_system.h строка 209

◆ SDL_WinRT_DeviceFamily

WinRT Device Family.

Элементы перечислений
SDL_WINRT_DEVICEFAMILY_UNKNOWN 

Unknown family

SDL_WINRT_DEVICEFAMILY_DESKTOP 

Desktop family.

SDL_WINRT_DEVICEFAMILY_MOBILE 

Mobile family (for example smartphone)

SDL_WINRT_DEVICEFAMILY_XBOX 

XBox family.

См. определение в файле SDL_system.h строка 233

Функции

◆ SDL_SetWindowsMessageHook()

DECLSPEC void SDLCALL SDL_SetWindowsMessageHook ( SDL_WindowsMessageHook  callback,
void userdata 
)

◆ SDL_Direct3D9GetAdapterIndex()

DECLSPEC int SDLCALL 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.

◆ SDL_RenderGetD3D9Device()

DECLSPEC IDirect3DDevice9* SDLCALL 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.

◆ SDL_DXGIGetOutputInfo()

DECLSPEC SDL_bool SDLCALL 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.

◆ SDL_LinuxSetThreadPriority()

DECLSPEC int SDLCALL SDL_LinuxSetThreadPriority ( Sint64  threadID,
int  priority 
)

Sets the UNIX nice value for a thread, using setpriority() if possible, and RealtimeKit if available.

Возвращает
0 on success, or -1 on error.

◆ SDL_iPhoneSetAnimationCallback()

DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback ( SDL_Window window,
int  interval,
void(*)(void *)  callback,
void callbackParam 
)

◆ SDL_iPhoneSetEventPump()

DECLSPEC void SDLCALL SDL_iPhoneSetEventPump ( SDL_bool  enabled)

◆ SDL_AndroidGetJNIEnv()

DECLSPEC void* SDLCALL SDL_AndroidGetJNIEnv ( void  )

Get the JNI environment for the current thread.

This returns JNIEnv*, but the prototype is void* so we don't need jni.h

◆ SDL_AndroidGetActivity()

DECLSPEC void* SDLCALL SDL_AndroidGetActivity ( void  )

Get the SDL Activity object for the application.

This returns jobject, but the prototype is void* so we don't need jni.h The jobject returned by SDL_AndroidGetActivity is a local reference. It is the caller's responsibility to properly release it (using env->Push/PopLocalFrame or manually with env->DeleteLocalRef)

◆ SDL_GetAndroidSDKVersion()

DECLSPEC int SDLCALL SDL_GetAndroidSDKVersion ( void  )

Return API level of the current device.

API level 29: Android 10 API level 28: Android 9 API level 27: Android 8.1 API level 26: Android 8.0 API level 25: Android 7.1 API level 24: Android 7.0 API level 23: Android 6.0 API level 22: Android 5.1 API level 21: Android 5.0 API level 20: Android 4.4W API level 19: Android 4.4 API level 18: Android 4.3 API level 17: Android 4.2 API level 16: Android 4.1 API level 15: Android 4.0.3 API level 14: Android 4.0 API level 13: Android 3.2 API level 12: Android 3.1 API level 11: Android 3.0 API level 10: Android 2.3.3

◆ SDL_IsAndroidTV()

DECLSPEC SDL_bool SDLCALL SDL_IsAndroidTV ( void  )

Return true if the application is running on Android TV.

◆ SDL_IsChromebook()

DECLSPEC SDL_bool SDLCALL SDL_IsChromebook ( void  )

Return true if the application is running on a Chromebook.

◆ SDL_IsDeXMode()

DECLSPEC SDL_bool SDLCALL SDL_IsDeXMode ( void  )

Return true is the application is running on a Samsung DeX docking station.

◆ SDL_AndroidBackButton()

DECLSPEC void SDLCALL SDL_AndroidBackButton ( void  )

Trigger the Android system back button behavior.

◆ SDL_AndroidGetInternalStoragePath()

const DECLSPEC char* SDLCALL SDL_AndroidGetInternalStoragePath ( void  )

Get the path used for internal storage for this application.

This path is unique to your application and cannot be written to by other applications.

◆ SDL_AndroidGetExternalStorageState()

DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState ( void  )

Get the current state of external storage, a bitmask of these values: SDL_ANDROID_EXTERNAL_STORAGE_READ SDL_ANDROID_EXTERNAL_STORAGE_WRITE.

If external storage is currently unavailable, this will return 0.

◆ SDL_AndroidGetExternalStoragePath()

const DECLSPEC char* SDLCALL SDL_AndroidGetExternalStoragePath ( void  )

Get the path used for external storage for this application.

This path is unique to your application, but is public and can be written to by other applications.

◆ SDL_WinRTGetFSPathUNICODE()

const DECLSPEC wchar_t* SDLCALL SDL_WinRTGetFSPathUNICODE ( SDL_WinRT_Path  pathType)

Retrieves a WinRT defined path on the local file system.

Заметки
Documentation on most app-specific path types on WinRT can be found on MSDN, at the URL: http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
Аргументы
pathTypeThe type of path to retrieve.
Возвращает
A UCS-2 string (16-bit, wide-char) containing the path, or NULL if the path is not available for any reason. Not all paths are available on all versions of Windows. This is especially true on Windows Phone. Check the documentation for the given SDL_WinRT_Path for more information on which path types are supported where.

◆ SDL_WinRTGetFSPathUTF8()

const DECLSPEC char* SDLCALL SDL_WinRTGetFSPathUTF8 ( SDL_WinRT_Path  pathType)

Retrieves a WinRT defined path on the local file system.

Заметки
Documentation on most app-specific path types on WinRT can be found on MSDN, at the URL: http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx
Аргументы
pathTypeThe type of path to retrieve.
Возвращает
A UTF-8 string (8-bit, multi-byte) containing the path, or NULL if the path is not available for any reason. Not all paths are available on all versions of Windows. This is especially true on Windows Phone. Check the documentation for the given SDL_WinRT_Path for more information on which path types are supported where.

◆ SDL_WinRTGetDeviceFamily()

DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily ( )

Detects the device family of WinRT plattform on runtime.

Возвращает
Device family

◆ SDL_IsTablet()

DECLSPEC SDL_bool SDLCALL SDL_IsTablet ( void  )

Return true if the current device is a tablet.

◆ SDL_OnApplicationWillTerminate()

DECLSPEC void SDLCALL SDL_OnApplicationWillTerminate ( void  )

◆ SDL_OnApplicationDidReceiveMemoryWarning()

DECLSPEC void SDLCALL SDL_OnApplicationDidReceiveMemoryWarning ( void  )

◆ SDL_OnApplicationWillResignActive()

DECLSPEC void SDLCALL SDL_OnApplicationWillResignActive ( void  )

◆ SDL_OnApplicationDidEnterBackground()

DECLSPEC void SDLCALL SDL_OnApplicationDidEnterBackground ( void  )

◆ SDL_OnApplicationWillEnterForeground()

DECLSPEC void SDLCALL SDL_OnApplicationWillEnterForeground ( void  )

◆ SDL_OnApplicationDidBecomeActive()

DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive ( void  )

◆ SDL_OnApplicationDidChangeStatusBarOrientation()

DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation ( void  )
SDL_WINRT_DEVICEFAMILY_XBOX
@ SDL_WINRT_DEVICEFAMILY_XBOX
XBox family.
Definition: SDL_system.h:245
SDL_WINRT_DEVICEFAMILY_DESKTOP
@ SDL_WINRT_DEVICEFAMILY_DESKTOP
Desktop family.
Definition: SDL_system.h:239
SDL_WINRT_PATH_INSTALLED_LOCATION
@ SDL_WINRT_PATH_INSTALLED_LOCATION
The installed app's root directory. Files here are likely to be read-only.
Definition: SDL_system.h:213
SDL_WinRT_DeviceFamily
SDL_WinRT_DeviceFamily
WinRT Device Family.
Definition: SDL_system.h:233
SDL_WINRT_PATH_TEMP_FOLDER
@ SDL_WINRT_PATH_TEMP_FOLDER
The app's temporary data store. Unsupported on Windows Phone. Files written here may be deleted at an...
Definition: SDL_system.h:226
SDL_WinRT_Path
SDL_WinRT_Path
WinRT / Windows Phone path types.
Definition: SDL_system.h:209
SDL_WINRT_DEVICEFAMILY_UNKNOWN
@ SDL_WINRT_DEVICEFAMILY_UNKNOWN
Unknown family
Definition: SDL_system.h:236
SDL_WINRT_PATH_LOCAL_FOLDER
@ SDL_WINRT_PATH_LOCAL_FOLDER
The app's local data store. Files may be written here.
Definition: SDL_system.h:216
SDL_WINRT_PATH_ROAMING_FOLDER
@ SDL_WINRT_PATH_ROAMING_FOLDER
The app's roaming data store. Unsupported on Windows Phone. Files written here may be copied to other...
Definition: SDL_system.h:222
SDL_WINRT_DEVICEFAMILY_MOBILE
@ SDL_WINRT_DEVICEFAMILY_MOBILE
Mobile family (for example smartphone)
Definition: SDL_system.h:242