123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- #ifndef _SDL_system_h
- #define _SDL_system_h
- #include "SDL_stdinc.h"
- #include "SDL_keyboard.h"
- #include "SDL_render.h"
- #include "SDL_video.h"
- #include "begin_code.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef __WIN32__
- extern DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex( int displayIndex );
- typedef struct IDirect3DDevice9 IDirect3DDevice9;
- extern DECLSPEC IDirect3DDevice9* SDLCALL SDL_RenderGetD3D9Device(SDL_Renderer * renderer);
- extern DECLSPEC void SDLCALL SDL_DXGIGetOutputInfo( int displayIndex, int *adapterIndex, int *outputIndex );
- #endif
- #if defined(__IPHONEOS__) && __IPHONEOS__
- extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
- extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
- #endif
- #if defined(__ANDROID__) && __ANDROID__
- extern DECLSPEC void * SDLCALL SDL_AndroidGetJNIEnv();
- extern DECLSPEC void * SDLCALL SDL_AndroidGetActivity();
- #define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01
- #define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02
- extern DECLSPEC const char * SDLCALL SDL_AndroidGetInternalStoragePath();
- extern DECLSPEC int SDLCALL SDL_AndroidGetExternalStorageState();
- extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath();
- #endif
- #if defined(__WINRT__) && __WINRT__
- typedef enum
- {
-
- SDL_WINRT_PATH_INSTALLED_LOCATION,
-
- SDL_WINRT_PATH_LOCAL_FOLDER,
-
- SDL_WINRT_PATH_ROAMING_FOLDER,
-
- SDL_WINRT_PATH_TEMP_FOLDER
- } SDL_WinRT_Path;
- extern DECLSPEC const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path pathType);
- extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #include "close_code.h"
- #endif
|