World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Определения типов | |
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
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
typedef struct IDirect3DDevice9 IDirect3DDevice9 |
См. определение в файле SDL_system.h строка 60
enum SDL_WinRT_Path |
WinRT / Windows Phone path types.
См. определение в файле SDL_system.h строка 209
WinRT Device Family.
См. определение в файле SDL_system.h строка 233
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.
This adapter index can be passed to IDirect3D9::CreateDevice and controls on which monitor a full screen application will appear.
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.
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.
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(*)(void *) | callback, | ||
void * | callbackParam | ||
) |
Get the JNI environment for the current thread.
This returns JNIEnv*, but the prototype is void* so we don't need jni.h
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)
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
Return true if the application is running on Android TV.
Return true if the application is running on a Chromebook.
Return true is the application is running on a Samsung DeX docking station.
Trigger the Android system back button behavior.
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.
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.
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.
const DECLSPEC wchar_t* SDLCALL SDL_WinRTGetFSPathUNICODE | ( | SDL_WinRT_Path | pathType | ) |
Retrieves a WinRT defined path on the local file system.
pathType | The type of path to retrieve. |
const DECLSPEC char* SDLCALL SDL_WinRTGetFSPathUTF8 | ( | SDL_WinRT_Path | pathType | ) |
Retrieves a WinRT defined path on the local file system.
pathType | The type of path to retrieve. |
DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily | ( | ) |
Detects the device family of WinRT plattform on runtime.