| 1 |
/* |
| 2 |
|
| 3 |
Boost Software License - Version 1.0 - August 17th,2003 |
| 4 |
|
| 5 |
Permission is hereby granted,free of charge,to any person or organization |
| 6 |
obtaining a copy of the software and accompanying documentation covered by |
| 7 |
this license (the "Software") to use,reproduce,display,distribute, |
| 8 |
execute,and transmit the Software,and to prepare derivative works of the |
| 9 |
Software,and to permit third-parties to whom the Software is furnished to |
| 10 |
do so,all subject to the following: |
| 11 |
|
| 12 |
The copyright notices in the Software and this entire statement,including |
| 13 |
the above license grant,this restriction and the following disclaimer, |
| 14 |
must be included in all copies of the Software,in whole or in part,and |
| 15 |
all derivative works of the Software,unless such copies or derivative |
| 16 |
works are solely in the form of machine-executable object code generated by |
| 17 |
a source language processor. |
| 18 |
|
| 19 |
THE SOFTWARE IS PROVIDED "AS IS",WITHOUT WARRANTY OF ANY KIND,EXPRESS OR |
| 20 |
IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 |
FITNESS FOR A PARTICULAR PURPOSE,TITLE AND NON-INFRINGEMENT. IN NO EVENT |
| 22 |
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE |
| 23 |
FOR ANY DAMAGES OR OTHER LIABILITY,WHETHER IN CONTRACT,TORT OR OTHERWISE, |
| 24 |
ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
| 25 |
DEALINGS IN THE SOFTWARE. |
| 26 |
|
| 27 |
*/ |
| 28 |
module derelict.sdl2.internal.sdl_static; |
| 29 |
|
| 30 |
import core.stdc.stdarg, |
| 31 |
core.stdc.stdio; |
| 32 |
import derelict.util.system; |
| 33 |
import derelict.sdl2.internal.sdl_types; |
| 34 |
|
| 35 |
extern(C) @nogc nothrow { |
| 36 |
int SDL_Init(Uint32); |
| 37 |
int SDL_InitSubSystem(Uint32); |
| 38 |
void SDL_QuitSubSystem(Uint32); |
| 39 |
Uint32 SDL_WasInit(Uint32); |
| 40 |
void SDL_Quit(); |
| 41 |
void SDL_free(void* mem); |
| 42 |
void SDL_SetAssertionHandler(SDL_AssertionHandler,void*); |
| 43 |
SDL_AssertionHandler SDL_GetDefaultAssertionHandler(); |
| 44 |
SDL_AssertionHandler SDL_GetAssertionHandler(void**); |
| 45 |
const(SDL_assert_data)* SDL_GetAssertionReport(); |
| 46 |
void SDL_ResetAssertionReport(); |
| 47 |
int SDL_GetNumAudioDrivers(); |
| 48 |
const(char)* SDL_GetAudioDriver(int); |
| 49 |
int SDL_AudioInit(const(char)*); |
| 50 |
void SDL_AudioQuit(); |
| 51 |
const(char)* SDL_GetCurrentAudioDriver(); |
| 52 |
int SDL_OpenAudio(SDL_AudioSpec*,SDL_AudioSpec*); |
| 53 |
int SDL_GetNumAudioDevices(int); |
| 54 |
const(char)* SDL_GetAudioDeviceName(int,int); |
| 55 |
SDL_AudioDeviceID SDL_OpenAudioDevice(const(char)*,int,const(SDL_AudioSpec)*,SDL_AudioSpec*,int); |
| 56 |
SDL_AudioStatus SDL_GetAudioStatus(); |
| 57 |
SDL_AudioStatus SDL_GetAudioDeviceStatus(SDL_AudioDeviceID); |
| 58 |
void SDL_PauseAudio(int); |
| 59 |
void SDL_PauseAudioDevice(SDL_AudioDeviceID,int); |
| 60 |
SDL_AudioSpec* SDL_LoadWAV_RW(SDL_RWops*,int,SDL_AudioSpec*,Uint8**,Uint32*); |
| 61 |
void SDL_FreeWAV(Uint8*); |
| 62 |
int SDL_BuildAudioCVT(SDL_AudioCVT*,SDL_AudioFormat,Uint8,int,SDL_AudioFormat,Uint8,int); |
| 63 |
int SDL_ConvertAudio(SDL_AudioCVT*); |
| 64 |
void SDL_MixAudio(Uint8*,const(Uint8)*,Uint32,int); |
| 65 |
void SDL_MixAudioFormat(Uint8*,const(Uint8)*,SDL_AudioFormat,Uint32,int); |
| 66 |
int SDL_QueueAudio(SDL_AudioDeviceID,const(void)*,Uint32); |
| 67 |
Uint32 SDL_DequeueAudio(SDL_AudioDeviceID,void*,Uint32); |
| 68 |
int SDL_GetQueuedAudioSize(SDL_AudioDeviceID); |
| 69 |
int SDL_ClearQueuedAudio(SDL_AudioDeviceID); |
| 70 |
void SDL_LockAudio(); |
| 71 |
void SDL_LockAudioDevice(SDL_AudioDeviceID); |
| 72 |
void SDL_UnlockAudio(); |
| 73 |
void SDL_UnlockAudioDevice(SDL_AudioDeviceID); |
| 74 |
void SDL_CloseAudio(); |
| 75 |
void SDL_CloseAudioDevice(SDL_AudioDeviceID); |
| 76 |
int SDL_AudioDeviceConnected(SDL_AudioDeviceID); |
| 77 |
int SDL_SetClipboardText(const(char)*); |
| 78 |
char* SDL_GetClipboardText(); |
| 79 |
SDL_bool SDL_HasClipboardText(); |
| 80 |
int SDL_GetCPUCount(); |
| 81 |
int SDL_GetCPUCacheLineSize(); |
| 82 |
SDL_bool SDL_HasRDTSC(); |
| 83 |
SDL_bool SDL_HasAltiVec(); |
| 84 |
SDL_bool SDL_HasMMX(); |
| 85 |
SDL_bool SDL_Has3DNow(); |
| 86 |
SDL_bool SDL_HasSSE(); |
| 87 |
SDL_bool SDL_HasSSE2(); |
| 88 |
SDL_bool SDL_HasSSE3(); |
| 89 |
SDL_bool SDL_HasSSE41(); |
| 90 |
SDL_bool SDL_HasSSE42(); |
| 91 |
SDL_bool SDL_HasAVX(); |
| 92 |
SDL_bool SDL_HasAVX2(); |
| 93 |
int SDL_GetSystemRAM(); |
| 94 |
void SDL_SetError(const(char)*,...); |
| 95 |
const(char)* SDL_GetError(); |
| 96 |
void SDL_ClearError(); |
| 97 |
void SDL_PumpEvents(); |
| 98 |
int SDL_PeepEvents(SDL_Event*,int,SDL_eventaction,Uint32,Uint32); |
| 99 |
SDL_bool SDL_HasEvent(Uint32); |
| 100 |
SDL_bool SDL_HasEvents(Uint32,Uint32); |
| 101 |
void SDL_FlushEvent(Uint32); |
| 102 |
void SDL_FlushEvents(Uint32,Uint32); |
| 103 |
int SDL_PollEvent(SDL_Event*); |
| 104 |
int SDL_WaitEvent(SDL_Event*); |
| 105 |
int SDL_WaitEventTimeout(SDL_Event*,int); |
| 106 |
int SDL_PushEvent(SDL_Event*); |
| 107 |
void SDL_SetEventFilter(SDL_EventFilter,void*); |
| 108 |
SDL_bool SDL_GetEventFilter(SDL_EventFilter*,void**); |
| 109 |
void SDL_AddEventWatch(SDL_EventFilter,void*); |
| 110 |
void SDL_DelEventWatch(SDL_EventFilter,void*); |
| 111 |
void SDL_FilterEvents(SDL_EventFilter,void*); |
| 112 |
Uint8 SDL_EventState(Uint32,int); |
| 113 |
Uint32 SDL_RegisterEvents(int); |
| 114 |
char* SDL_GetBasePath(); |
| 115 |
char* SDL_GetPrefPath(const(char)* org,const(char)* app); |
| 116 |
int SDL_GameControllerAddMappingsFromRW(SDL_RWops*,int); |
| 117 |
int SDL_GameControllerAddMapping(const(char)*); |
| 118 |
char* SDL_GameControllerMappingForGUID(SDL_JoystickGUID); |
| 119 |
char* SDL_GameControllerMapping(SDL_GameController*); |
| 120 |
SDL_bool SDL_IsGameController(int); |
| 121 |
const(char)* SDL_GameControllerNameForIndex(int); |
| 122 |
SDL_GameController* SDL_GameControllerOpen(int); |
| 123 |
SDL_GameController* SDL_GameControllerFromInstanceID(SDL_JoystickID); |
| 124 |
const(char)* SDL_GameControllerName(SDL_GameController*); |
| 125 |
SDL_bool SDL_GameControllerGetAttached(SDL_GameController*); |
| 126 |
SDL_Joystick* SDL_GameControllerGetJoystick(SDL_GameController*); |
| 127 |
int SDL_GameControllerEventState(int); |
| 128 |
void SDL_GameControllerUpdate(); |
| 129 |
SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const(char)*); |
| 130 |
const(char)* SDL_GameControllerGetStringForAxis(SDL_GameControllerAxis); |
| 131 |
SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController*,SDL_GameControllerAxis); |
| 132 |
Sint16 SDL_GameControllerGetAxis(SDL_GameController*,SDL_GameControllerAxis); |
| 133 |
SDL_GameControllerButton SDL_GameControllerGetButtonFromString(const(char*)); |
| 134 |
const(char)* SDL_GameControllerGetStringForButton(SDL_GameControllerButton); |
| 135 |
SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController*,SDL_GameControllerButton); |
| 136 |
Uint8 SDL_GameControllerGetButton(SDL_GameController*,SDL_GameControllerButton); |
| 137 |
void SDL_GameControllerClose(SDL_GameController*); |
| 138 |
int SDL_RecordGesture(SDL_TouchID); |
| 139 |
int SDL_SaveAllDollarTemplates(SDL_RWops*); |
| 140 |
int SDL_SaveDollarTemplate(SDL_GestureID,SDL_RWops*); |
| 141 |
int SDL_LoadDollarTemplates(SDL_TouchID,SDL_RWops*); |
| 142 |
int SDL_NumHaptics(); |
| 143 |
const(char)* SDL_HapticName(int); |
| 144 |
SDL_Haptic* SDL_HapticOpen(int); |
| 145 |
int SDL_HapticOpened(int); |
| 146 |
int SDL_HapticIndex(SDL_Haptic*); |
| 147 |
int SDL_MouseIsHaptic(); |
| 148 |
SDL_Haptic* SDL_HapticOpenFromMouse(); |
| 149 |
int SDL_JoystickIsHaptic(SDL_Joystick*); |
| 150 |
SDL_Haptic* SDL_HapticOpenFromJoystick(SDL_Joystick*); |
| 151 |
int SDL_HapticClose(SDL_Haptic*); |
| 152 |
int SDL_HapticNumEffects(SDL_Haptic*); |
| 153 |
int SDL_HapticNumEffectsPlaying(SDL_Haptic*); |
| 154 |
uint SDL_HapticQuery(SDL_Haptic*); |
| 155 |
int SDL_HapticNumAxes(SDL_Haptic*); |
| 156 |
int SDL_HapticEffectSupported(SDL_Haptic*,SDL_HapticEffect*); |
| 157 |
int SDL_HapticNewEffect(SDL_Haptic*,SDL_HapticEffect*); |
| 158 |
int SDL_HapticUpdateEffect(SDL_Haptic*,int,SDL_HapticEffect*); |
| 159 |
int SDL_HapticRunEffect(SDL_Haptic*,int,Uint32); |
| 160 |
int SDL_HapticStopEffect(SDL_Haptic*,int); |
| 161 |
int SDL_HapticDestroyEffect(SDL_Haptic*,int); |
| 162 |
int SDL_HapticGetEffectStatus(SDL_Haptic*,int); |
| 163 |
int SDL_HapticSetGain(SDL_Haptic*,int); |
| 164 |
int SDL_HapticSetAutocenter(SDL_Haptic*,int); |
| 165 |
int SDL_HapticPause(SDL_Haptic*); |
| 166 |
int SDL_HapticUnpause(SDL_Haptic*); |
| 167 |
int SDL_HapticStopAll(SDL_Haptic*); |
| 168 |
int SDL_HapticRumbleSupported(SDL_Haptic*); |
| 169 |
int SDL_HapticRumbleInit(SDL_Haptic*); |
| 170 |
int SDL_HapticRumblePlay(SDL_Haptic*,float,Uint32); |
| 171 |
int SDL_HapticRumbleStop(SDL_Haptic*); |
| 172 |
SDL_bool SDL_SetHintWithPriority(const(char)*,const(char)*,SDL_HintPriority); |
| 173 |
SDL_bool SDL_SetHint(const(char)*,const(char)*); |
| 174 |
const(char)* SDL_GetHint(const(char)*); |
| 175 |
SDL_bool SDL_GetHintBoolean(const(char)*,SDL_bool); |
| 176 |
void SDL_AddHintCallback(const(char)*,SDL_HintCallback,void*); |
| 177 |
void SDL_DelHintCallback(const(char)*,SDL_HintCallback,void*); |
| 178 |
void SDL_ClearHints(); |
| 179 |
int SDL_NumJoysticks(); |
| 180 |
const(char)* SDL_JoystickNameForIndex(int); |
| 181 |
SDL_Joystick* SDL_JoystickOpen(int); |
| 182 |
SDL_Joystick* SDL_JoystickFromInstanceID(SDL_JoystickID); |
| 183 |
const(char)* SDL_JoystickName(SDL_Joystick*); |
| 184 |
SDL_JoystickGUID SDL_JoystickGetDeviceGUID(int); |
| 185 |
SDL_JoystickGUID SDL_JoystickGetGUID(SDL_Joystick*); |
| 186 |
char* SDL_JoystickGetGUIDString(SDL_JoystickGUID); |
| 187 |
SDL_JoystickGUID SDL_JoystickGetGUIDFromString(const(char)*); |
| 188 |
SDL_bool SDL_JoystickGetAttached(SDL_Joystick*); |
| 189 |
SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick*); |
| 190 |
int SDL_JoystickNumAxes(SDL_Joystick*); |
| 191 |
int SDL_JoystickNumBalls(SDL_Joystick*); |
| 192 |
int SDL_JoystickNumHats(SDL_Joystick*); |
| 193 |
int SDL_JoystickNumButtons(SDL_Joystick*); |
| 194 |
void SDL_JoystickUpdate(); |
| 195 |
int SDL_JoystickEventState(int); |
| 196 |
Sint16 SDL_JoystickGetAxis(SDL_Joystick*,int); |
| 197 |
Uint8 SDL_JoystickGetHat(SDL_Joystick*,int); |
| 198 |
int SDL_JoystickGetBall(SDL_Joystick*,int,int*,int*); |
| 199 |
Uint8 SDL_JoystickGetButton(SDL_Joystick*,int); |
| 200 |
void SDL_JoystickClose(SDL_Joystick*); |
| 201 |
SDL_JoystickPowerLevel SDL_JoystickCurrentPowerLevel(SDL_Joystick*); |
| 202 |
SDL_Window* SDL_GetKeyboardFocus(); |
| 203 |
Uint8* SDL_GetKeyboardState(int*); |
| 204 |
SDL_Keymod SDL_GetModState(); |
| 205 |
void SDL_SetModState(SDL_Keymod); |
| 206 |
SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode); |
| 207 |
SDL_Scancode SDL_GetScancodeFromKey(SDL_Keycode); |
| 208 |
const(char)* SDL_GetScancodeName(SDL_Scancode); |
| 209 |
SDL_Scancode SDL_GetScancodeFromName(const(char)*); |
| 210 |
const(char)* SDL_GetKeyName(SDL_Keycode); |
| 211 |
SDL_Keycode SDL_GetKeyFromName(const(char)*); |
| 212 |
void SDL_StartTextInput(); |
| 213 |
SDL_bool SDL_IsTextInputActive(); |
| 214 |
void SDL_StopTextInput(); |
| 215 |
void SDL_SetTextInputRect(SDL_Rect*); |
| 216 |
SDL_bool SDL_HasScreenKeyboardSupport(); |
| 217 |
SDL_bool SDL_IsScreenKeyboardShown(SDL_Window*); |
| 218 |
void* SDL_LoadObject(const(char)*); |
| 219 |
void* SDL_LoadFunction(void*,const(char*)); |
| 220 |
void SDL_UnloadObject(void*); |
| 221 |
void SDL_LogSetAllPriority(SDL_LogPriority); |
| 222 |
void SDL_LogSetPriority(int,SDL_LogPriority); |
| 223 |
SDL_LogPriority SDL_LogGetPriority(int); |
| 224 |
void SDL_LogResetPriorities(); |
| 225 |
void SDL_Log(const(char)*,...); |
| 226 |
void SDL_LogVerbose(int,const(char)*,...); |
| 227 |
void SDL_LogDebug(int,const(char)*,...); |
| 228 |
void SDL_LogInfo(int,const(char)*,...); |
| 229 |
void SDL_LogWarn(int,const(char)*,...); |
| 230 |
void SDL_LogError(int,const(char)*,...); |
| 231 |
void SDL_LogCritical(int,const(char)*,...); |
| 232 |
void SDL_LogMessage(int,SDL_LogPriority,const(char)*,...); |
| 233 |
void SDL_LogMessageV(int,SDL_LogPriority,const(char)*,va_list); |
| 234 |
void SDL_LogGetOutputFunction(SDL_LogOutputFunction,void**); |
| 235 |
void SDL_LogSetOutputFunction(SDL_LogOutputFunction,void*); |
| 236 |
int SDL_ShowMessageBox(const(SDL_MessageBoxData)*,int*); |
| 237 |
int SDL_ShowSimpleMessageBox(Uint32,const(char)*,const(char)*,SDL_Window*); |
| 238 |
SDL_Window* SDL_GetMouseFocus(); |
| 239 |
Uint32 SDL_GetMouseState(int*,int*); |
| 240 |
Uint32 SDL_GetGlobalMouseState(int*,int*); |
| 241 |
Uint32 SDL_GetRelativeMouseState(int*,int*); |
| 242 |
void SDL_WarpMouseInWindow(SDL_Window*,int,int); |
| 243 |
void SDL_WarpMouseGlobal(int,int); |
| 244 |
int SDL_SetRelativeMouseMode(SDL_bool); |
| 245 |
int SDL_CaptureMouse(SDL_bool); |
| 246 |
SDL_bool SDL_GetRelativeMouseMode(); |
| 247 |
SDL_Cursor* SDL_CreateCursor(const(Uint8)*,const(Uint8)*,int,int,int,int); |
| 248 |
SDL_Cursor* SDL_CreateColorCursor(SDL_Surface*,int,int); |
| 249 |
SDL_Cursor* SDL_CreateSystemCursor(SDL_SystemCursor); |
| 250 |
void SDL_SetCursor(SDL_Cursor*); |
| 251 |
SDL_Cursor* SDL_GetCursor(); |
| 252 |
SDL_Cursor* SDL_GetDefaultCursor(); |
| 253 |
void SDL_FreeCursor(SDL_Cursor*); |
| 254 |
int SDL_ShowCursor(int); |
| 255 |
const(char)* SDL_GetPixelFormatName(Uint32); |
| 256 |
SDL_bool SDL_PixelFormatEnumToMasks(Uint32,int*,Uint32*,Uint32*,Uint32*,Uint32*); |
| 257 |
Uint32 SDL_MasksToPixelFormatEnum(int,Uint32,Uint32,Uint32,Uint32); |
| 258 |
SDL_PixelFormat* SDL_AllocFormat(Uint32); |
| 259 |
void SDL_FreeFormat(SDL_PixelFormat*); |
| 260 |
SDL_Palette* SDL_AllocPalette(int); |
| 261 |
int SDL_SetPixelFormatPalette(SDL_PixelFormat*,SDL_Palette*); |
| 262 |
int SDL_SetPaletteColors(SDL_Palette*,const(SDL_Color)*,int,int); |
| 263 |
void SDL_FreePalette(SDL_Palette*); |
| 264 |
Uint32 SDL_MapRGB(const(SDL_PixelFormat)*,Uint8,Uint8,Uint8); |
| 265 |
Uint32 SDL_MapRGBA(const(SDL_PixelFormat)*,Uint8,Uint8,Uint8,Uint8); |
| 266 |
void SDL_GetRGB(Uint32,const(SDL_PixelFormat)*,Uint8*,Uint8*,Uint8*); |
| 267 |
void SDL_GetRGBA(Uint32,const(SDL_PixelFormat)*,Uint8*,Uint8*,Uint8*,Uint8*); |
| 268 |
void SDL_CalculateGammaRamp(float,Uint16*); |
| 269 |
const(char)* SDL_GetPlatform(); |
| 270 |
SDL_PowerState SDL_GetPowerInfo(int*,int*); |
| 271 |
SDL_bool SDL_HasIntersection(const(SDL_Rect)*,const(SDL_Rect)*); |
| 272 |
SDL_bool SDL_IntersectRect(const(SDL_Rect)*,const(SDL_Rect)*,SDL_Rect*); |
| 273 |
void SDL_UnionRect(const(SDL_Rect)*,const(SDL_Rect)*,SDL_Rect*); |
| 274 |
SDL_bool SDL_EnclosePoints(const(SDL_Point)*,int,const(SDL_Rect)*,SDL_Rect*); |
| 275 |
SDL_bool SDL_IntersectRectAndLine(const(SDL_Rect)*,int*,int*,int*,int*); |
| 276 |
int SDL_GetNumRenderDrivers(); |
| 277 |
int SDL_GetRenderDriverInfo(int,SDL_RendererInfo*); |
| 278 |
int SDL_CreateWindowAndRenderer(int,int,Uint32,SDL_Window**,SDL_Renderer**); |
| 279 |
SDL_Renderer* SDL_CreateRenderer(SDL_Window*,int,SDL_RendererFlags); |
| 280 |
SDL_Renderer* SDL_CreateSoftwareRenderer(SDL_Surface*); |
| 281 |
SDL_Renderer* SDL_GetRenderer(SDL_Window*); |
| 282 |
int SDL_GetRendererInfo(SDL_Renderer*,SDL_RendererInfo*); |
| 283 |
int SDL_GetRendererOutputSize(SDL_Renderer*,int*,int*); |
| 284 |
SDL_Texture* SDL_CreateTexture(SDL_Renderer*,Uint32,SDL_TextureAccess,int,int); |
| 285 |
SDL_Texture* SDL_CreateTextureFromSurface(SDL_Renderer*,SDL_Surface*); |
| 286 |
int SDL_QueryTexture(SDL_Texture*,Uint32*,int*,int*,int*); |
| 287 |
int SDL_SetTextureColorMod(SDL_Texture*,Uint8,Uint8,Uint8); |
| 288 |
int SDL_GetTextureColorMod(SDL_Texture*,Uint8*,Uint8*,Uint8*); |
| 289 |
int SDL_SetTextureAlphaMod(SDL_Texture*,Uint8); |
| 290 |
int SDL_GetTextureAlphaMod(SDL_Texture*,Uint8*); |
| 291 |
int SDL_SetTextureBlendMode(SDL_Texture*,SDL_BlendMode); |
| 292 |
int SDL_GetTextureBlendMode(SDL_Texture*,SDL_BlendMode*); |
| 293 |
int SDL_UpdateTexture(SDL_Texture*,const(SDL_Rect)*,const(void)*,int); |
| 294 |
int SDL_UpdateYUVTexture(SDL_Texture*,const(SDL_Rect)*,const(Uint8)*,int,const(Uint8)*,int,const(Uint8)*,int); |
| 295 |
int SDL_LockTexture(SDL_Texture*,const(SDL_Rect)*,void**,int*); |
| 296 |
void SDL_UnlockTexture(SDL_Texture*); |
| 297 |
SDL_bool SDL_RenderTargetSupported(SDL_Renderer*); |
| 298 |
int SDL_SetRenderTarget(SDL_Renderer*,SDL_Texture*); |
| 299 |
SDL_Texture* SDL_GetRenderTarget(SDL_Renderer*); |
| 300 |
int SDL_RenderSetClipRect(SDL_Renderer*,const(SDL_Rect)*); |
| 301 |
void SDL_RenderGetClipRect(SDL_Renderer* renderer,SDL_Rect*); |
| 302 |
int SDL_RenderSetLogicalSize(SDL_Renderer*,int,int); |
| 303 |
void SDL_RenderGetLogicalSize(SDL_Renderer*,int*,int*); |
| 304 |
int SDL_RenderSetIntegerScale(SDL_Renderer*,SDL_bool); |
| 305 |
SDL_bool SDL_RenderGetIntegerScale(SDL_Renderer*); |
| 306 |
int SDL_RenderSetViewport(SDL_Renderer*,const(SDL_Rect)*); |
| 307 |
void SDL_RenderGetViewport(SDL_Renderer*,SDL_Rect*); |
| 308 |
SDL_bool SDL_RenderIsClipEnabled(SDL_Renderer*); |
| 309 |
int SDL_RenderSetScale(SDL_Renderer*,float,float); |
| 310 |
int SDL_RenderGetScale(SDL_Renderer*,float*,float*); |
| 311 |
int SDL_SetRenderDrawColor(SDL_Renderer*,Uint8,Uint8,Uint8,Uint8); |
| 312 |
int SDL_GetRenderDrawColor(SDL_Renderer*,Uint8*,Uint8*,Uint8*,Uint8*); |
| 313 |
int SDL_SetRenderDrawBlendMode(SDL_Renderer*,SDL_BlendMode); |
| 314 |
int SDL_GetRenderDrawBlendMode(SDL_Renderer*,SDL_BlendMode*); |
| 315 |
int SDL_RenderClear(SDL_Renderer*); |
| 316 |
int SDL_RenderDrawPoint(SDL_Renderer*,int,int); |
| 317 |
int SDL_RenderDrawPoints(SDL_Renderer*,const(SDL_Point)*,int); |
| 318 |
int SDL_RenderDrawLine(SDL_Renderer*,int,int,int,int); |
| 319 |
int SDL_RenderDrawLines(SDL_Renderer*,const(SDL_Point)*,int); |
| 320 |
int SDL_RenderDrawRect(SDL_Renderer*,const(SDL_Rect)*); |
| 321 |
int SDL_RenderDrawRects(SDL_Renderer*,const(SDL_Rect)*,int); |
| 322 |
int SDL_RenderFillRect(SDL_Renderer*,const(SDL_Rect)*); |
| 323 |
int SDL_RenderFillRects(SDL_Renderer*,const(SDL_Rect)*,int); |
| 324 |
int SDL_RenderCopy(SDL_Renderer*,SDL_Texture*,const(SDL_Rect)*,const(SDL_Rect*)); |
| 325 |
int SDL_RenderCopyEx(SDL_Renderer*,SDL_Texture*,const(SDL_Rect)*,const(SDL_Rect)*,const(double),const(SDL_Point)*,const(SDL_RendererFlip)); |
| 326 |
int SDL_RenderReadPixels(SDL_Renderer*,const(SDL_Rect)*,Uint32,void*,int); |
| 327 |
void SDL_RenderPresent(SDL_Renderer*); |
| 328 |
void SDL_DestroyTexture(SDL_Texture*); |
| 329 |
void SDL_DestroyRenderer(SDL_Renderer*); |
| 330 |
int SDL_GL_BindTexture(SDL_Texture*,float*,float*); |
| 331 |
int SDL_GL_UnbindTexture(SDL_Texture*); |
| 332 |
SDL_RWops* SDL_RWFromFile(const(char)*,const(char)*); |
| 333 |
SDL_RWops* SDL_RWFromFP(FILE*,SDL_bool); |
| 334 |
SDL_RWops* SDL_RWFromMem(void*,int); |
| 335 |
SDL_RWops* SDL_RWFromConstMem(const(void)*,int); |
| 336 |
SDL_RWops* SDL_AllocRW(); |
| 337 |
void SDL_FreeRW(SDL_RWops*); |
| 338 |
Uint8 SDL_ReadU8(SDL_RWops*); |
| 339 |
Uint16 SDL_ReadLE16(SDL_RWops*); |
| 340 |
Uint16 SDL_ReadBE16(SDL_RWops*); |
| 341 |
Uint32 SDL_ReadLE32(SDL_RWops*); |
| 342 |
Uint32 SDL_ReadBE32(SDL_RWops*); |
| 343 |
Uint64 SDL_ReadLE64(SDL_RWops*); |
| 344 |
Uint64 SDL_ReadBE64(SDL_RWops*); |
| 345 |
size_t SDL_WriteU8(SDL_RWops*,Uint8); |
| 346 |
size_t SDL_WriteLE16(SDL_RWops*,Uint16); |
| 347 |
size_t SDL_WriteBE16(SDL_RWops*,Uint16); |
| 348 |
size_t SDL_WriteLE32(SDL_RWops*,Uint32); |
| 349 |
size_t SDL_WriteBE32(SDL_RWops*,Uint32); |
| 350 |
size_t SDL_WriteLE64(SDL_RWops*,Uint64); |
| 351 |
size_t SDL_WriteBE64(SDL_RWops*,Uint64); |
| 352 |
SDL_Window* SDL_CreateShapedWindow(const(char)*,uint,uint,uint,uint,Uint32); |
| 353 |
SDL_bool SDL_IsShapedWindow(const(SDL_Window)*); |
| 354 |
int SDL_SetWindowShape(SDL_Window*,SDL_Surface*,SDL_WindowShapeMode*); |
| 355 |
int SDL_GetShapedWindowMode(SDL_Window*,SDL_WindowShapeMode*); |
| 356 |
SDL_Surface* SDL_CreateRGBSurface(Uint32,int,int,int,Uint32,Uint32,Uint32,Uint32); |
| 357 |
SDL_Surface* SDL_CreateRGBSurfaceWithFormat(Uint32,int,int,int,Uint32); |
| 358 |
SDL_Surface* SDL_CreateRGBSurfaceFrom(void*,int,int,int,int,Uint32,Uint32,Uint32,Uint32); |
| 359 |
SDL_Surface* SDL_CreateRGBSurfaceWithFormatFrom(void*,int,int,int,int,Uint32); |
| 360 |
void SDL_FreeSurface(SDL_Surface*); |
| 361 |
int SDL_SetSurfacePalette(SDL_Surface*,SDL_Palette*); |
| 362 |
int SDL_LockSurface(SDL_Surface*); |
| 363 |
int SDL_UnlockSurface(SDL_Surface*); |
| 364 |
SDL_Surface* SDL_LoadBMP_RW(SDL_RWops*,int); |
| 365 |
int SDL_SaveBMP_RW(SDL_Surface*,SDL_RWops*,int); |
| 366 |
int SDL_SetSurfaceRLE(SDL_Surface*,int); |
| 367 |
int SDL_SetColorKey(SDL_Surface*,int,Uint32); |
| 368 |
int SDL_GetColorKey(SDL_Surface*,Uint32*); |
| 369 |
int SDL_SetSurfaceColorMod(SDL_Surface*,Uint8,Uint8,Uint8); |
| 370 |
int SDL_GetSurfaceColorMod(SDL_Surface*,Uint8*,Uint8*,Uint8*); |
| 371 |
int SDL_SetSurfaceAlphaMod(SDL_Surface*,Uint8); |
| 372 |
int SDL_GetSurfaceAlphaMod(SDL_Surface*,Uint8*); |
| 373 |
int SDL_SetSurfaceBlendMode(SDL_Surface*,SDL_BlendMode); |
| 374 |
int SDL_GetSurfaceBlendMode(SDL_Surface*,SDL_BlendMode*); |
| 375 |
SDL_bool SDL_SetClipRect(SDL_Surface*,const(SDL_Rect)*); |
| 376 |
void SDL_GetClipRect(SDL_Surface*,SDL_Rect*); |
| 377 |
SDL_Surface* SDL_ConvertSurface(SDL_Surface*,const(SDL_PixelFormat)*,Uint32); |
| 378 |
SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface*,Uint32,Uint32); |
| 379 |
int SDL_ConvertPixels(int,int,Uint32,const(void)*,int,Uint32,void*,int); |
| 380 |
int SDL_FillRect(SDL_Surface*,const(SDL_Rect)*,Uint32); |
| 381 |
int SDL_FillRects(SDL_Surface*,const(SDL_Rect)*,int,Uint32); |
| 382 |
int SDL_UpperBlit(SDL_Surface*,const(SDL_Rect)*,SDL_Surface*,SDL_Rect*); |
| 383 |
int SDL_LowerBlit(SDL_Surface*,SDL_Rect*,SDL_Surface*,SDL_Rect*); |
| 384 |
int SDL_SoftStretch(SDL_Surface*,const(SDL_Rect)*,SDL_Surface*,const(SDL_Rect)*); |
| 385 |
int SDL_UpperBlitScaled(SDL_Surface*,const(SDL_Rect)*,SDL_Surface*,SDL_Rect*); |
| 386 |
int SDL_LowerBlitScaled(SDL_Surface*,SDL_Rect*,SDL_Surface*,SDL_Rect*); |
| 387 |
static if(Derelict_OS_Windows) { |
| 388 |
int SDL_Direct3D9GetAdapterIndex(int); |
| 389 |
IDirect3DDevice9* SDL_RenderGetD3D9Device(SDL_Renderer*); |
| 390 |
SDL_bool SDL_DXGIGetOutputInfo(int,int*,int*); |
| 391 |
} |
| 392 |
static if(Derelict_OS_iOS) { |
| 393 |
int SDL_iPhoneSetAnimationCallback(SDL_Window*,int,SDL_iPhoneAnimationCallback,void*); |
| 394 |
void SDL_iPhoneSetEventPump(SDL_bool); |
| 395 |
} |
| 396 |
static if(Derelict_OS_Android) { |
| 397 |
void* SDL_AndroidGetJNIEnv(); |
| 398 |
void* SDL_AndroidGetActivity(); |
| 399 |
const(char)* SDL_AndroidGetInternalStoragePath(); |
| 400 |
int SDL_AndroidGetInternalStorageState(); |
| 401 |
const(char)* SDL_AndroidGetExternalStoragePath(); |
| 402 |
} |
| 403 |
static if(Derelict_OS_WinRT) { |
| 404 |
const(wchar_t)* SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path); |
| 405 |
const(char)* SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path); |
| 406 |
int SDL_WinRTRunApp(int function(int,char**),void*); |
| 407 |
} |
| 408 |
SDL_bool SDL_GetWindowWMInfo(SDL_Window* window,SDL_SysWMinfo * info); |
| 409 |
Uint32 SDL_GetTicks(); |
| 410 |
Uint64 SDL_GetPerformanceCounter(); |
| 411 |
Uint64 SDL_GetPerformanceFrequency(); |
| 412 |
void SDL_Delay(Uint32); |
| 413 |
SDL_TimerID SDL_AddTimer(Uint32,SDL_TimerCallback,void*); |
| 414 |
SDL_bool SDL_RemoveTimer(SDL_TimerID); |
| 415 |
int SDL_GetNumTouchDevices(); |
| 416 |
SDL_TouchID SDL_GetTouchDevice(int); |
| 417 |
int SDL_GetNumTouchFingers(SDL_TouchID); |
| 418 |
SDL_Finger* SDL_GetTouchFinger(SDL_TouchID,int); |
| 419 |
void SDL_GetVersion(SDL_version*); |
| 420 |
const(char)* SDL_GetRevision(); |
| 421 |
int SDL_GetRevisionNumber(); |
| 422 |
int SDL_GetNumVideoDrivers(); |
| 423 |
const(char)* SDL_GetVideoDriver(int); |
| 424 |
int SDL_VideoInit(const(char)*); |
| 425 |
void SDL_VideoQuit(); |
| 426 |
const(char)* SDL_GetCurrentVideoDriver(); |
| 427 |
int SDL_GetNumVideoDisplays(); |
| 428 |
const(char)* SDL_GetDisplayName(int); |
| 429 |
int SDL_GetDisplayBounds(int,SDL_Rect*); |
| 430 |
int SDL_GetDisplayDPI(int,float*,float*,float*); |
| 431 |
int SDL_GetDisplayUsableBounds(int,SDL_Rect*); |
| 432 |
int SDL_GetNumDisplayModes(int); |
| 433 |
int SDL_GetDisplayMode(int,int,SDL_DisplayMode*); |
| 434 |
int SDL_GetDesktopDisplayMode(int,SDL_DisplayMode*); |
| 435 |
int SDL_GetCurrentDisplayMode(int,SDL_DisplayMode*); |
| 436 |
SDL_DisplayMode* SDL_GetClosestDisplayMode(int,const(SDL_DisplayMode)*,SDL_DisplayMode*); |
| 437 |
int SDL_GetWindowDisplayIndex(SDL_Window*); |
| 438 |
int SDL_SetWindowDisplayMode(SDL_Window*,const(SDL_DisplayMode)*); |
| 439 |
int SDL_GetWindowDisplayMode(SDL_Window*,SDL_DisplayMode*); |
| 440 |
Uint32 SDL_GetWindowPixelFormat(SDL_Window*); |
| 441 |
SDL_Window* SDL_CreateWindow(const(char)*,int,int,int,int,SDL_WindowFlags); |
| 442 |
SDL_Window* SDL_CreateWindowFrom(const(void)*); |
| 443 |
Uint32 SDL_GetWindowID(SDL_Window*); |
| 444 |
SDL_Window* SDL_GetWindowFromID(Uint32); |
| 445 |
SDL_WindowFlags SDL_GetWindowFlags(SDL_Window*); |
| 446 |
void SDL_SetWindowTitle(SDL_Window*,const(char)*); |
| 447 |
const(char)* SDL_GetWindowTitle(SDL_Window*); |
| 448 |
void SDL_SetWindowIcon(SDL_Window*,SDL_Surface*); |
| 449 |
void* SDL_SetWindowData(SDL_Window*,const(char)*,void*); |
| 450 |
void* SDL_GetWindowData(SDL_Window*,const(char)*); |
| 451 |
void SDL_SetWindowPosition(SDL_Window*,int,int); |
| 452 |
void SDL_GetWindowPosition(SDL_Window*,int*,int*); |
| 453 |
void SDL_SetWindowSize(SDL_Window*,int,int); |
| 454 |
void SDL_GetWindowSize(SDL_Window*,int*,int*); |
| 455 |
int SDL_GetWindowBordersSize(SDL_Window*,int*,int*,int*,int*); |
| 456 |
void SDL_SetWindowMinimumSize(SDL_Window*,int,int); |
| 457 |
void SDL_GetWindowMinimumSize(SDL_Window*,int*,int*); |
| 458 |
void SDL_SetWindowMaximumSize(SDL_Window*,int,int); |
| 459 |
void SDL_GetWindowMaximumSize(SDL_Window*,int*,int*); |
| 460 |
void SDL_SetWindowBordered(SDL_Window*,SDL_bool); |
| 461 |
void SDL_SetWindowResizable(SDL_Window*,SDL_bool); |
| 462 |
void SDL_ShowWindow(SDL_Window*); |
| 463 |
void SDL_HideWindow(SDL_Window*); |
| 464 |
void SDL_RaiseWindow(SDL_Window*); |
| 465 |
void SDL_MaximizeWindow(SDL_Window*); |
| 466 |
void SDL_MinimizeWindow(SDL_Window*); |
| 467 |
void SDL_RestoreWindow(SDL_Window*); |
| 468 |
int SDL_SetWindowFullscreen(SDL_Window*,Uint32); |
| 469 |
SDL_Surface* SDL_GetWindowSurface(SDL_Window*); |
| 470 |
int SDL_UpdateWindowSurface(SDL_Window*); |
| 471 |
int SDL_UpdateWindowSurfaceRects(SDL_Window*,SDL_Rect*,int); |
| 472 |
void SDL_SetWindowGrab(SDL_Window*,SDL_bool); |
| 473 |
SDL_bool SDL_GetWindowGrab(SDL_Window*); |
| 474 |
SDL_Window* SDL_GetGrabbedWindow(); |
| 475 |
int SDL_SetWindowBrightness(SDL_Window*,float); |
| 476 |
float SDL_GetWindowBrightness(SDL_Window*); |
| 477 |
int SDL_SetWindowOpacity(SDL_Window*,float); |
| 478 |
int SDL_GetWindowOpacity(SDL_Window*,float*); |
| 479 |
int SDL_SetWindowModalFor(SDL_Window*,SDL_Window*); |
| 480 |
int SDL_SetWindowInputFocus(SDL_Window*); |
| 481 |
int SDL_SetWindowGammaRamp(SDL_Window*,const(Uint16)*,const(Uint16)*,const(Uint16)*); |
| 482 |
int SDL_GetWindowGammaRamp(SDL_Window*,Uint16*,Uint16*,Uint16*); |
| 483 |
int SDL_SetWindowHitTest(SDL_Window*,SDL_HitTest,void*); |
| 484 |
void SDL_DestroyWindow(SDL_Window*); |
| 485 |
SDL_bool SDL_IsScreenSaverEnabled(); |
| 486 |
void SDL_EnableScreenSaver(); |
| 487 |
void SDL_DisableScreenSaver(); |
| 488 |
int SDL_GL_LoadLibrary(const(char)*); |
| 489 |
void* SDL_GL_GetProcAddress(const(char)*); |
| 490 |
void SDL_GL_UnloadLibrary(); |
| 491 |
SDL_bool SDL_GL_ExtensionSupported(const(char)*); |
| 492 |
void SDL_GL_ResetAttributes(); |
| 493 |
int SDL_GL_SetAttribute(SDL_GLattr,int); |
| 494 |
int SDL_GL_GetAttribute(SDL_GLattr,int*); |
| 495 |
SDL_GLContext SDL_GL_CreateContext(SDL_Window*); |
| 496 |
int SDL_GL_MakeCurrent(SDL_Window*,SDL_GLContext); |
| 497 |
SDL_Window* SDL_GL_GetCurrentWindow(); |
| 498 |
SDL_GLContext SDL_GL_GetCurrentContext(); |
| 499 |
void SDL_GL_GetDrawableSize(SDL_Window*,int*,int*); |
| 500 |
int SDL_GL_SetSwapInterval(int); |
| 501 |
int SDL_GL_GetSwapInterval(); |
| 502 |
void SDL_GL_SwapWindow(SDL_Window*); |
| 503 |
void SDL_GL_DeleteContext(SDL_GLContext); |
| 504 |
} |