mt-lang 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/index.html +4 -3
- data/lib/milk_tea/base.rb +1 -1
- data/std/asset_pack.mt +267 -0
- data/std/async/libuv_runtime.mt +539 -0
- data/std/async/mailbox.mt +191 -0
- data/std/async/runtime.mt +87 -0
- data/std/async.mt +87 -0
- data/std/base64.mt +185 -0
- data/std/behavior_tree.mt +396 -0
- data/std/binary.mt +314 -0
- data/std/binary_heap.mt +157 -0
- data/std/bitset.mt +239 -0
- data/std/box2d.mt +535 -0
- data/std/bytes.mt +46 -0
- data/std/c/box2d.mt +1254 -0
- data/std/c/cgltf.mt +647 -0
- data/std/c/cjson.mt +106 -0
- data/std/c/crypto.mt +11 -0
- data/std/c/crypto_support.h +51 -0
- data/std/c/ctype.mt +19 -0
- data/std/c/ctype_bindgen.h +29 -0
- data/std/c/curl.mt +1223 -0
- data/std/c/enet.mt +473 -0
- data/std/c/errno.mt +41 -0
- data/std/c/errno_bindgen.h +53 -0
- data/std/c/flecs.mt +2945 -0
- data/std/c/fs.linux.mt +43 -0
- data/std/c/fs.windows.mt +43 -0
- data/std/c/fs_support.h +954 -0
- data/std/c/gl.mt +2065 -0
- data/std/c/gl_registry_helpers.h +10748 -0
- data/std/c/glfw.mt +499 -0
- data/std/c/libc.mt +167 -0
- data/std/c/libuv.mt +1491 -0
- data/std/c/math.mt +22 -0
- data/std/c/math_bindgen.h +31 -0
- data/std/c/miniaudio.mt +3420 -0
- data/std/c/pcre2.mt +735 -0
- data/std/c/process.mt +58 -0
- data/std/c/process_support.h +1147 -0
- data/std/c/raygui.mt +1602 -0
- data/std/c/raylib.mt +1245 -0
- data/std/c/raymath.mt +163 -0
- data/std/c/rlgl.mt +434 -0
- data/std/c/rpng.mt +60 -0
- data/std/c/rres.mt +187 -0
- data/std/c/sdl3.mt +4132 -0
- data/std/c/sqlite3.mt +951 -0
- data/std/c/stb_image.mt +52 -0
- data/std/c/stb_image_resize2.mt +128 -0
- data/std/c/stb_image_write.mt +19 -0
- data/std/c/stb_rect_pack.mt +38 -0
- data/std/c/stb_truetype.mt +175 -0
- data/std/c/stb_vorbis.mt +31 -0
- data/std/c/stdio.mt +90 -0
- data/std/c/steamworks.h +5769 -0
- data/std/c/steamworks.mt +4771 -0
- data/std/c/string.mt +16 -0
- data/std/c/string_bindgen.h +36 -0
- data/std/c/sync.mt +33 -0
- data/std/c/sync_support.h +219 -0
- data/std/c/terminal.mt +24 -0
- data/std/c/terminal_support.h +408 -0
- data/std/c/time.mt +26 -0
- data/std/c/tls.mt +24 -0
- data/std/c/tls_support.h +626 -0
- data/std/c/tracy.mt +53 -0
- data/std/c/zlib.mt +20 -0
- data/std/c/zlib_support.h +239 -0
- data/std/c/zstd.mt +231 -0
- data/std/cell.mt +60 -0
- data/std/cgltf.mt +115 -0
- data/std/cjson.mt +90 -0
- data/std/cli.mt +768 -0
- data/std/cookie.mt +198 -0
- data/std/counter.mt +160 -0
- data/std/crypto.mt +74 -0
- data/std/cstring.mt +13 -0
- data/std/ctype.mt +52 -0
- data/std/curl/runtime.mt +261 -0
- data/std/curl.mt +38 -0
- data/std/deque.mt +348 -0
- data/std/encoding.mt +93 -0
- data/std/enet.mt +133 -0
- data/std/env.mt +41 -0
- data/std/errno.mt +47 -0
- data/std/flecs.mt +978 -0
- data/std/fmt.mt +271 -0
- data/std/fs.linux.mt +696 -0
- data/std/fs.windows.mt +711 -0
- data/std/fsm.mt +267 -0
- data/std/gl.mt +2062 -0
- data/std/glfw.mt +471 -0
- data/std/goap.mt +342 -0
- data/std/graph.mt +521 -0
- data/std/gzip.mt +77 -0
- data/std/hash.mt +429 -0
- data/std/http/server.mt +810 -0
- data/std/http.mt +1227 -0
- data/std/intern.mt +53 -0
- data/std/jobs.mt +288 -0
- data/std/json.mt +627 -0
- data/std/libc.mt +34 -0
- data/std/libuv.mt +554 -0
- data/std/linear_algebra.mt +243 -0
- data/std/linked_map.mt +372 -0
- data/std/linked_map_view.mt +49 -0
- data/std/linked_set.mt +117 -0
- data/std/log.mt +69 -0
- data/std/map.mt +418 -0
- data/std/math.mt +24 -0
- data/std/mem/arena.mt +137 -0
- data/std/mem/endian.mt +51 -0
- data/std/mem/heap.mt +298 -0
- data/std/mem/pool.mt +164 -0
- data/std/mem/stack.mt +47 -0
- data/std/mem/tracking.mt +119 -0
- data/std/miniaudio.mt +1299 -0
- data/std/multiset.mt +191 -0
- data/std/net/channel.mt +727 -0
- data/std/net/clock.mt +237 -0
- data/std/net/discovery.mt +277 -0
- data/std/net/lobby.mt +813 -0
- data/std/net/manager.mt +539 -0
- data/std/net/mux.mt +839 -0
- data/std/net/nat.mt +122 -0
- data/std/net/packet.mt +219 -0
- data/std/net/punch.mt +162 -0
- data/std/net/rpc.mt +119 -0
- data/std/net/session.mt +1157 -0
- data/std/net/stun.mt +252 -0
- data/std/net/sync.mt +183 -0
- data/std/net/turn.mt +459 -0
- data/std/net.mt +2944 -0
- data/std/oauth2.mt +408 -0
- data/std/option.mt +51 -0
- data/std/ordered_map.mt +497 -0
- data/std/ordered_set.mt +348 -0
- data/std/path.mt +368 -0
- data/std/pcre2/runtime.mt +35 -0
- data/std/pcre2.mt +78 -0
- data/std/priority_queue.mt +55 -0
- data/std/process.mt +837 -0
- data/std/queue.mt +55 -0
- data/std/random.mt +146 -0
- data/std/raygui.mt +99 -0
- data/std/raylib/debug_console.mt +71 -0
- data/std/raylib/easing.mt +388 -0
- data/std/raylib/packed_assets.mt +255 -0
- data/std/raylib/runtime.mt +30 -0
- data/std/raylib/tracy_gpu.mt +37 -0
- data/std/raylib.mt +1510 -0
- data/std/raymath.mt +153 -0
- data/std/result.mt +89 -0
- data/std/rlgl.mt +268 -0
- data/std/rpng.mt +46 -0
- data/std/rres.mt +36 -0
- data/std/sdl3/runtime.mt +54 -0
- data/std/sdl3.mt +1731 -0
- data/std/serialize.mt +68 -0
- data/std/set.mt +124 -0
- data/std/spatial.mt +176 -0
- data/std/sqlite3.mt +151 -0
- data/std/stack.mt +55 -0
- data/std/stb_image.mt +47 -0
- data/std/stb_image_resize2.mt +41 -0
- data/std/stb_image_write.mt +17 -0
- data/std/stb_rect_pack.mt +15 -0
- data/std/stb_truetype.mt +77 -0
- data/std/stb_vorbis.mt +16 -0
- data/std/stdio.mt +88 -0
- data/std/steamworks.mt +1542 -0
- data/std/str.mt +293 -0
- data/std/string.mt +234 -0
- data/std/sync.mt +194 -0
- data/std/tar.mt +704 -0
- data/std/terminal.mt +1002 -0
- data/std/testing.mt +266 -0
- data/std/thread.mt +120 -0
- data/std/time.mt +105 -0
- data/std/tls.mt +616 -0
- data/std/toml.mt +1310 -0
- data/std/tracy.mt +42 -0
- data/std/uri.mt +118 -0
- data/std/url.mt +372 -0
- data/std/vec.mt +433 -0
- data/std/zstd.mt +94 -0
- metadata +187 -2
data/std/sdl3.mt
ADDED
|
@@ -0,0 +1,1731 @@
|
|
|
1
|
+
# generated by mtc imported-bindings from std.c.sdl3 using bindings/imported/sdl3.binding.json
|
|
2
|
+
|
|
3
|
+
import std.c.sdl3 as c
|
|
4
|
+
|
|
5
|
+
public type GamepadBinding_input = c.SDL_GamepadBinding_input
|
|
6
|
+
public type GamepadBinding_output = c.SDL_GamepadBinding_output
|
|
7
|
+
public type GamepadBinding_input_axis = c.SDL_GamepadBinding_input_axis
|
|
8
|
+
public type GamepadBinding_input_hat = c.SDL_GamepadBinding_input_hat
|
|
9
|
+
public type GamepadBinding_output_axis = c.SDL_GamepadBinding_output_axis
|
|
10
|
+
public type va_list = c.va_list
|
|
11
|
+
public type Time = c.SDL_Time
|
|
12
|
+
public type alignment_test = c.SDL_alignment_test
|
|
13
|
+
public type DUMMY_ENUM = c.SDL_DUMMY_ENUM
|
|
14
|
+
public type malloc_func = c.SDL_malloc_func
|
|
15
|
+
public type calloc_func = c.SDL_calloc_func
|
|
16
|
+
public type realloc_func = c.SDL_realloc_func
|
|
17
|
+
public type free_func = c.SDL_free_func
|
|
18
|
+
public type Environment = c.SDL_Environment
|
|
19
|
+
public type CompareCallback = c.SDL_CompareCallback
|
|
20
|
+
public type CompareCallback_r = c.SDL_CompareCallback_r
|
|
21
|
+
public type iconv_data_t = c.SDL_iconv_data_t
|
|
22
|
+
public type iconv_t = c.SDL_iconv_t
|
|
23
|
+
public type FunctionPointer = c.SDL_FunctionPointer
|
|
24
|
+
public type AssertState = c.SDL_AssertState
|
|
25
|
+
public type AssertData = c.SDL_AssertData
|
|
26
|
+
public type AssertionHandler = c.SDL_AssertionHandler
|
|
27
|
+
public type AsyncIO = c.SDL_AsyncIO
|
|
28
|
+
public type AsyncIOTaskType = c.SDL_AsyncIOTaskType
|
|
29
|
+
public type AsyncIOResult = c.SDL_AsyncIOResult
|
|
30
|
+
public type AsyncIOOutcome = c.SDL_AsyncIOOutcome
|
|
31
|
+
public type AsyncIOQueue = c.SDL_AsyncIOQueue
|
|
32
|
+
public type SpinLock = c.SDL_SpinLock
|
|
33
|
+
public type AtomicInt = c.SDL_AtomicInt
|
|
34
|
+
public type AtomicU32 = c.SDL_AtomicU32
|
|
35
|
+
public type PropertiesID = c.SDL_PropertiesID
|
|
36
|
+
public type PropertyType = c.SDL_PropertyType
|
|
37
|
+
public type CleanupPropertyCallback = c.SDL_CleanupPropertyCallback
|
|
38
|
+
public type EnumeratePropertiesCallback = c.SDL_EnumeratePropertiesCallback
|
|
39
|
+
public type Thread = c.SDL_Thread
|
|
40
|
+
public type ThreadID = c.SDL_ThreadID
|
|
41
|
+
public type TLSID = c.SDL_TLSID
|
|
42
|
+
public type ThreadPriority = c.SDL_ThreadPriority
|
|
43
|
+
public type ThreadState = c.SDL_ThreadState
|
|
44
|
+
public type ThreadFunction = c.SDL_ThreadFunction
|
|
45
|
+
public type TLSDestructorCallback = c.SDL_TLSDestructorCallback
|
|
46
|
+
public type Mutex = c.SDL_Mutex
|
|
47
|
+
public type RWLock = c.SDL_RWLock
|
|
48
|
+
public type Semaphore = c.SDL_Semaphore
|
|
49
|
+
public type Condition = c.SDL_Condition
|
|
50
|
+
public type InitStatus = c.SDL_InitStatus
|
|
51
|
+
public type InitState = c.SDL_InitState
|
|
52
|
+
public type IOStatus = c.SDL_IOStatus
|
|
53
|
+
public type IOWhence = c.SDL_IOWhence
|
|
54
|
+
public type IOStreamInterface = c.SDL_IOStreamInterface
|
|
55
|
+
public type IOStream = c.SDL_IOStream
|
|
56
|
+
public type AudioFormat = c.SDL_AudioFormat
|
|
57
|
+
public type AudioDeviceID = c.SDL_AudioDeviceID
|
|
58
|
+
public type AudioSpec = c.SDL_AudioSpec
|
|
59
|
+
public type AudioStream = c.SDL_AudioStream
|
|
60
|
+
public type AudioStreamDataCompleteCallback = c.SDL_AudioStreamDataCompleteCallback
|
|
61
|
+
public type AudioStreamCallback = c.SDL_AudioStreamCallback
|
|
62
|
+
public type AudioPostmixCallback = c.SDL_AudioPostmixCallback
|
|
63
|
+
public type BlendMode = c.SDL_BlendMode
|
|
64
|
+
public type BlendOperation = c.SDL_BlendOperation
|
|
65
|
+
public type BlendFactor = c.SDL_BlendFactor
|
|
66
|
+
public type PixelType = c.SDL_PixelType
|
|
67
|
+
public type BitmapOrder = c.SDL_BitmapOrder
|
|
68
|
+
public type PackedOrder = c.SDL_PackedOrder
|
|
69
|
+
public type ArrayOrder = c.SDL_ArrayOrder
|
|
70
|
+
public type PackedLayout = c.SDL_PackedLayout
|
|
71
|
+
public type PixelFormat = c.SDL_PixelFormat
|
|
72
|
+
public type ColorType = c.SDL_ColorType
|
|
73
|
+
public type ColorRange = c.SDL_ColorRange
|
|
74
|
+
public type ColorPrimaries = c.SDL_ColorPrimaries
|
|
75
|
+
public type TransferCharacteristics = c.SDL_TransferCharacteristics
|
|
76
|
+
public type MatrixCoefficients = c.SDL_MatrixCoefficients
|
|
77
|
+
public type ChromaLocation = c.SDL_ChromaLocation
|
|
78
|
+
public type Colorspace = c.SDL_Colorspace
|
|
79
|
+
public type Color = c.SDL_Color
|
|
80
|
+
public type FColor = c.SDL_FColor
|
|
81
|
+
public type Palette = c.SDL_Palette
|
|
82
|
+
public type PixelFormatDetails = c.SDL_PixelFormatDetails
|
|
83
|
+
public type Point = c.SDL_Point
|
|
84
|
+
public type FPoint = c.SDL_FPoint
|
|
85
|
+
public type Rect = c.SDL_Rect
|
|
86
|
+
public type FRect = c.SDL_FRect
|
|
87
|
+
public type SurfaceFlags = c.SDL_SurfaceFlags
|
|
88
|
+
public type ScaleMode = c.SDL_ScaleMode
|
|
89
|
+
public type FlipMode = c.SDL_FlipMode
|
|
90
|
+
public type Surface = c.SDL_Surface
|
|
91
|
+
public type CameraID = c.SDL_CameraID
|
|
92
|
+
public type Camera = c.SDL_Camera
|
|
93
|
+
public type CameraSpec = c.SDL_CameraSpec
|
|
94
|
+
public type CameraPosition = c.SDL_CameraPosition
|
|
95
|
+
public type CameraPermissionState = c.SDL_CameraPermissionState
|
|
96
|
+
public type ClipboardDataCallback = c.SDL_ClipboardDataCallback
|
|
97
|
+
public type ClipboardCleanupCallback = c.SDL_ClipboardCleanupCallback
|
|
98
|
+
public type DisplayID = c.SDL_DisplayID
|
|
99
|
+
public type WindowID = c.SDL_WindowID
|
|
100
|
+
public type SystemTheme = c.SDL_SystemTheme
|
|
101
|
+
public type DisplayModeData = c.SDL_DisplayModeData
|
|
102
|
+
public type DisplayMode = c.SDL_DisplayMode
|
|
103
|
+
public type DisplayOrientation = c.SDL_DisplayOrientation
|
|
104
|
+
public opaque Window = c"SDL_Window"
|
|
105
|
+
public type WindowFlags = c.SDL_WindowFlags
|
|
106
|
+
public type FlashOperation = c.SDL_FlashOperation
|
|
107
|
+
public type ProgressState = c.SDL_ProgressState
|
|
108
|
+
public type GLContextState = c.SDL_GLContextState
|
|
109
|
+
public type GLContext = c.SDL_GLContext
|
|
110
|
+
public type EGLDisplay = c.SDL_EGLDisplay
|
|
111
|
+
public type EGLConfig = c.SDL_EGLConfig
|
|
112
|
+
public type EGLSurface = c.SDL_EGLSurface
|
|
113
|
+
public type EGLAttrib = c.SDL_EGLAttrib
|
|
114
|
+
public type EGLint = c.SDL_EGLint
|
|
115
|
+
public type EGLAttribArrayCallback = c.SDL_EGLAttribArrayCallback
|
|
116
|
+
public type EGLIntArrayCallback = c.SDL_EGLIntArrayCallback
|
|
117
|
+
public type GLAttr = c.SDL_GLAttr
|
|
118
|
+
public type GLProfile = c.SDL_GLProfile
|
|
119
|
+
public type GLContextFlag = c.SDL_GLContextFlag
|
|
120
|
+
public type GLContextReleaseFlag = c.SDL_GLContextReleaseFlag
|
|
121
|
+
public type GLContextResetNotification = c.SDL_GLContextResetNotification
|
|
122
|
+
public type HitTestResult = c.SDL_HitTestResult
|
|
123
|
+
public type HitTest = c.SDL_HitTest
|
|
124
|
+
public type DialogFileFilter = c.SDL_DialogFileFilter
|
|
125
|
+
public type DialogFileCallback = c.SDL_DialogFileCallback
|
|
126
|
+
public type FileDialogType = c.SDL_FileDialogType
|
|
127
|
+
public type GUID = c.SDL_GUID
|
|
128
|
+
public type PowerState = c.SDL_PowerState
|
|
129
|
+
public type Sensor = c.SDL_Sensor
|
|
130
|
+
public type SensorID = c.SDL_SensorID
|
|
131
|
+
public type SensorType = c.SDL_SensorType
|
|
132
|
+
public type Joystick = c.SDL_Joystick
|
|
133
|
+
public type JoystickID = c.SDL_JoystickID
|
|
134
|
+
public type JoystickType = c.SDL_JoystickType
|
|
135
|
+
public type JoystickConnectionState = c.SDL_JoystickConnectionState
|
|
136
|
+
public type VirtualJoystickTouchpadDesc = c.SDL_VirtualJoystickTouchpadDesc
|
|
137
|
+
public type VirtualJoystickSensorDesc = c.SDL_VirtualJoystickSensorDesc
|
|
138
|
+
public type VirtualJoystickDesc = c.SDL_VirtualJoystickDesc
|
|
139
|
+
public type Gamepad = c.SDL_Gamepad
|
|
140
|
+
public type GamepadType = c.SDL_GamepadType
|
|
141
|
+
public type GamepadButton = c.SDL_GamepadButton
|
|
142
|
+
public type GamepadButtonLabel = c.SDL_GamepadButtonLabel
|
|
143
|
+
public type GamepadAxis = c.SDL_GamepadAxis
|
|
144
|
+
public type GamepadBindingType = c.SDL_GamepadBindingType
|
|
145
|
+
public type GamepadBinding = c.SDL_GamepadBinding
|
|
146
|
+
public type Scancode = c.SDL_Scancode
|
|
147
|
+
public type Keycode = c.SDL_Keycode
|
|
148
|
+
public type Keymod = c.SDL_Keymod
|
|
149
|
+
public type KeyboardID = c.SDL_KeyboardID
|
|
150
|
+
public type TextInputType = c.SDL_TextInputType
|
|
151
|
+
public type Capitalization = c.SDL_Capitalization
|
|
152
|
+
public type MouseID = c.SDL_MouseID
|
|
153
|
+
public type Cursor = c.SDL_Cursor
|
|
154
|
+
public type SystemCursor = c.SDL_SystemCursor
|
|
155
|
+
public type MouseWheelDirection = c.SDL_MouseWheelDirection
|
|
156
|
+
public type CursorFrameInfo = c.SDL_CursorFrameInfo
|
|
157
|
+
public type MouseButtonFlags = c.SDL_MouseButtonFlags
|
|
158
|
+
public type MouseMotionTransformCallback = c.SDL_MouseMotionTransformCallback
|
|
159
|
+
public type TouchID = c.SDL_TouchID
|
|
160
|
+
public type FingerID = c.SDL_FingerID
|
|
161
|
+
public type TouchDeviceType = c.SDL_TouchDeviceType
|
|
162
|
+
public type Finger = c.SDL_Finger
|
|
163
|
+
public type PenID = c.SDL_PenID
|
|
164
|
+
public type PenInputFlags = c.SDL_PenInputFlags
|
|
165
|
+
public type PenAxis = c.SDL_PenAxis
|
|
166
|
+
public type PenDeviceType = c.SDL_PenDeviceType
|
|
167
|
+
public type EventType = c.SDL_EventType
|
|
168
|
+
public type CommonEvent = c.SDL_CommonEvent
|
|
169
|
+
public type DisplayEvent = c.SDL_DisplayEvent
|
|
170
|
+
public type WindowEvent = c.SDL_WindowEvent
|
|
171
|
+
public type KeyboardDeviceEvent = c.SDL_KeyboardDeviceEvent
|
|
172
|
+
public type KeyboardEvent = c.SDL_KeyboardEvent
|
|
173
|
+
public type TextEditingEvent = c.SDL_TextEditingEvent
|
|
174
|
+
public type TextEditingCandidatesEvent = c.SDL_TextEditingCandidatesEvent
|
|
175
|
+
public type TextInputEvent = c.SDL_TextInputEvent
|
|
176
|
+
public type MouseDeviceEvent = c.SDL_MouseDeviceEvent
|
|
177
|
+
public type MouseMotionEvent = c.SDL_MouseMotionEvent
|
|
178
|
+
public type MouseButtonEvent = c.SDL_MouseButtonEvent
|
|
179
|
+
public type MouseWheelEvent = c.SDL_MouseWheelEvent
|
|
180
|
+
public type JoyAxisEvent = c.SDL_JoyAxisEvent
|
|
181
|
+
public type JoyBallEvent = c.SDL_JoyBallEvent
|
|
182
|
+
public type JoyHatEvent = c.SDL_JoyHatEvent
|
|
183
|
+
public type JoyButtonEvent = c.SDL_JoyButtonEvent
|
|
184
|
+
public type JoyDeviceEvent = c.SDL_JoyDeviceEvent
|
|
185
|
+
public type JoyBatteryEvent = c.SDL_JoyBatteryEvent
|
|
186
|
+
public type GamepadAxisEvent = c.SDL_GamepadAxisEvent
|
|
187
|
+
public type GamepadButtonEvent = c.SDL_GamepadButtonEvent
|
|
188
|
+
public type GamepadDeviceEvent = c.SDL_GamepadDeviceEvent
|
|
189
|
+
public type GamepadTouchpadEvent = c.SDL_GamepadTouchpadEvent
|
|
190
|
+
public type GamepadSensorEvent = c.SDL_GamepadSensorEvent
|
|
191
|
+
public type AudioDeviceEvent = c.SDL_AudioDeviceEvent
|
|
192
|
+
public type CameraDeviceEvent = c.SDL_CameraDeviceEvent
|
|
193
|
+
public type RenderEvent = c.SDL_RenderEvent
|
|
194
|
+
public type TouchFingerEvent = c.SDL_TouchFingerEvent
|
|
195
|
+
public type PinchFingerEvent = c.SDL_PinchFingerEvent
|
|
196
|
+
public type PenProximityEvent = c.SDL_PenProximityEvent
|
|
197
|
+
public type PenMotionEvent = c.SDL_PenMotionEvent
|
|
198
|
+
public type PenTouchEvent = c.SDL_PenTouchEvent
|
|
199
|
+
public type PenButtonEvent = c.SDL_PenButtonEvent
|
|
200
|
+
public type PenAxisEvent = c.SDL_PenAxisEvent
|
|
201
|
+
public type DropEvent = c.SDL_DropEvent
|
|
202
|
+
public type ClipboardEvent = c.SDL_ClipboardEvent
|
|
203
|
+
public type SensorEvent = c.SDL_SensorEvent
|
|
204
|
+
public type QuitEvent = c.SDL_QuitEvent
|
|
205
|
+
public type UserEvent = c.SDL_UserEvent
|
|
206
|
+
public type Event = c.SDL_Event
|
|
207
|
+
public type EventAction = c.SDL_EventAction
|
|
208
|
+
public type EventFilter = c.SDL_EventFilter
|
|
209
|
+
public type Folder = c.SDL_Folder
|
|
210
|
+
public type PathType = c.SDL_PathType
|
|
211
|
+
public type PathInfo = c.SDL_PathInfo
|
|
212
|
+
public type GlobFlags = c.SDL_GlobFlags
|
|
213
|
+
public type EnumerationResult = c.SDL_EnumerationResult
|
|
214
|
+
public type EnumerateDirectoryCallback = c.SDL_EnumerateDirectoryCallback
|
|
215
|
+
public type GPUDevice = c.SDL_GPUDevice
|
|
216
|
+
public type GPUBuffer = c.SDL_GPUBuffer
|
|
217
|
+
public type GPUTransferBuffer = c.SDL_GPUTransferBuffer
|
|
218
|
+
public type GPUTexture = c.SDL_GPUTexture
|
|
219
|
+
public type GPUSampler = c.SDL_GPUSampler
|
|
220
|
+
public type GPUShader = c.SDL_GPUShader
|
|
221
|
+
public type GPUComputePipeline = c.SDL_GPUComputePipeline
|
|
222
|
+
public type GPUGraphicsPipeline = c.SDL_GPUGraphicsPipeline
|
|
223
|
+
public type GPUCommandBuffer = c.SDL_GPUCommandBuffer
|
|
224
|
+
public type GPURenderPass = c.SDL_GPURenderPass
|
|
225
|
+
public type GPUComputePass = c.SDL_GPUComputePass
|
|
226
|
+
public type GPUCopyPass = c.SDL_GPUCopyPass
|
|
227
|
+
public type GPUFence = c.SDL_GPUFence
|
|
228
|
+
public type GPUPrimitiveType = c.SDL_GPUPrimitiveType
|
|
229
|
+
public type GPULoadOp = c.SDL_GPULoadOp
|
|
230
|
+
public type GPUStoreOp = c.SDL_GPUStoreOp
|
|
231
|
+
public type GPUIndexElementSize = c.SDL_GPUIndexElementSize
|
|
232
|
+
public type GPUTextureFormat = c.SDL_GPUTextureFormat
|
|
233
|
+
public type GPUTextureUsageFlags = c.SDL_GPUTextureUsageFlags
|
|
234
|
+
public type GPUTextureType = c.SDL_GPUTextureType
|
|
235
|
+
public type GPUSampleCount = c.SDL_GPUSampleCount
|
|
236
|
+
public type GPUCubeMapFace = c.SDL_GPUCubeMapFace
|
|
237
|
+
public type GPUBufferUsageFlags = c.SDL_GPUBufferUsageFlags
|
|
238
|
+
public type GPUTransferBufferUsage = c.SDL_GPUTransferBufferUsage
|
|
239
|
+
public type GPUShaderStage = c.SDL_GPUShaderStage
|
|
240
|
+
public type GPUShaderFormat = c.SDL_GPUShaderFormat
|
|
241
|
+
public type GPUVertexElementFormat = c.SDL_GPUVertexElementFormat
|
|
242
|
+
public type GPUVertexInputRate = c.SDL_GPUVertexInputRate
|
|
243
|
+
public type GPUFillMode = c.SDL_GPUFillMode
|
|
244
|
+
public type GPUCullMode = c.SDL_GPUCullMode
|
|
245
|
+
public type GPUFrontFace = c.SDL_GPUFrontFace
|
|
246
|
+
public type GPUCompareOp = c.SDL_GPUCompareOp
|
|
247
|
+
public type GPUStencilOp = c.SDL_GPUStencilOp
|
|
248
|
+
public type GPUBlendOp = c.SDL_GPUBlendOp
|
|
249
|
+
public type GPUBlendFactor = c.SDL_GPUBlendFactor
|
|
250
|
+
public type GPUColorComponentFlags = c.SDL_GPUColorComponentFlags
|
|
251
|
+
public type GPUFilter = c.SDL_GPUFilter
|
|
252
|
+
public type GPUSamplerMipmapMode = c.SDL_GPUSamplerMipmapMode
|
|
253
|
+
public type GPUSamplerAddressMode = c.SDL_GPUSamplerAddressMode
|
|
254
|
+
public type GPUPresentMode = c.SDL_GPUPresentMode
|
|
255
|
+
public type GPUSwapchainComposition = c.SDL_GPUSwapchainComposition
|
|
256
|
+
public type GPUViewport = c.SDL_GPUViewport
|
|
257
|
+
public type GPUTextureTransferInfo = c.SDL_GPUTextureTransferInfo
|
|
258
|
+
public type GPUTransferBufferLocation = c.SDL_GPUTransferBufferLocation
|
|
259
|
+
public type GPUTextureLocation = c.SDL_GPUTextureLocation
|
|
260
|
+
public type GPUTextureRegion = c.SDL_GPUTextureRegion
|
|
261
|
+
public type GPUBlitRegion = c.SDL_GPUBlitRegion
|
|
262
|
+
public type GPUBufferLocation = c.SDL_GPUBufferLocation
|
|
263
|
+
public type GPUBufferRegion = c.SDL_GPUBufferRegion
|
|
264
|
+
public type GPUIndirectDrawCommand = c.SDL_GPUIndirectDrawCommand
|
|
265
|
+
public type GPUIndexedIndirectDrawCommand = c.SDL_GPUIndexedIndirectDrawCommand
|
|
266
|
+
public type GPUIndirectDispatchCommand = c.SDL_GPUIndirectDispatchCommand
|
|
267
|
+
public type GPUSamplerCreateInfo = c.SDL_GPUSamplerCreateInfo
|
|
268
|
+
public type GPUVertexBufferDescription = c.SDL_GPUVertexBufferDescription
|
|
269
|
+
public type GPUVertexAttribute = c.SDL_GPUVertexAttribute
|
|
270
|
+
public type GPUVertexInputState = c.SDL_GPUVertexInputState
|
|
271
|
+
public type GPUStencilOpState = c.SDL_GPUStencilOpState
|
|
272
|
+
public type GPUColorTargetBlendState = c.SDL_GPUColorTargetBlendState
|
|
273
|
+
public type GPUShaderCreateInfo = c.SDL_GPUShaderCreateInfo
|
|
274
|
+
public type GPUTextureCreateInfo = c.SDL_GPUTextureCreateInfo
|
|
275
|
+
public type GPUBufferCreateInfo = c.SDL_GPUBufferCreateInfo
|
|
276
|
+
public type GPUTransferBufferCreateInfo = c.SDL_GPUTransferBufferCreateInfo
|
|
277
|
+
public type GPURasterizerState = c.SDL_GPURasterizerState
|
|
278
|
+
public type GPUMultisampleState = c.SDL_GPUMultisampleState
|
|
279
|
+
public type GPUDepthStencilState = c.SDL_GPUDepthStencilState
|
|
280
|
+
public type GPUColorTargetDescription = c.SDL_GPUColorTargetDescription
|
|
281
|
+
public type GPUGraphicsPipelineTargetInfo = c.SDL_GPUGraphicsPipelineTargetInfo
|
|
282
|
+
public type GPUGraphicsPipelineCreateInfo = c.SDL_GPUGraphicsPipelineCreateInfo
|
|
283
|
+
public type GPUComputePipelineCreateInfo = c.SDL_GPUComputePipelineCreateInfo
|
|
284
|
+
public type GPUColorTargetInfo = c.SDL_GPUColorTargetInfo
|
|
285
|
+
public type GPUDepthStencilTargetInfo = c.SDL_GPUDepthStencilTargetInfo
|
|
286
|
+
public type GPUBlitInfo = c.SDL_GPUBlitInfo
|
|
287
|
+
public type GPUBufferBinding = c.SDL_GPUBufferBinding
|
|
288
|
+
public type GPUTextureSamplerBinding = c.SDL_GPUTextureSamplerBinding
|
|
289
|
+
public type GPUStorageBufferReadWriteBinding = c.SDL_GPUStorageBufferReadWriteBinding
|
|
290
|
+
public type GPUStorageTextureReadWriteBinding = c.SDL_GPUStorageTextureReadWriteBinding
|
|
291
|
+
public type GPUVulkanOptions = c.SDL_GPUVulkanOptions
|
|
292
|
+
public type Haptic = c.SDL_Haptic
|
|
293
|
+
public type HapticEffectType = c.SDL_HapticEffectType
|
|
294
|
+
public type HapticDirectionType = c.SDL_HapticDirectionType
|
|
295
|
+
public type HapticEffectID = c.SDL_HapticEffectID
|
|
296
|
+
public type HapticDirection = c.SDL_HapticDirection
|
|
297
|
+
public type HapticConstant = c.SDL_HapticConstant
|
|
298
|
+
public type HapticPeriodic = c.SDL_HapticPeriodic
|
|
299
|
+
public type HapticCondition = c.SDL_HapticCondition
|
|
300
|
+
public type HapticRamp = c.SDL_HapticRamp
|
|
301
|
+
public type HapticLeftRight = c.SDL_HapticLeftRight
|
|
302
|
+
public type HapticCustom = c.SDL_HapticCustom
|
|
303
|
+
public type HapticEffect = c.SDL_HapticEffect
|
|
304
|
+
public type HapticID = c.SDL_HapticID
|
|
305
|
+
public type hid_device = c.SDL_hid_device
|
|
306
|
+
public type hid_bus_type = c.SDL_hid_bus_type
|
|
307
|
+
public type hid_device_info = c.SDL_hid_device_info
|
|
308
|
+
public type HintPriority = c.SDL_HintPriority
|
|
309
|
+
public type HintCallback = c.SDL_HintCallback
|
|
310
|
+
public type InitFlags = c.SDL_InitFlags
|
|
311
|
+
public type AppResult = c.SDL_AppResult
|
|
312
|
+
public type AppInit_func = c.SDL_AppInit_func
|
|
313
|
+
public type AppIterate_func = c.SDL_AppIterate_func
|
|
314
|
+
public type AppEvent_func = c.SDL_AppEvent_func
|
|
315
|
+
public type AppQuit_func = c.SDL_AppQuit_func
|
|
316
|
+
public type MainThreadCallback = c.SDL_MainThreadCallback
|
|
317
|
+
public type SharedObject = c.SDL_SharedObject
|
|
318
|
+
public type Locale = c.SDL_Locale
|
|
319
|
+
public type LogCategory = c.SDL_LogCategory
|
|
320
|
+
public type LogPriority = c.SDL_LogPriority
|
|
321
|
+
public type LogOutputFunction = c.SDL_LogOutputFunction
|
|
322
|
+
public type MessageBoxFlags = c.SDL_MessageBoxFlags
|
|
323
|
+
public type MessageBoxButtonFlags = c.SDL_MessageBoxButtonFlags
|
|
324
|
+
public type MessageBoxButtonData = c.SDL_MessageBoxButtonData
|
|
325
|
+
public type MessageBoxColor = c.SDL_MessageBoxColor
|
|
326
|
+
public type MessageBoxColorType = c.SDL_MessageBoxColorType
|
|
327
|
+
public type MessageBoxColorScheme = c.SDL_MessageBoxColorScheme
|
|
328
|
+
public type MessageBoxData = c.SDL_MessageBoxData
|
|
329
|
+
public type MetalView = c.SDL_MetalView
|
|
330
|
+
public type Process = c.SDL_Process
|
|
331
|
+
public type ProcessIO = c.SDL_ProcessIO
|
|
332
|
+
public type Vertex = c.SDL_Vertex
|
|
333
|
+
public type TextureAccess = c.SDL_TextureAccess
|
|
334
|
+
public type TextureAddressMode = c.SDL_TextureAddressMode
|
|
335
|
+
public type RendererLogicalPresentation = c.SDL_RendererLogicalPresentation
|
|
336
|
+
public opaque Renderer = c"SDL_Renderer"
|
|
337
|
+
public type Texture = c.SDL_Texture
|
|
338
|
+
public type GPURenderStateCreateInfo = c.SDL_GPURenderStateCreateInfo
|
|
339
|
+
public type GPURenderState = c.SDL_GPURenderState
|
|
340
|
+
public type StorageInterface = c.SDL_StorageInterface
|
|
341
|
+
public type Storage = c.SDL_Storage
|
|
342
|
+
public type Sandbox = c.SDL_Sandbox
|
|
343
|
+
public type DateTime = c.SDL_DateTime
|
|
344
|
+
public type DateFormat = c.SDL_DateFormat
|
|
345
|
+
public type TimeFormat = c.SDL_TimeFormat
|
|
346
|
+
public type TimerID = c.SDL_TimerID
|
|
347
|
+
public type TimerCallback = c.SDL_TimerCallback
|
|
348
|
+
public type NSTimerCallback = c.SDL_NSTimerCallback
|
|
349
|
+
public type Tray = c.SDL_Tray
|
|
350
|
+
public type TrayMenu = c.SDL_TrayMenu
|
|
351
|
+
public type TrayEntry = c.SDL_TrayEntry
|
|
352
|
+
public type TrayEntryFlags = c.SDL_TrayEntryFlags
|
|
353
|
+
public type TrayCallback = c.SDL_TrayCallback
|
|
354
|
+
public type MainFunc = c.SDL_main_func
|
|
355
|
+
|
|
356
|
+
public const PLATFORM_LINUX: int = c.SDL_PLATFORM_LINUX
|
|
357
|
+
public const PLATFORM_UNIX: int = c.SDL_PLATFORM_UNIX
|
|
358
|
+
public const MAX_SINT64: ptr_int = c.SDL_MAX_SINT64
|
|
359
|
+
public const MIN_SINT64: ptr_int = c.SDL_MIN_SINT64
|
|
360
|
+
public const MAX_UINT64: ptr_uint = c.SDL_MAX_UINT64
|
|
361
|
+
public const MIN_UINT64: ptr_uint = c.SDL_MIN_UINT64
|
|
362
|
+
public const FLT_EPSILON: float = c.SDL_FLT_EPSILON
|
|
363
|
+
public const INVALID_UNICODE_CODEPOINT: int = c.SDL_INVALID_UNICODE_CODEPOINT
|
|
364
|
+
public const PI_D: double = c.SDL_PI_D
|
|
365
|
+
public const PI_F: float = c.SDL_PI_F
|
|
366
|
+
public const ASSERT_LEVEL: int = c.SDL_ASSERT_LEVEL
|
|
367
|
+
public const NULL_WHILE_LOOP_CONDITION: int = c.SDL_NULL_WHILE_LOOP_CONDITION
|
|
368
|
+
public const LIL_ENDIAN: int = c.SDL_LIL_ENDIAN
|
|
369
|
+
public const BIG_ENDIAN: int = c.SDL_BIG_ENDIAN
|
|
370
|
+
public const AUDIO_MASK_BITSIZE: uint = c.SDL_AUDIO_MASK_BITSIZE
|
|
371
|
+
public const BLENDMODE_NONE: uint = c.SDL_BLENDMODE_NONE
|
|
372
|
+
public const BLENDMODE_BLEND: uint = c.SDL_BLENDMODE_BLEND
|
|
373
|
+
public const BLENDMODE_BLEND_PREMULTIPLIED: uint = c.SDL_BLENDMODE_BLEND_PREMULTIPLIED
|
|
374
|
+
public const BLENDMODE_ADD: uint = c.SDL_BLENDMODE_ADD
|
|
375
|
+
public const BLENDMODE_ADD_PREMULTIPLIED: uint = c.SDL_BLENDMODE_ADD_PREMULTIPLIED
|
|
376
|
+
public const BLENDMODE_MOD: uint = c.SDL_BLENDMODE_MOD
|
|
377
|
+
public const BLENDMODE_MUL: uint = c.SDL_BLENDMODE_MUL
|
|
378
|
+
public const BLENDMODE_INVALID: uint = c.SDL_BLENDMODE_INVALID
|
|
379
|
+
public const ALPHA_OPAQUE: int = c.SDL_ALPHA_OPAQUE
|
|
380
|
+
public const ALPHA_OPAQUE_FLOAT: float = c.SDL_ALPHA_OPAQUE_FLOAT
|
|
381
|
+
public const ALPHA_TRANSPARENT: int = c.SDL_ALPHA_TRANSPARENT
|
|
382
|
+
public const ALPHA_TRANSPARENT_FLOAT: float = c.SDL_ALPHA_TRANSPARENT_FLOAT
|
|
383
|
+
public const SURFACE_PREALLOCATED: uint = c.SDL_SURFACE_PREALLOCATED
|
|
384
|
+
public const SURFACE_LOCK_NEEDED: uint = c.SDL_SURFACE_LOCK_NEEDED
|
|
385
|
+
public const SURFACE_LOCKED: uint = c.SDL_SURFACE_LOCKED
|
|
386
|
+
public const SURFACE_SIMD_ALIGNED: uint = c.SDL_SURFACE_SIMD_ALIGNED
|
|
387
|
+
public const CACHELINE_SIZE: int = c.SDL_CACHELINE_SIZE
|
|
388
|
+
public const WINDOW_FULLSCREEN: ptr_uint = c.SDL_WINDOW_FULLSCREEN
|
|
389
|
+
public const WINDOW_OPENGL: ptr_uint = c.SDL_WINDOW_OPENGL
|
|
390
|
+
public const WINDOW_OCCLUDED: ptr_uint = c.SDL_WINDOW_OCCLUDED
|
|
391
|
+
public const WINDOW_HIDDEN: ptr_uint = c.SDL_WINDOW_HIDDEN
|
|
392
|
+
public const WINDOW_BORDERLESS: ptr_uint = c.SDL_WINDOW_BORDERLESS
|
|
393
|
+
public const WINDOW_RESIZABLE: ptr_uint = c.SDL_WINDOW_RESIZABLE
|
|
394
|
+
public const WINDOW_MINIMIZED: ptr_uint = c.SDL_WINDOW_MINIMIZED
|
|
395
|
+
public const WINDOW_MAXIMIZED: ptr_uint = c.SDL_WINDOW_MAXIMIZED
|
|
396
|
+
public const WINDOW_MOUSE_GRABBED: ptr_uint = c.SDL_WINDOW_MOUSE_GRABBED
|
|
397
|
+
public const WINDOW_INPUT_FOCUS: ptr_uint = c.SDL_WINDOW_INPUT_FOCUS
|
|
398
|
+
public const WINDOW_MOUSE_FOCUS: ptr_uint = c.SDL_WINDOW_MOUSE_FOCUS
|
|
399
|
+
public const WINDOW_EXTERNAL: ptr_uint = c.SDL_WINDOW_EXTERNAL
|
|
400
|
+
public const WINDOW_MODAL: ptr_uint = c.SDL_WINDOW_MODAL
|
|
401
|
+
public const WINDOW_HIGH_PIXEL_DENSITY: ptr_uint = c.SDL_WINDOW_HIGH_PIXEL_DENSITY
|
|
402
|
+
public const WINDOW_MOUSE_CAPTURE: ptr_uint = c.SDL_WINDOW_MOUSE_CAPTURE
|
|
403
|
+
public const WINDOW_MOUSE_RELATIVE_MODE: ptr_uint = c.SDL_WINDOW_MOUSE_RELATIVE_MODE
|
|
404
|
+
public const WINDOW_ALWAYS_ON_TOP: ptr_uint = c.SDL_WINDOW_ALWAYS_ON_TOP
|
|
405
|
+
public const WINDOW_UTILITY: ptr_uint = c.SDL_WINDOW_UTILITY
|
|
406
|
+
public const WINDOW_TOOLTIP: ptr_uint = c.SDL_WINDOW_TOOLTIP
|
|
407
|
+
public const WINDOW_POPUP_MENU: ptr_uint = c.SDL_WINDOW_POPUP_MENU
|
|
408
|
+
public const WINDOW_KEYBOARD_GRABBED: ptr_uint = c.SDL_WINDOW_KEYBOARD_GRABBED
|
|
409
|
+
public const WINDOW_FILL_DOCUMENT: ptr_uint = c.SDL_WINDOW_FILL_DOCUMENT
|
|
410
|
+
public const WINDOW_VULKAN: ptr_uint = c.SDL_WINDOW_VULKAN
|
|
411
|
+
public const WINDOW_METAL: ptr_uint = c.SDL_WINDOW_METAL
|
|
412
|
+
public const WINDOW_TRANSPARENT: ptr_uint = c.SDL_WINDOW_TRANSPARENT
|
|
413
|
+
public const WINDOW_NOT_FOCUSABLE: ptr_uint = c.SDL_WINDOW_NOT_FOCUSABLE
|
|
414
|
+
public const WINDOWPOS_UNDEFINED_MASK: uint = c.SDL_WINDOWPOS_UNDEFINED_MASK
|
|
415
|
+
public const WINDOWPOS_CENTERED_MASK: uint = c.SDL_WINDOWPOS_CENTERED_MASK
|
|
416
|
+
public const GL_CONTEXT_PROFILE_CORE: int = c.SDL_GL_CONTEXT_PROFILE_CORE
|
|
417
|
+
public const GL_CONTEXT_PROFILE_COMPATIBILITY: int = c.SDL_GL_CONTEXT_PROFILE_COMPATIBILITY
|
|
418
|
+
public const GL_CONTEXT_PROFILE_ES: int = c.SDL_GL_CONTEXT_PROFILE_ES
|
|
419
|
+
public const GL_CONTEXT_DEBUG_FLAG: int = c.SDL_GL_CONTEXT_DEBUG_FLAG
|
|
420
|
+
public const GL_CONTEXT_FORWARD_COMPATIBLE_FLAG: int = c.SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG
|
|
421
|
+
public const GL_CONTEXT_ROBUST_ACCESS_FLAG: int = c.SDL_GL_CONTEXT_ROBUST_ACCESS_FLAG
|
|
422
|
+
public const GL_CONTEXT_RESET_ISOLATION_FLAG: int = c.SDL_GL_CONTEXT_RESET_ISOLATION_FLAG
|
|
423
|
+
public const GL_CONTEXT_RELEASE_BEHAVIOR_NONE: int = c.SDL_GL_CONTEXT_RELEASE_BEHAVIOR_NONE
|
|
424
|
+
public const GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH: int = c.SDL_GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH
|
|
425
|
+
public const GL_CONTEXT_RESET_NO_NOTIFICATION: int = c.SDL_GL_CONTEXT_RESET_NO_NOTIFICATION
|
|
426
|
+
public const GL_CONTEXT_RESET_LOSE_CONTEXT: int = c.SDL_GL_CONTEXT_RESET_LOSE_CONTEXT
|
|
427
|
+
public const WINDOW_SURFACE_VSYNC_DISABLED: int = c.SDL_WINDOW_SURFACE_VSYNC_DISABLED
|
|
428
|
+
public const WINDOW_SURFACE_VSYNC_ADAPTIVE: int = c.SDL_WINDOW_SURFACE_VSYNC_ADAPTIVE
|
|
429
|
+
public const ELF_NOTE_DLOPEN_TYPE: uint = c.SDL_ELF_NOTE_DLOPEN_TYPE
|
|
430
|
+
public const STANDARD_GRAVITY: float = c.SDL_STANDARD_GRAVITY
|
|
431
|
+
public const JOYSTICK_AXIS_MAX: int = c.SDL_JOYSTICK_AXIS_MAX
|
|
432
|
+
public const JOYSTICK_AXIS_MIN: int = c.SDL_JOYSTICK_AXIS_MIN
|
|
433
|
+
public const HAT_CENTERED: uint = c.SDL_HAT_CENTERED
|
|
434
|
+
public const HAT_UP: uint = c.SDL_HAT_UP
|
|
435
|
+
public const HAT_RIGHT: uint = c.SDL_HAT_RIGHT
|
|
436
|
+
public const HAT_DOWN: uint = c.SDL_HAT_DOWN
|
|
437
|
+
public const HAT_LEFT: uint = c.SDL_HAT_LEFT
|
|
438
|
+
public const KMOD_NONE: uint = c.SDL_KMOD_NONE
|
|
439
|
+
public const KMOD_LSHIFT: uint = c.SDL_KMOD_LSHIFT
|
|
440
|
+
public const KMOD_RSHIFT: uint = c.SDL_KMOD_RSHIFT
|
|
441
|
+
public const KMOD_LEVEL5: uint = c.SDL_KMOD_LEVEL5
|
|
442
|
+
public const KMOD_LCTRL: uint = c.SDL_KMOD_LCTRL
|
|
443
|
+
public const KMOD_RCTRL: uint = c.SDL_KMOD_RCTRL
|
|
444
|
+
public const KMOD_LALT: uint = c.SDL_KMOD_LALT
|
|
445
|
+
public const KMOD_RALT: uint = c.SDL_KMOD_RALT
|
|
446
|
+
public const KMOD_LGUI: uint = c.SDL_KMOD_LGUI
|
|
447
|
+
public const KMOD_RGUI: uint = c.SDL_KMOD_RGUI
|
|
448
|
+
public const KMOD_NUM: uint = c.SDL_KMOD_NUM
|
|
449
|
+
public const KMOD_CAPS: uint = c.SDL_KMOD_CAPS
|
|
450
|
+
public const KMOD_MODE: uint = c.SDL_KMOD_MODE
|
|
451
|
+
public const KMOD_SCROLL: uint = c.SDL_KMOD_SCROLL
|
|
452
|
+
public const BUTTON_LEFT: int = c.SDL_BUTTON_LEFT
|
|
453
|
+
public const BUTTON_MIDDLE: int = c.SDL_BUTTON_MIDDLE
|
|
454
|
+
public const BUTTON_RIGHT: int = c.SDL_BUTTON_RIGHT
|
|
455
|
+
public const BUTTON_X1: int = c.SDL_BUTTON_X1
|
|
456
|
+
public const BUTTON_X2: int = c.SDL_BUTTON_X2
|
|
457
|
+
public const GPU_SHADERFORMAT_INVALID: int = c.SDL_GPU_SHADERFORMAT_INVALID
|
|
458
|
+
public const HAPTIC_INFINITY: uint = c.SDL_HAPTIC_INFINITY
|
|
459
|
+
public const HAPTIC_POLAR: int = c.SDL_HAPTIC_POLAR
|
|
460
|
+
public const HAPTIC_CARTESIAN: int = c.SDL_HAPTIC_CARTESIAN
|
|
461
|
+
public const HAPTIC_SPHERICAL: int = c.SDL_HAPTIC_SPHERICAL
|
|
462
|
+
public const HAPTIC_STEERING_AXIS: int = c.SDL_HAPTIC_STEERING_AXIS
|
|
463
|
+
public const INIT_AUDIO: uint = c.SDL_INIT_AUDIO
|
|
464
|
+
public const INIT_VIDEO: uint = c.SDL_INIT_VIDEO
|
|
465
|
+
public const INIT_JOYSTICK: uint = c.SDL_INIT_JOYSTICK
|
|
466
|
+
public const INIT_HAPTIC: uint = c.SDL_INIT_HAPTIC
|
|
467
|
+
public const INIT_GAMEPAD: uint = c.SDL_INIT_GAMEPAD
|
|
468
|
+
public const INIT_EVENTS: uint = c.SDL_INIT_EVENTS
|
|
469
|
+
public const INIT_SENSOR: uint = c.SDL_INIT_SENSOR
|
|
470
|
+
public const INIT_CAMERA: uint = c.SDL_INIT_CAMERA
|
|
471
|
+
public const MESSAGEBOX_ERROR: uint = c.SDL_MESSAGEBOX_ERROR
|
|
472
|
+
public const MESSAGEBOX_WARNING: uint = c.SDL_MESSAGEBOX_WARNING
|
|
473
|
+
public const MESSAGEBOX_INFORMATION: uint = c.SDL_MESSAGEBOX_INFORMATION
|
|
474
|
+
public const MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT: uint = c.SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT
|
|
475
|
+
public const MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT: uint = c.SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT
|
|
476
|
+
public const MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT: uint = c.SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT
|
|
477
|
+
public const MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT: uint = c.SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT
|
|
478
|
+
public const RENDERER_VSYNC_DISABLED: int = c.SDL_RENDERER_VSYNC_DISABLED
|
|
479
|
+
public const RENDERER_VSYNC_ADAPTIVE: int = c.SDL_RENDERER_VSYNC_ADAPTIVE
|
|
480
|
+
public const DEBUG_TEXT_FONT_CHARACTER_SIZE: int = c.SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE
|
|
481
|
+
public const MS_PER_SECOND: int = c.SDL_MS_PER_SECOND
|
|
482
|
+
public const US_PER_SECOND: int = c.SDL_US_PER_SECOND
|
|
483
|
+
public const NS_PER_SECOND: long = c.SDL_NS_PER_SECOND
|
|
484
|
+
public const NS_PER_MS: int = c.SDL_NS_PER_MS
|
|
485
|
+
public const NS_PER_US: int = c.SDL_NS_PER_US
|
|
486
|
+
public const TRAYENTRY_BUTTON: uint = c.SDL_TRAYENTRY_BUTTON
|
|
487
|
+
public const TRAYENTRY_CHECKBOX: uint = c.SDL_TRAYENTRY_CHECKBOX
|
|
488
|
+
public const TRAYENTRY_SUBMENU: uint = c.SDL_TRAYENTRY_SUBMENU
|
|
489
|
+
public const TRAYENTRY_DISABLED: uint = c.SDL_TRAYENTRY_DISABLED
|
|
490
|
+
public const TRAYENTRY_CHECKED: uint = c.SDL_TRAYENTRY_CHECKED
|
|
491
|
+
public const MAJOR_VERSION: int = c.SDL_MAJOR_VERSION
|
|
492
|
+
public const MINOR_VERSION: int = c.SDL_MINOR_VERSION
|
|
493
|
+
public const MICRO_VERSION: int = c.SDL_MICRO_VERSION
|
|
494
|
+
|
|
495
|
+
public foreign function malloc(size: ptr_uint) -> ptr[void]? = c.SDL_malloc
|
|
496
|
+
public foreign function calloc(nmemb: ptr_uint, size: ptr_uint) -> ptr[void]? = c.SDL_calloc
|
|
497
|
+
public foreign function realloc(mem: ptr[void]?, size: ptr_uint) -> ptr[void]? = c.SDL_realloc
|
|
498
|
+
public foreign function free(mem: ptr[void]?) -> void = c.SDL_free
|
|
499
|
+
public foreign function get_original_memory_functions(malloc_func: ptr[malloc_func], calloc_func: ptr[calloc_func], realloc_func: ptr[realloc_func], free_func: ptr[free_func]) -> void = c.SDL_GetOriginalMemoryFunctions
|
|
500
|
+
public foreign function get_memory_functions(malloc_func: ptr[malloc_func], calloc_func: ptr[calloc_func], realloc_func: ptr[realloc_func], free_func: ptr[free_func]) -> void = c.SDL_GetMemoryFunctions
|
|
501
|
+
public foreign function set_memory_functions(malloc_func: fn(arg0: ptr_uint) -> ptr[void], calloc_func: fn(arg0: ptr_uint, arg1: ptr_uint) -> ptr[void], realloc_func: fn(arg0: ptr[void], arg1: ptr_uint) -> ptr[void], free_func: fn(arg0: ptr[void]) -> void) -> bool = c.SDL_SetMemoryFunctions
|
|
502
|
+
public foreign function aligned_alloc(alignment: ptr_uint, size: ptr_uint) -> ptr[void]? = c.SDL_aligned_alloc
|
|
503
|
+
public foreign function aligned_free(mem: ptr[void]?) -> void = c.SDL_aligned_free
|
|
504
|
+
public foreign function get_num_allocations() -> int = c.SDL_GetNumAllocations
|
|
505
|
+
public foreign function get_environment() -> ptr[Environment]? = c.SDL_GetEnvironment
|
|
506
|
+
public foreign function create_environment(populated: bool) -> ptr[Environment]? = c.SDL_CreateEnvironment
|
|
507
|
+
public foreign function get_environment_variable(env: ptr[Environment], name: str as cstr) -> cstr? = c.SDL_GetEnvironmentVariable
|
|
508
|
+
public foreign function get_environment_variables(env: ptr[Environment]) -> ptr[ptr[char]]? = c.SDL_GetEnvironmentVariables
|
|
509
|
+
public foreign function set_environment_variable(env: ptr[Environment], name: str as cstr, value: str as cstr, overwrite: bool) -> bool = c.SDL_SetEnvironmentVariable
|
|
510
|
+
public foreign function unset_environment_variable(env: ptr[Environment], name: str as cstr) -> bool = c.SDL_UnsetEnvironmentVariable
|
|
511
|
+
public foreign function destroy_environment(env: ptr[Environment]) -> void = c.SDL_DestroyEnvironment
|
|
512
|
+
public foreign function getenv(name: str as cstr) -> cstr? = c.SDL_getenv
|
|
513
|
+
public foreign function getenv_unsafe(name: str as cstr) -> cstr? = c.SDL_getenv_unsafe
|
|
514
|
+
public foreign function setenv_unsafe(name: str as cstr, value: str as cstr, overwrite: int) -> int = c.SDL_setenv_unsafe
|
|
515
|
+
public foreign function unsetenv_unsafe(name: str as cstr) -> int = c.SDL_unsetenv_unsafe
|
|
516
|
+
public foreign function qsort(base: ptr[void], nmemb: ptr_uint, size: ptr_uint, compare: fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int) -> void = c.SDL_qsort
|
|
517
|
+
public foreign function bsearch(key: const_ptr[void], base: const_ptr[void], nmemb: ptr_uint, size: ptr_uint, compare: fn(arg0: const_ptr[void], arg1: const_ptr[void]) -> int) -> ptr[void]? = c.SDL_bsearch
|
|
518
|
+
public foreign function qsort_r(base: ptr[void], nmemb: ptr_uint, size: ptr_uint, compare: fn(arg0: ptr[void], arg1: const_ptr[void], arg2: const_ptr[void]) -> int, userdata: ptr[void]) -> void = c.SDL_qsort_r
|
|
519
|
+
public foreign function bsearch_r(key: const_ptr[void], base: const_ptr[void], nmemb: ptr_uint, size: ptr_uint, compare: fn(arg0: ptr[void], arg1: const_ptr[void], arg2: const_ptr[void]) -> int, userdata: ptr[void]) -> ptr[void]? = c.SDL_bsearch_r
|
|
520
|
+
public foreign function abs(x: int) -> int = c.SDL_abs
|
|
521
|
+
public foreign function isalpha(x: int) -> int = c.SDL_isalpha
|
|
522
|
+
public foreign function isalnum(x: int) -> int = c.SDL_isalnum
|
|
523
|
+
public foreign function isblank(x: int) -> int = c.SDL_isblank
|
|
524
|
+
public foreign function iscntrl(x: int) -> int = c.SDL_iscntrl
|
|
525
|
+
public foreign function isdigit(x: int) -> int = c.SDL_isdigit
|
|
526
|
+
public foreign function isxdigit(x: int) -> int = c.SDL_isxdigit
|
|
527
|
+
public foreign function ispunct(x: int) -> int = c.SDL_ispunct
|
|
528
|
+
public foreign function isspace(x: int) -> int = c.SDL_isspace
|
|
529
|
+
public foreign function isupper(x: int) -> int = c.SDL_isupper
|
|
530
|
+
public foreign function islower(x: int) -> int = c.SDL_islower
|
|
531
|
+
public foreign function isprint(x: int) -> int = c.SDL_isprint
|
|
532
|
+
public foreign function isgraph(x: int) -> int = c.SDL_isgraph
|
|
533
|
+
public foreign function toupper(x: int) -> int = c.SDL_toupper
|
|
534
|
+
public foreign function tolower(x: int) -> int = c.SDL_tolower
|
|
535
|
+
public foreign function crc16(crc: ushort, data: const_ptr[void], len: ptr_uint) -> ushort = c.SDL_crc16
|
|
536
|
+
public foreign function crc32(crc: uint, data: const_ptr[void], len: ptr_uint) -> uint = c.SDL_crc32
|
|
537
|
+
public foreign function murmur3_32(data: const_ptr[void], len: ptr_uint, seed: uint) -> uint = c.SDL_murmur3_32
|
|
538
|
+
public foreign function memcpy(dst: ptr[void], src: const_ptr[void], len: ptr_uint) -> ptr[void] = c.SDL_memcpy
|
|
539
|
+
public foreign function memmove(dst: ptr[void], src: const_ptr[void], len: ptr_uint) -> ptr[void] = c.SDL_memmove
|
|
540
|
+
public foreign function memset(dst: ptr[void], c: int, len: ptr_uint) -> ptr[void] = c.SDL_memset
|
|
541
|
+
public foreign function memset4(dst: ptr[void], val: uint, dwords: ptr_uint) -> ptr[void] = c.SDL_memset4
|
|
542
|
+
public foreign function memcmp(s1: const_ptr[void], s2: const_ptr[void], len: ptr_uint) -> int = c.SDL_memcmp
|
|
543
|
+
public foreign function wcslen(wstr: const_ptr[int]) -> ptr_uint = c.SDL_wcslen
|
|
544
|
+
public foreign function wcsnlen(wstr: const_ptr[int], maxlen: ptr_uint) -> ptr_uint = c.SDL_wcsnlen
|
|
545
|
+
public foreign function wcslcpy(dst: ptr[int], src: const_ptr[int], maxlen: ptr_uint) -> ptr_uint = c.SDL_wcslcpy
|
|
546
|
+
public foreign function wcslcat(dst: ptr[int], src: const_ptr[int], maxlen: ptr_uint) -> ptr_uint = c.SDL_wcslcat
|
|
547
|
+
public foreign function wcsdup(wstr: const_ptr[int]) -> ptr[int] = c.SDL_wcsdup
|
|
548
|
+
public foreign function wcsstr(haystack: const_ptr[int], needle: const_ptr[int]) -> ptr[int]? = c.SDL_wcsstr
|
|
549
|
+
public foreign function wcsnstr(haystack: const_ptr[int], needle: const_ptr[int], maxlen: ptr_uint) -> ptr[int]? = c.SDL_wcsnstr
|
|
550
|
+
public foreign function wcscmp(str1: const_ptr[int], str2: const_ptr[int]) -> int = c.SDL_wcscmp
|
|
551
|
+
public foreign function wcsncmp(str1: const_ptr[int], str2: const_ptr[int], maxlen: ptr_uint) -> int = c.SDL_wcsncmp
|
|
552
|
+
public foreign function wcscasecmp(str1: const_ptr[int], str2: const_ptr[int]) -> int = c.SDL_wcscasecmp
|
|
553
|
+
public foreign function wcsncasecmp(str1: const_ptr[int], str2: const_ptr[int], maxlen: ptr_uint) -> int = c.SDL_wcsncasecmp
|
|
554
|
+
public foreign function wcstol(str_: const_ptr[int], endp: ptr[ptr[int]], base: int) -> ptr_int = c.SDL_wcstol
|
|
555
|
+
public foreign function strlen(str_: str as cstr) -> ptr_uint = c.SDL_strlen
|
|
556
|
+
public foreign function strnlen(str_: str as cstr, maxlen: ptr_uint) -> ptr_uint = c.SDL_strnlen
|
|
557
|
+
public foreign function strlcpy(dst: ptr[char], src: str as cstr, maxlen: ptr_uint) -> ptr_uint = c.SDL_strlcpy
|
|
558
|
+
public foreign function utf8strlcpy(dst: ptr[char], src: str as cstr, dst_bytes: ptr_uint) -> ptr_uint = c.SDL_utf8strlcpy
|
|
559
|
+
public foreign function strlcat(dst: ptr[char], src: str as cstr, maxlen: ptr_uint) -> ptr_uint = c.SDL_strlcat
|
|
560
|
+
public foreign function strdup(str_: str as cstr) -> ptr[char]? = c.SDL_strdup
|
|
561
|
+
public foreign function strndup(str_: str as cstr, maxlen: ptr_uint) -> ptr[char] = c.SDL_strndup
|
|
562
|
+
public foreign function strrev(str_: ptr[char]) -> ptr[char] = c.SDL_strrev
|
|
563
|
+
public foreign function strupr(str_: ptr[char]) -> ptr[char] = c.SDL_strupr
|
|
564
|
+
public foreign function strlwr(str_: ptr[char]) -> ptr[char] = c.SDL_strlwr
|
|
565
|
+
public foreign function strchr(str_: str as cstr, c: int) -> ptr[char]? = c.SDL_strchr
|
|
566
|
+
public foreign function strrchr(str_: str as cstr, c: int) -> ptr[char]? = c.SDL_strrchr
|
|
567
|
+
public foreign function strstr(haystack: str as cstr, needle: str as cstr) -> ptr[char]? = c.SDL_strstr
|
|
568
|
+
public foreign function strnstr(haystack: str as cstr, needle: str as cstr, maxlen: ptr_uint) -> ptr[char]? = c.SDL_strnstr
|
|
569
|
+
public foreign function strcasestr(haystack: str as cstr, needle: str as cstr) -> ptr[char]? = c.SDL_strcasestr
|
|
570
|
+
public foreign function strtok_r(str_: ptr[char]?, delim: str as cstr, saveptr: ptr[ptr[char]]) -> ptr[char]? = c.SDL_strtok_r
|
|
571
|
+
public foreign function utf8strlen(str_: str as cstr) -> ptr_uint = c.SDL_utf8strlen
|
|
572
|
+
public foreign function utf8strnlen(str_: str as cstr, bytes: ptr_uint) -> ptr_uint = c.SDL_utf8strnlen
|
|
573
|
+
public foreign function itoa(value: int, str_: ptr[char], radix: int) -> ptr[char] = c.SDL_itoa
|
|
574
|
+
public foreign function uitoa(value: uint, str_: ptr[char], radix: int) -> ptr[char] = c.SDL_uitoa
|
|
575
|
+
public foreign function ltoa(value: ptr_int, str_: ptr[char], radix: int) -> ptr[char] = c.SDL_ltoa
|
|
576
|
+
public foreign function ultoa(value: ptr_uint, str_: ptr[char], radix: int) -> ptr[char] = c.SDL_ultoa
|
|
577
|
+
public foreign function lltoa(value: long, str_: ptr[char], radix: int) -> ptr[char] = c.SDL_lltoa
|
|
578
|
+
public foreign function ulltoa(value: ulong, str_: ptr[char], radix: int) -> ptr[char] = c.SDL_ulltoa
|
|
579
|
+
public foreign function atoi(str_: str as cstr) -> int = c.SDL_atoi
|
|
580
|
+
public foreign function atof(str_: str as cstr) -> double = c.SDL_atof
|
|
581
|
+
public foreign function strtol(str_: str as cstr, endp: ptr[ptr[char]], base: int) -> ptr_int = c.SDL_strtol
|
|
582
|
+
public foreign function strtoul(str_: str as cstr, endp: ptr[ptr[char]], base: int) -> ptr_uint = c.SDL_strtoul
|
|
583
|
+
public foreign function strtoll(str_: str as cstr, endp: ptr[ptr[char]], base: int) -> long = c.SDL_strtoll
|
|
584
|
+
public foreign function strtoull(str_: str as cstr, endp: ptr[ptr[char]], base: int) -> ulong = c.SDL_strtoull
|
|
585
|
+
public foreign function strtod(str_: str as cstr, endp: ptr[ptr[char]]) -> double = c.SDL_strtod
|
|
586
|
+
public foreign function strcmp(str1: str as cstr, str2: str as cstr) -> int = c.SDL_strcmp
|
|
587
|
+
public foreign function strncmp(str1: str as cstr, str2: str as cstr, maxlen: ptr_uint) -> int = c.SDL_strncmp
|
|
588
|
+
public foreign function strcasecmp(str1: str as cstr, str2: str as cstr) -> int = c.SDL_strcasecmp
|
|
589
|
+
public foreign function strncasecmp(str1: str as cstr, str2: str as cstr, maxlen: ptr_uint) -> int = c.SDL_strncasecmp
|
|
590
|
+
public foreign function strpbrk(str_: str as cstr, breakset: str as cstr) -> ptr[char] = c.SDL_strpbrk
|
|
591
|
+
public foreign function step_utf8(pstr: ptr[cstr], pslen: ptr[ptr_uint]?) -> uint = c.SDL_StepUTF8
|
|
592
|
+
public foreign function step_back_utf8(start: str as cstr, pstr: ptr[cstr]) -> uint = c.SDL_StepBackUTF8
|
|
593
|
+
public foreign function ucs4_to_utf8(codepoint: uint, dst: ptr[char]) -> ptr[char] = c.SDL_UCS4ToUTF8
|
|
594
|
+
public foreign function sscanf(text: str as cstr, fmt: str as cstr, ...) -> int = c.SDL_sscanf
|
|
595
|
+
public foreign function vsscanf(text: str as cstr, fmt: str as cstr, ap: va_list) -> int = c.SDL_vsscanf
|
|
596
|
+
public foreign function snprintf(text: ptr[char], maxlen: ptr_uint, fmt: str as cstr, ...) -> int = c.SDL_snprintf
|
|
597
|
+
public foreign function swprintf(text: ptr[int], maxlen: ptr_uint, fmt: const_ptr[int], ...) -> int = c.SDL_swprintf
|
|
598
|
+
public foreign function vsnprintf(text: ptr[char], maxlen: ptr_uint, fmt: str as cstr, ap: va_list) -> int = c.SDL_vsnprintf
|
|
599
|
+
public foreign function vswprintf(text: ptr[int], maxlen: ptr_uint, fmt: const_ptr[int], ap: va_list) -> int = c.SDL_vswprintf
|
|
600
|
+
public foreign function asprintf(strp: ptr[ptr[char]], fmt: str as cstr, ...) -> int = c.SDL_asprintf
|
|
601
|
+
public foreign function vasprintf(strp: ptr[ptr[char]], fmt: str as cstr, ap: va_list) -> int = c.SDL_vasprintf
|
|
602
|
+
public foreign function srand(seed: ptr_uint) -> void = c.SDL_srand
|
|
603
|
+
public foreign function rand(n: int) -> int = c.SDL_rand
|
|
604
|
+
public foreign function randf() -> float = c.SDL_randf
|
|
605
|
+
public foreign function rand_bits() -> uint = c.SDL_rand_bits
|
|
606
|
+
public foreign function rand_r(state: ptr[ptr_uint], n: int) -> int = c.SDL_rand_r
|
|
607
|
+
public foreign function randf_r(state: ptr[ptr_uint]) -> float = c.SDL_randf_r
|
|
608
|
+
public foreign function rand_bits_r(state: ptr[ptr_uint]) -> uint = c.SDL_rand_bits_r
|
|
609
|
+
public foreign function acos(x: double) -> double = c.SDL_acos
|
|
610
|
+
public foreign function acosf(x: float) -> float = c.SDL_acosf
|
|
611
|
+
public foreign function asin(x: double) -> double = c.SDL_asin
|
|
612
|
+
public foreign function asinf(x: float) -> float = c.SDL_asinf
|
|
613
|
+
public foreign function atan(x: double) -> double = c.SDL_atan
|
|
614
|
+
public foreign function atanf(x: float) -> float = c.SDL_atanf
|
|
615
|
+
public foreign function atan2(y: double, x: double) -> double = c.SDL_atan2
|
|
616
|
+
public foreign function atan2f(y: float, x: float) -> float = c.SDL_atan2f
|
|
617
|
+
public foreign function ceil(x: double) -> double = c.SDL_ceil
|
|
618
|
+
public foreign function ceilf(x: float) -> float = c.SDL_ceilf
|
|
619
|
+
public foreign function copysign(x: double, y: double) -> double = c.SDL_copysign
|
|
620
|
+
public foreign function copysignf(x: float, y: float) -> float = c.SDL_copysignf
|
|
621
|
+
public foreign function cos(x: double) -> double = c.SDL_cos
|
|
622
|
+
public foreign function cosf(x: float) -> float = c.SDL_cosf
|
|
623
|
+
public foreign function exp(x: double) -> double = c.SDL_exp
|
|
624
|
+
public foreign function expf(x: float) -> float = c.SDL_expf
|
|
625
|
+
public foreign function fabs(x: double) -> double = c.SDL_fabs
|
|
626
|
+
public foreign function fabsf(x: float) -> float = c.SDL_fabsf
|
|
627
|
+
public foreign function floor(x: double) -> double = c.SDL_floor
|
|
628
|
+
public foreign function floorf(x: float) -> float = c.SDL_floorf
|
|
629
|
+
public foreign function trunc(x: double) -> double = c.SDL_trunc
|
|
630
|
+
public foreign function truncf(x: float) -> float = c.SDL_truncf
|
|
631
|
+
public foreign function fmod(x: double, y: double) -> double = c.SDL_fmod
|
|
632
|
+
public foreign function fmodf(x: float, y: float) -> float = c.SDL_fmodf
|
|
633
|
+
public foreign function isinf(x: double) -> int = c.SDL_isinf
|
|
634
|
+
public foreign function isinff(x: float) -> int = c.SDL_isinff
|
|
635
|
+
public foreign function isnan(x: double) -> int = c.SDL_isnan
|
|
636
|
+
public foreign function isnanf(x: float) -> int = c.SDL_isnanf
|
|
637
|
+
public foreign function log(x: double) -> double = c.SDL_log
|
|
638
|
+
public foreign function logf(x: float) -> float = c.SDL_logf
|
|
639
|
+
public foreign function log10(x: double) -> double = c.SDL_log10
|
|
640
|
+
public foreign function log10f(x: float) -> float = c.SDL_log10f
|
|
641
|
+
public foreign function modf(x: double, y: ptr[double]) -> double = c.SDL_modf
|
|
642
|
+
public foreign function modff(x: float, y: ptr[float]) -> float = c.SDL_modff
|
|
643
|
+
public foreign function pow(x: double, y: double) -> double = c.SDL_pow
|
|
644
|
+
public foreign function powf(x: float, y: float) -> float = c.SDL_powf
|
|
645
|
+
public foreign function round(x: double) -> double = c.SDL_round
|
|
646
|
+
public foreign function roundf(x: float) -> float = c.SDL_roundf
|
|
647
|
+
public foreign function lround(x: double) -> ptr_int = c.SDL_lround
|
|
648
|
+
public foreign function lroundf(x: float) -> ptr_int = c.SDL_lroundf
|
|
649
|
+
public foreign function scalbn(x: double, n: int) -> double = c.SDL_scalbn
|
|
650
|
+
public foreign function scalbnf(x: float, n: int) -> float = c.SDL_scalbnf
|
|
651
|
+
public foreign function sin(x: double) -> double = c.SDL_sin
|
|
652
|
+
public foreign function sinf(x: float) -> float = c.SDL_sinf
|
|
653
|
+
public foreign function sqrt(x: double) -> double = c.SDL_sqrt
|
|
654
|
+
public foreign function sqrtf(x: float) -> float = c.SDL_sqrtf
|
|
655
|
+
public foreign function tan(x: double) -> double = c.SDL_tan
|
|
656
|
+
public foreign function tanf(x: float) -> float = c.SDL_tanf
|
|
657
|
+
public foreign function iconv_open(tocode: str as cstr, fromcode: str as cstr) -> iconv_t = c.SDL_iconv_open
|
|
658
|
+
public foreign function iconv_close(cd: ptr[iconv_data_t]) -> int = c.SDL_iconv_close
|
|
659
|
+
public foreign function iconv(cd: ptr[iconv_data_t], inbuf: ptr[cstr], inbytesleft: ptr[ptr_uint], outbuf: ptr[ptr[char]], outbytesleft: ptr[ptr_uint]) -> ptr_uint = c.SDL_iconv
|
|
660
|
+
public foreign function iconv_string(tocode: str as cstr, fromcode: str as cstr, inbuf: str as cstr, inbytesleft: ptr_uint) -> ptr[char]? = c.SDL_iconv_string
|
|
661
|
+
public foreign function report_assertion(data: ptr[AssertData], func: str as cstr, file: str as cstr, line: int) -> AssertState = c.SDL_ReportAssertion
|
|
662
|
+
public foreign function set_assertion_handler(handler: AssertionHandler?, userdata: ptr[void]) -> void = c.SDL_SetAssertionHandler
|
|
663
|
+
public foreign function get_default_assertion_handler() -> AssertionHandler = c.SDL_GetDefaultAssertionHandler
|
|
664
|
+
public foreign function get_assertion_handler(puserdata: ptr[ptr[void]]) -> AssertionHandler = c.SDL_GetAssertionHandler
|
|
665
|
+
public foreign function get_assertion_report() -> const_ptr[AssertData]? = c.SDL_GetAssertionReport
|
|
666
|
+
public foreign function reset_assertion_report() -> void = c.SDL_ResetAssertionReport
|
|
667
|
+
public foreign function async_io_from_file(file: str as cstr, mode: str as cstr) -> ptr[AsyncIO]? = c.SDL_AsyncIOFromFile
|
|
668
|
+
public foreign function get_async_io_size(asyncio: ptr[AsyncIO]) -> ptr_int = c.SDL_GetAsyncIOSize
|
|
669
|
+
public foreign function read_async_io(asyncio: ptr[AsyncIO], ptr: ptr[void], offset: ptr_uint, size: ptr_uint, queue: ptr[AsyncIOQueue], userdata: ptr[void]) -> bool = c.SDL_ReadAsyncIO
|
|
670
|
+
public foreign function write_async_io(asyncio: ptr[AsyncIO], ptr: ptr[void], offset: ptr_uint, size: ptr_uint, queue: ptr[AsyncIOQueue], userdata: ptr[void]) -> bool = c.SDL_WriteAsyncIO
|
|
671
|
+
public foreign function close_async_io(asyncio: ptr[AsyncIO], flush: bool, queue: ptr[AsyncIOQueue], userdata: ptr[void]) -> bool = c.SDL_CloseAsyncIO
|
|
672
|
+
public foreign function create_async_io_queue() -> ptr[AsyncIOQueue]? = c.SDL_CreateAsyncIOQueue
|
|
673
|
+
public foreign function destroy_async_io_queue(queue: ptr[AsyncIOQueue]) -> void = c.SDL_DestroyAsyncIOQueue
|
|
674
|
+
public foreign function get_async_io_result(queue: ptr[AsyncIOQueue], outcome: ptr[AsyncIOOutcome]) -> bool = c.SDL_GetAsyncIOResult
|
|
675
|
+
public foreign function wait_async_io_result(queue: ptr[AsyncIOQueue], outcome: ptr[AsyncIOOutcome], timeout_ms: int) -> bool = c.SDL_WaitAsyncIOResult
|
|
676
|
+
public foreign function signal_async_io_queue(queue: ptr[AsyncIOQueue]) -> void = c.SDL_SignalAsyncIOQueue
|
|
677
|
+
public foreign function load_file_async(file: str as cstr, queue: ptr[AsyncIOQueue], userdata: ptr[void]) -> bool = c.SDL_LoadFileAsync
|
|
678
|
+
public foreign function try_lock_spinlock(lock: ptr[SpinLock]) -> bool = c.SDL_TryLockSpinlock
|
|
679
|
+
public foreign function lock_spinlock(lock: ptr[SpinLock]) -> void = c.SDL_LockSpinlock
|
|
680
|
+
public foreign function unlock_spinlock(lock: ptr[SpinLock]) -> void = c.SDL_UnlockSpinlock
|
|
681
|
+
public foreign function memory_barrier_release_function() -> void = c.SDL_MemoryBarrierReleaseFunction
|
|
682
|
+
public foreign function memory_barrier_acquire_function() -> void = c.SDL_MemoryBarrierAcquireFunction
|
|
683
|
+
public foreign function compare_and_swap_atomic_int(a: ptr[AtomicInt], oldval: int, newval: int) -> bool = c.SDL_CompareAndSwapAtomicInt
|
|
684
|
+
public foreign function set_atomic_int(a: ptr[AtomicInt], v: int) -> int = c.SDL_SetAtomicInt
|
|
685
|
+
public foreign function get_atomic_int(a: ptr[AtomicInt]) -> int = c.SDL_GetAtomicInt
|
|
686
|
+
public foreign function add_atomic_int(a: ptr[AtomicInt], v: int) -> int = c.SDL_AddAtomicInt
|
|
687
|
+
public foreign function compare_and_swap_atomic_u32(a: ptr[AtomicU32], oldval: uint, newval: uint) -> bool = c.SDL_CompareAndSwapAtomicU32
|
|
688
|
+
public foreign function set_atomic_u32(a: ptr[AtomicU32], v: uint) -> uint = c.SDL_SetAtomicU32
|
|
689
|
+
public foreign function get_atomic_u32(a: ptr[AtomicU32]) -> uint = c.SDL_GetAtomicU32
|
|
690
|
+
public foreign function add_atomic_u32(a: ptr[AtomicU32], v: int) -> uint = c.SDL_AddAtomicU32
|
|
691
|
+
public foreign function compare_and_swap_atomic_pointer(a: ptr[ptr[void]], oldval: ptr[void], newval: ptr[void]) -> bool = c.SDL_CompareAndSwapAtomicPointer
|
|
692
|
+
public foreign function set_atomic_pointer(a: ptr[ptr[void]], v: ptr[void]) -> ptr[void] = c.SDL_SetAtomicPointer
|
|
693
|
+
public foreign function get_atomic_pointer(a: ptr[ptr[void]]) -> ptr[void] = c.SDL_GetAtomicPointer
|
|
694
|
+
public foreign function set_error(fmt: str as cstr, ...) -> bool = c.SDL_SetError
|
|
695
|
+
public foreign function set_error_v(fmt: str as cstr, ap: va_list) -> bool = c.SDL_SetErrorV
|
|
696
|
+
public foreign function out_of_memory() -> bool = c.SDL_OutOfMemory
|
|
697
|
+
public foreign function get_error() -> cstr = c.SDL_GetError
|
|
698
|
+
public foreign function clear_error() -> bool = c.SDL_ClearError
|
|
699
|
+
public foreign function get_global_properties() -> PropertiesID = c.SDL_GetGlobalProperties
|
|
700
|
+
public foreign function create_properties() -> PropertiesID = c.SDL_CreateProperties
|
|
701
|
+
public foreign function copy_properties(src: uint, dst: uint) -> bool = c.SDL_CopyProperties
|
|
702
|
+
public foreign function lock_properties(props: uint) -> bool = c.SDL_LockProperties
|
|
703
|
+
public foreign function unlock_properties(props: uint) -> void = c.SDL_UnlockProperties
|
|
704
|
+
public foreign function set_pointer_property_with_cleanup(props: uint, name: str as cstr, value: ptr[void]?, cleanup: fn(arg0: ptr[void], arg1: ptr[void]) -> void, userdata: ptr[void]) -> bool = c.SDL_SetPointerPropertyWithCleanup
|
|
705
|
+
public foreign function set_pointer_property(props: uint, name: str as cstr, value: ptr[void]?) -> bool = c.SDL_SetPointerProperty
|
|
706
|
+
public foreign function set_string_property(props: uint, name: str as cstr, value: cstr?) -> bool = c.SDL_SetStringProperty
|
|
707
|
+
public foreign function set_number_property(props: uint, name: str as cstr, value: ptr_int) -> bool = c.SDL_SetNumberProperty
|
|
708
|
+
public foreign function set_float_property(props: uint, name: str as cstr, value: float) -> bool = c.SDL_SetFloatProperty
|
|
709
|
+
public foreign function set_boolean_property(props: uint, name: str as cstr, value: bool) -> bool = c.SDL_SetBooleanProperty
|
|
710
|
+
public foreign function has_property(props: uint, name: str as cstr) -> bool = c.SDL_HasProperty
|
|
711
|
+
public foreign function get_property_type(props: uint, name: str as cstr) -> PropertyType = c.SDL_GetPropertyType
|
|
712
|
+
public foreign function get_pointer_property(props: uint, name: str as cstr, default_value: ptr[void]) -> ptr[void] = c.SDL_GetPointerProperty
|
|
713
|
+
public foreign function get_string_property(props: uint, name: str as cstr, default_value: str as cstr) -> cstr = c.SDL_GetStringProperty
|
|
714
|
+
public foreign function get_number_property(props: uint, name: str as cstr, default_value: ptr_int) -> ptr_int = c.SDL_GetNumberProperty
|
|
715
|
+
public foreign function get_float_property(props: uint, name: str as cstr, default_value: float) -> float = c.SDL_GetFloatProperty
|
|
716
|
+
public foreign function get_boolean_property(props: uint, name: str as cstr, default_value: bool) -> bool = c.SDL_GetBooleanProperty
|
|
717
|
+
public foreign function clear_property(props: uint, name: str as cstr) -> bool = c.SDL_ClearProperty
|
|
718
|
+
public foreign function enumerate_properties(props: uint, callback: fn(arg0: ptr[void], arg1: PropertiesID, arg2: cstr) -> void, userdata: ptr[void]) -> bool = c.SDL_EnumerateProperties
|
|
719
|
+
public foreign function destroy_properties(props: uint) -> void = c.SDL_DestroyProperties
|
|
720
|
+
public foreign function create_thread_runtime(fn_: fn(arg0: ptr[void]) -> int, name: str as cstr, data: ptr[void], pfn_begin_thread: fn() -> void, pfn_end_thread: fn() -> void) -> ptr[Thread]? = c.SDL_CreateThreadRuntime
|
|
721
|
+
public foreign function create_thread_with_properties_runtime(props: uint, pfn_begin_thread: fn() -> void, pfn_end_thread: fn() -> void) -> ptr[Thread]? = c.SDL_CreateThreadWithPropertiesRuntime
|
|
722
|
+
public foreign function get_thread_name(thread: ptr[Thread]) -> cstr = c.SDL_GetThreadName
|
|
723
|
+
public foreign function get_current_thread_id() -> ThreadID = c.SDL_GetCurrentThreadID
|
|
724
|
+
public foreign function get_thread_id(thread: ptr[Thread]) -> ThreadID = c.SDL_GetThreadID
|
|
725
|
+
public foreign function set_current_thread_priority(priority: ThreadPriority) -> bool = c.SDL_SetCurrentThreadPriority
|
|
726
|
+
public foreign function wait_thread(thread: ptr[Thread], status: ptr[int]?) -> void = c.SDL_WaitThread
|
|
727
|
+
public foreign function get_thread_state(thread: ptr[Thread]) -> ThreadState = c.SDL_GetThreadState
|
|
728
|
+
public foreign function detach_thread(thread: ptr[Thread]) -> void = c.SDL_DetachThread
|
|
729
|
+
public foreign function get_tls(id: ptr[TLSID]) -> ptr[void]? = c.SDL_GetTLS
|
|
730
|
+
public foreign function set_tls(id: ptr[TLSID], value: const_ptr[void], destructor: fn(arg0: ptr[void]) -> void) -> bool = c.SDL_SetTLS
|
|
731
|
+
public foreign function cleanup_tls() -> void = c.SDL_CleanupTLS
|
|
732
|
+
public foreign function create_mutex() -> ptr[Mutex]? = c.SDL_CreateMutex
|
|
733
|
+
public foreign function lock_mutex(mutex: ptr[Mutex]) -> void = c.SDL_LockMutex
|
|
734
|
+
public foreign function try_lock_mutex(mutex: ptr[Mutex]) -> bool = c.SDL_TryLockMutex
|
|
735
|
+
public foreign function unlock_mutex(mutex: ptr[Mutex]) -> void = c.SDL_UnlockMutex
|
|
736
|
+
public foreign function destroy_mutex(mutex: ptr[Mutex]) -> void = c.SDL_DestroyMutex
|
|
737
|
+
public foreign function create_rw_lock() -> ptr[RWLock]? = c.SDL_CreateRWLock
|
|
738
|
+
public foreign function lock_rw_lock_for_reading(rwlock: ptr[RWLock]) -> void = c.SDL_LockRWLockForReading
|
|
739
|
+
public foreign function lock_rw_lock_for_writing(rwlock: ptr[RWLock]) -> void = c.SDL_LockRWLockForWriting
|
|
740
|
+
public foreign function try_lock_rw_lock_for_reading(rwlock: ptr[RWLock]) -> bool = c.SDL_TryLockRWLockForReading
|
|
741
|
+
public foreign function try_lock_rw_lock_for_writing(rwlock: ptr[RWLock]) -> bool = c.SDL_TryLockRWLockForWriting
|
|
742
|
+
public foreign function unlock_rw_lock(rwlock: ptr[RWLock]) -> void = c.SDL_UnlockRWLock
|
|
743
|
+
public foreign function destroy_rw_lock(rwlock: ptr[RWLock]) -> void = c.SDL_DestroyRWLock
|
|
744
|
+
public foreign function create_semaphore(initial_value: uint) -> ptr[Semaphore]? = c.SDL_CreateSemaphore
|
|
745
|
+
public foreign function destroy_semaphore(sem: ptr[Semaphore]) -> void = c.SDL_DestroySemaphore
|
|
746
|
+
public foreign function wait_semaphore(sem: ptr[Semaphore]) -> void = c.SDL_WaitSemaphore
|
|
747
|
+
public foreign function try_wait_semaphore(sem: ptr[Semaphore]) -> bool = c.SDL_TryWaitSemaphore
|
|
748
|
+
public foreign function wait_semaphore_timeout(sem: ptr[Semaphore], timeout_ms: int) -> bool = c.SDL_WaitSemaphoreTimeout
|
|
749
|
+
public foreign function signal_semaphore(sem: ptr[Semaphore]) -> void = c.SDL_SignalSemaphore
|
|
750
|
+
public foreign function get_semaphore_value(sem: ptr[Semaphore]) -> uint = c.SDL_GetSemaphoreValue
|
|
751
|
+
public foreign function create_condition() -> ptr[Condition]? = c.SDL_CreateCondition
|
|
752
|
+
public foreign function destroy_condition(cond: ptr[Condition]) -> void = c.SDL_DestroyCondition
|
|
753
|
+
public foreign function signal_condition(cond: ptr[Condition]) -> void = c.SDL_SignalCondition
|
|
754
|
+
public foreign function broadcast_condition(cond: ptr[Condition]) -> void = c.SDL_BroadcastCondition
|
|
755
|
+
public foreign function wait_condition(cond: ptr[Condition], mutex: ptr[Mutex]) -> void = c.SDL_WaitCondition
|
|
756
|
+
public foreign function wait_condition_timeout(cond: ptr[Condition], mutex: ptr[Mutex], timeout_ms: int) -> bool = c.SDL_WaitConditionTimeout
|
|
757
|
+
public foreign function should_init(state: ptr[InitState]) -> bool = c.SDL_ShouldInit
|
|
758
|
+
public foreign function should_quit(state: ptr[InitState]) -> bool = c.SDL_ShouldQuit
|
|
759
|
+
public foreign function set_initialized(state: ptr[InitState], initialized: bool) -> void = c.SDL_SetInitialized
|
|
760
|
+
public foreign function io_from_file(file: str as cstr, mode: str as cstr) -> ptr[IOStream]? = c.SDL_IOFromFile
|
|
761
|
+
public foreign function io_from_mem(mem: ptr[void], size: ptr_uint) -> ptr[IOStream]? = c.SDL_IOFromMem
|
|
762
|
+
public foreign function io_from_const_mem(mem: const_ptr[void], size: ptr_uint) -> ptr[IOStream]? = c.SDL_IOFromConstMem
|
|
763
|
+
public foreign function io_from_dynamic_mem() -> ptr[IOStream]? = c.SDL_IOFromDynamicMem
|
|
764
|
+
public foreign function open_io(iface: const_ptr[IOStreamInterface], userdata: ptr[void]) -> ptr[IOStream]? = c.SDL_OpenIO
|
|
765
|
+
public foreign function close_io(context: ptr[IOStream]) -> bool = c.SDL_CloseIO
|
|
766
|
+
public foreign function get_io_properties(context: ptr[IOStream]) -> PropertiesID = c.SDL_GetIOProperties
|
|
767
|
+
public foreign function get_io_status(context: ptr[IOStream]) -> IOStatus = c.SDL_GetIOStatus
|
|
768
|
+
public foreign function get_io_size(context: ptr[IOStream]) -> ptr_int = c.SDL_GetIOSize
|
|
769
|
+
public foreign function seek_io(context: ptr[IOStream], offset: ptr_int, whence: IOWhence) -> ptr_int = c.SDL_SeekIO
|
|
770
|
+
public foreign function tell_io(context: ptr[IOStream]) -> ptr_int = c.SDL_TellIO
|
|
771
|
+
public foreign function read_io(context: ptr[IOStream], ptr: ptr[void], size: ptr_uint) -> ptr_uint = c.SDL_ReadIO
|
|
772
|
+
public foreign function write_io(context: ptr[IOStream], ptr: const_ptr[void], size: ptr_uint) -> ptr_uint = c.SDL_WriteIO
|
|
773
|
+
public foreign function i_oprintf(context: ptr[IOStream], fmt: str as cstr, ...) -> ptr_uint = c.SDL_IOprintf
|
|
774
|
+
public foreign function i_ovprintf(context: ptr[IOStream], fmt: str as cstr, ap: va_list) -> ptr_uint = c.SDL_IOvprintf
|
|
775
|
+
public foreign function flush_io(context: ptr[IOStream]) -> bool = c.SDL_FlushIO
|
|
776
|
+
public foreign function load_file_io(src: ptr[IOStream], datasize: ptr[ptr_uint]?, closeio: bool) -> ptr[void]? = c.SDL_LoadFile_IO
|
|
777
|
+
public foreign function load_file(file: str as cstr, datasize: ptr[ptr_uint]) -> ptr[void]? = c.SDL_LoadFile
|
|
778
|
+
public foreign function save_file_io(src: ptr[IOStream], data: const_ptr[void]?, datasize: ptr_uint, closeio: bool) -> bool = c.SDL_SaveFile_IO
|
|
779
|
+
public foreign function save_file(file: str as cstr, data: const_ptr[void]?, datasize: ptr_uint) -> bool = c.SDL_SaveFile
|
|
780
|
+
public foreign function read_u8(src: ptr[IOStream], value: ptr[ubyte]) -> bool = c.SDL_ReadU8
|
|
781
|
+
public foreign function read_s8(src: ptr[IOStream], value: ptr[byte]) -> bool = c.SDL_ReadS8
|
|
782
|
+
public foreign function read_u16_le(src: ptr[IOStream], value: ptr[ushort]) -> bool = c.SDL_ReadU16LE
|
|
783
|
+
public foreign function read_s16_le(src: ptr[IOStream], value: ptr[short]) -> bool = c.SDL_ReadS16LE
|
|
784
|
+
public foreign function read_u16_be(src: ptr[IOStream], value: ptr[ushort]) -> bool = c.SDL_ReadU16BE
|
|
785
|
+
public foreign function read_s16_be(src: ptr[IOStream], value: ptr[short]) -> bool = c.SDL_ReadS16BE
|
|
786
|
+
public foreign function read_u32_le(src: ptr[IOStream], value: ptr[uint]) -> bool = c.SDL_ReadU32LE
|
|
787
|
+
public foreign function read_s32_le(src: ptr[IOStream], value: ptr[int]) -> bool = c.SDL_ReadS32LE
|
|
788
|
+
public foreign function read_u32_be(src: ptr[IOStream], value: ptr[uint]) -> bool = c.SDL_ReadU32BE
|
|
789
|
+
public foreign function read_s32_be(src: ptr[IOStream], value: ptr[int]) -> bool = c.SDL_ReadS32BE
|
|
790
|
+
public foreign function read_u64_le(src: ptr[IOStream], value: ptr[ptr_uint]) -> bool = c.SDL_ReadU64LE
|
|
791
|
+
public foreign function read_s64_le(src: ptr[IOStream], value: ptr[ptr_int]) -> bool = c.SDL_ReadS64LE
|
|
792
|
+
public foreign function read_u64_be(src: ptr[IOStream], value: ptr[ptr_uint]) -> bool = c.SDL_ReadU64BE
|
|
793
|
+
public foreign function read_s64_be(src: ptr[IOStream], value: ptr[ptr_int]) -> bool = c.SDL_ReadS64BE
|
|
794
|
+
public foreign function write_u8(dst: ptr[IOStream], value: ubyte) -> bool = c.SDL_WriteU8
|
|
795
|
+
public foreign function write_s8(dst: ptr[IOStream], value: byte) -> bool = c.SDL_WriteS8
|
|
796
|
+
public foreign function write_u16_le(dst: ptr[IOStream], value: ushort) -> bool = c.SDL_WriteU16LE
|
|
797
|
+
public foreign function write_s16_le(dst: ptr[IOStream], value: short) -> bool = c.SDL_WriteS16LE
|
|
798
|
+
public foreign function write_u16_be(dst: ptr[IOStream], value: ushort) -> bool = c.SDL_WriteU16BE
|
|
799
|
+
public foreign function write_s16_be(dst: ptr[IOStream], value: short) -> bool = c.SDL_WriteS16BE
|
|
800
|
+
public foreign function write_u32_le(dst: ptr[IOStream], value: uint) -> bool = c.SDL_WriteU32LE
|
|
801
|
+
public foreign function write_s32_le(dst: ptr[IOStream], value: int) -> bool = c.SDL_WriteS32LE
|
|
802
|
+
public foreign function write_u32_be(dst: ptr[IOStream], value: uint) -> bool = c.SDL_WriteU32BE
|
|
803
|
+
public foreign function write_s32_be(dst: ptr[IOStream], value: int) -> bool = c.SDL_WriteS32BE
|
|
804
|
+
public foreign function write_u64_le(dst: ptr[IOStream], value: ptr_uint) -> bool = c.SDL_WriteU64LE
|
|
805
|
+
public foreign function write_s64_le(dst: ptr[IOStream], value: ptr_int) -> bool = c.SDL_WriteS64LE
|
|
806
|
+
public foreign function write_u64_be(dst: ptr[IOStream], value: ptr_uint) -> bool = c.SDL_WriteU64BE
|
|
807
|
+
public foreign function write_s64_be(dst: ptr[IOStream], value: ptr_int) -> bool = c.SDL_WriteS64BE
|
|
808
|
+
public foreign function get_num_audio_drivers() -> int = c.SDL_GetNumAudioDrivers
|
|
809
|
+
public foreign function get_audio_driver(index: int) -> cstr? = c.SDL_GetAudioDriver
|
|
810
|
+
public foreign function get_current_audio_driver() -> cstr? = c.SDL_GetCurrentAudioDriver
|
|
811
|
+
public foreign function get_audio_playback_devices(count: ptr[int]?) -> ptr[AudioDeviceID]? = c.SDL_GetAudioPlaybackDevices
|
|
812
|
+
public foreign function get_audio_recording_devices(count: ptr[int]?) -> ptr[AudioDeviceID]? = c.SDL_GetAudioRecordingDevices
|
|
813
|
+
public foreign function get_audio_device_name(devid: uint) -> cstr? = c.SDL_GetAudioDeviceName
|
|
814
|
+
public foreign function get_audio_device_format(devid: uint, spec: ptr[AudioSpec], sample_frames: ptr[int]) -> bool = c.SDL_GetAudioDeviceFormat
|
|
815
|
+
public foreign function get_audio_device_channel_map(devid: uint, count: ptr[int]) -> ptr[int] = c.SDL_GetAudioDeviceChannelMap
|
|
816
|
+
public foreign function open_audio_device(devid: uint, spec: const_ptr[AudioSpec]?) -> AudioDeviceID = c.SDL_OpenAudioDevice
|
|
817
|
+
public foreign function is_audio_device_physical(devid: uint) -> bool = c.SDL_IsAudioDevicePhysical
|
|
818
|
+
public foreign function is_audio_device_playback(devid: uint) -> bool = c.SDL_IsAudioDevicePlayback
|
|
819
|
+
public foreign function pause_audio_device(devid: uint) -> bool = c.SDL_PauseAudioDevice
|
|
820
|
+
public foreign function resume_audio_device(devid: uint) -> bool = c.SDL_ResumeAudioDevice
|
|
821
|
+
public foreign function audio_device_paused(devid: uint) -> bool = c.SDL_AudioDevicePaused
|
|
822
|
+
public foreign function get_audio_device_gain(devid: uint) -> float = c.SDL_GetAudioDeviceGain
|
|
823
|
+
public foreign function set_audio_device_gain(devid: uint, gain: float) -> bool = c.SDL_SetAudioDeviceGain
|
|
824
|
+
public foreign function close_audio_device(devid: uint) -> void = c.SDL_CloseAudioDevice
|
|
825
|
+
public foreign function bind_audio_streams(devid: uint, streams: const_ptr[ptr[AudioStream]], num_streams: int) -> bool = c.SDL_BindAudioStreams
|
|
826
|
+
public foreign function bind_audio_stream(devid: uint, stream: ptr[AudioStream]) -> bool = c.SDL_BindAudioStream
|
|
827
|
+
public foreign function unbind_audio_streams(streams: const_ptr[ptr[AudioStream]], num_streams: int) -> void = c.SDL_UnbindAudioStreams
|
|
828
|
+
public foreign function unbind_audio_stream(stream: ptr[AudioStream]) -> void = c.SDL_UnbindAudioStream
|
|
829
|
+
public foreign function get_audio_stream_device(stream: ptr[AudioStream]) -> AudioDeviceID = c.SDL_GetAudioStreamDevice
|
|
830
|
+
public foreign function create_audio_stream(src_spec: const_ptr[AudioSpec], dst_spec: const_ptr[AudioSpec]?) -> ptr[AudioStream]? = c.SDL_CreateAudioStream
|
|
831
|
+
public foreign function get_audio_stream_properties(stream: ptr[AudioStream]) -> PropertiesID = c.SDL_GetAudioStreamProperties
|
|
832
|
+
public foreign function get_audio_stream_format(stream: ptr[AudioStream], src_spec: ptr[AudioSpec], dst_spec: ptr[AudioSpec]) -> bool = c.SDL_GetAudioStreamFormat
|
|
833
|
+
public foreign function set_audio_stream_format(stream: ptr[AudioStream], src_spec: const_ptr[AudioSpec], dst_spec: const_ptr[AudioSpec]) -> bool = c.SDL_SetAudioStreamFormat
|
|
834
|
+
public foreign function get_audio_stream_frequency_ratio(stream: ptr[AudioStream]) -> float = c.SDL_GetAudioStreamFrequencyRatio
|
|
835
|
+
public foreign function set_audio_stream_frequency_ratio(stream: ptr[AudioStream], ratio: float) -> bool = c.SDL_SetAudioStreamFrequencyRatio
|
|
836
|
+
public foreign function get_audio_stream_gain(stream: ptr[AudioStream]) -> float = c.SDL_GetAudioStreamGain
|
|
837
|
+
public foreign function set_audio_stream_gain(stream: ptr[AudioStream], gain: float) -> bool = c.SDL_SetAudioStreamGain
|
|
838
|
+
public foreign function get_audio_stream_input_channel_map(stream: ptr[AudioStream], count: ptr[int]) -> ptr[int] = c.SDL_GetAudioStreamInputChannelMap
|
|
839
|
+
public foreign function get_audio_stream_output_channel_map(stream: ptr[AudioStream], count: ptr[int]) -> ptr[int] = c.SDL_GetAudioStreamOutputChannelMap
|
|
840
|
+
public foreign function set_audio_stream_input_channel_map(stream: ptr[AudioStream], chmap: const_ptr[int], count: int) -> bool = c.SDL_SetAudioStreamInputChannelMap
|
|
841
|
+
public foreign function set_audio_stream_output_channel_map(stream: ptr[AudioStream], chmap: const_ptr[int], count: int) -> bool = c.SDL_SetAudioStreamOutputChannelMap
|
|
842
|
+
public foreign function put_audio_stream_data(stream: ptr[AudioStream], buf: const_ptr[void], len: int) -> bool = c.SDL_PutAudioStreamData
|
|
843
|
+
public foreign function put_audio_stream_data_no_copy(stream: ptr[AudioStream], buf: const_ptr[void], len: int, callback: fn(arg0: ptr[void], arg1: const_ptr[void], arg2: int) -> void, userdata: ptr[void]) -> bool = c.SDL_PutAudioStreamDataNoCopy
|
|
844
|
+
public foreign function put_audio_stream_planar_data(stream: ptr[AudioStream], channel_buffers: const_ptr[const_ptr[void]?], num_channels: int, num_samples: int) -> bool = c.SDL_PutAudioStreamPlanarData
|
|
845
|
+
public foreign function get_audio_stream_data(stream: ptr[AudioStream], buf: ptr[void], len: int) -> int = c.SDL_GetAudioStreamData
|
|
846
|
+
public foreign function get_audio_stream_available(stream: ptr[AudioStream]) -> int = c.SDL_GetAudioStreamAvailable
|
|
847
|
+
public foreign function get_audio_stream_queued(stream: ptr[AudioStream]) -> int = c.SDL_GetAudioStreamQueued
|
|
848
|
+
public foreign function flush_audio_stream(stream: ptr[AudioStream]) -> bool = c.SDL_FlushAudioStream
|
|
849
|
+
public foreign function clear_audio_stream(stream: ptr[AudioStream]) -> bool = c.SDL_ClearAudioStream
|
|
850
|
+
public foreign function pause_audio_stream_device(stream: ptr[AudioStream]) -> bool = c.SDL_PauseAudioStreamDevice
|
|
851
|
+
public foreign function resume_audio_stream_device(stream: ptr[AudioStream]) -> bool = c.SDL_ResumeAudioStreamDevice
|
|
852
|
+
public foreign function audio_stream_device_paused(stream: ptr[AudioStream]) -> bool = c.SDL_AudioStreamDevicePaused
|
|
853
|
+
public foreign function lock_audio_stream(stream: ptr[AudioStream]) -> bool = c.SDL_LockAudioStream
|
|
854
|
+
public foreign function unlock_audio_stream(stream: ptr[AudioStream]) -> bool = c.SDL_UnlockAudioStream
|
|
855
|
+
public foreign function set_audio_stream_get_callback(stream: ptr[AudioStream], callback: fn(arg0: ptr[void], arg1: ptr[AudioStream], arg2: int, arg3: int) -> void, userdata: ptr[void]) -> bool = c.SDL_SetAudioStreamGetCallback
|
|
856
|
+
public foreign function set_audio_stream_put_callback(stream: ptr[AudioStream], callback: fn(arg0: ptr[void], arg1: ptr[AudioStream], arg2: int, arg3: int) -> void, userdata: ptr[void]) -> bool = c.SDL_SetAudioStreamPutCallback
|
|
857
|
+
public foreign function destroy_audio_stream(stream: ptr[AudioStream]) -> void = c.SDL_DestroyAudioStream
|
|
858
|
+
public foreign function open_audio_device_stream(devid: uint, spec: const_ptr[AudioSpec], callback: fn(arg0: ptr[void], arg1: ptr[AudioStream], arg2: int, arg3: int) -> void, userdata: ptr[void]?) -> ptr[AudioStream]? = c.SDL_OpenAudioDeviceStream
|
|
859
|
+
public foreign function set_audio_postmix_callback(devid: uint, callback: fn(arg0: ptr[void], arg1: const_ptr[AudioSpec], arg2: ptr[float], arg3: int) -> void, userdata: ptr[void]) -> bool = c.SDL_SetAudioPostmixCallback
|
|
860
|
+
public foreign function load_wav_io(src: ptr[IOStream], closeio: bool, spec: ptr[AudioSpec], audio_buf: ptr[ptr[ubyte]], audio_len: ptr[uint]) -> bool = c.SDL_LoadWAV_IO
|
|
861
|
+
public foreign function load_wav(path: str as cstr, spec: ptr[AudioSpec], audio_buf: ptr[ptr[ubyte]], audio_len: ptr[uint]) -> bool = c.SDL_LoadWAV
|
|
862
|
+
public foreign function mix_audio(dst: ptr[ubyte], src: const_ptr[ubyte], format: AudioFormat, len: uint, volume: float) -> bool = c.SDL_MixAudio
|
|
863
|
+
public foreign function convert_audio_samples(src_spec: const_ptr[AudioSpec], src_data: const_ptr[ubyte], src_len: int, dst_spec: const_ptr[AudioSpec], dst_data: ptr[ptr[ubyte]], dst_len: ptr[int]) -> bool = c.SDL_ConvertAudioSamples
|
|
864
|
+
public foreign function get_audio_format_name(format: AudioFormat) -> cstr = c.SDL_GetAudioFormatName
|
|
865
|
+
public foreign function get_silence_value_for_format(format: AudioFormat) -> int = c.SDL_GetSilenceValueForFormat
|
|
866
|
+
public foreign function compose_custom_blend_mode(src_color_factor: BlendFactor, dst_color_factor: BlendFactor, color_operation: BlendOperation, src_alpha_factor: BlendFactor, dst_alpha_factor: BlendFactor, alpha_operation: BlendOperation) -> BlendMode = c.SDL_ComposeCustomBlendMode
|
|
867
|
+
public foreign function get_pixel_format_name(format: PixelFormat) -> cstr = c.SDL_GetPixelFormatName
|
|
868
|
+
public foreign function get_masks_for_pixel_format(format: PixelFormat, bpp: ptr[int], rmask: ptr[uint], gmask: ptr[uint], bmask: ptr[uint], amask: ptr[uint]) -> bool = c.SDL_GetMasksForPixelFormat
|
|
869
|
+
public foreign function get_pixel_format_for_masks(bpp: int, rmask: uint, gmask: uint, bmask: uint, amask: uint) -> PixelFormat = c.SDL_GetPixelFormatForMasks
|
|
870
|
+
public foreign function get_pixel_format_details(format: PixelFormat) -> const_ptr[PixelFormatDetails]? = c.SDL_GetPixelFormatDetails
|
|
871
|
+
public foreign function create_palette(ncolors: int) -> ptr[Palette]? = c.SDL_CreatePalette
|
|
872
|
+
public foreign function set_palette_colors(palette: ptr[Palette], colors: const_ptr[Color], firstcolor: int, ncolors: int) -> bool = c.SDL_SetPaletteColors
|
|
873
|
+
public foreign function destroy_palette(palette: ptr[Palette]) -> void = c.SDL_DestroyPalette
|
|
874
|
+
public foreign function map_rgb(format: const_ptr[PixelFormatDetails], palette: const_ptr[Palette]?, r: ubyte, g: ubyte, b: ubyte) -> uint = c.SDL_MapRGB
|
|
875
|
+
public foreign function map_rgba(format: const_ptr[PixelFormatDetails], palette: const_ptr[Palette]?, r: ubyte, g: ubyte, b: ubyte, a: ubyte) -> uint = c.SDL_MapRGBA
|
|
876
|
+
public foreign function get_rgb(pixelvalue: uint, format: const_ptr[PixelFormatDetails], palette: const_ptr[Palette]?, r: ptr[ubyte]?, g: ptr[ubyte]?, b: ptr[ubyte]?) -> void = c.SDL_GetRGB
|
|
877
|
+
public foreign function get_rgba(pixelvalue: uint, format: const_ptr[PixelFormatDetails], palette: const_ptr[Palette]?, r: ptr[ubyte]?, g: ptr[ubyte]?, b: ptr[ubyte]?, a: ptr[ubyte]?) -> void = c.SDL_GetRGBA
|
|
878
|
+
public foreign function has_rect_intersection(a: const_ptr[Rect], b: const_ptr[Rect]) -> bool = c.SDL_HasRectIntersection
|
|
879
|
+
public foreign function get_rect_intersection(a: const_ptr[Rect], b: const_ptr[Rect], result: ptr[Rect]) -> bool = c.SDL_GetRectIntersection
|
|
880
|
+
public foreign function get_rect_union(a: const_ptr[Rect], b: const_ptr[Rect], result: ptr[Rect]) -> bool = c.SDL_GetRectUnion
|
|
881
|
+
public foreign function get_rect_enclosing_points(points: const_ptr[Point], count: int, clip: const_ptr[Rect]?, result: ptr[Rect]) -> bool = c.SDL_GetRectEnclosingPoints
|
|
882
|
+
public foreign function get_rect_and_line_intersection(rect: const_ptr[Rect], x1: ptr[int], y1: ptr[int], x2: ptr[int], y2: ptr[int]) -> bool = c.SDL_GetRectAndLineIntersection
|
|
883
|
+
public foreign function has_rect_intersection_float(a: const_ptr[FRect], b: const_ptr[FRect]) -> bool = c.SDL_HasRectIntersectionFloat
|
|
884
|
+
public foreign function get_rect_intersection_float(a: const_ptr[FRect], b: const_ptr[FRect], result: ptr[FRect]) -> bool = c.SDL_GetRectIntersectionFloat
|
|
885
|
+
public foreign function get_rect_union_float(a: const_ptr[FRect], b: const_ptr[FRect], result: ptr[FRect]) -> bool = c.SDL_GetRectUnionFloat
|
|
886
|
+
public foreign function get_rect_enclosing_points_float(points: const_ptr[FPoint], count: int, clip: const_ptr[FRect]?, result: ptr[FRect]) -> bool = c.SDL_GetRectEnclosingPointsFloat
|
|
887
|
+
public foreign function get_rect_and_line_intersection_float(rect: const_ptr[FRect], x1: ptr[float], y1: ptr[float], x2: ptr[float], y2: ptr[float]) -> bool = c.SDL_GetRectAndLineIntersectionFloat
|
|
888
|
+
public foreign function create_surface(width: int, height: int, format: PixelFormat) -> ptr[Surface]? = c.SDL_CreateSurface
|
|
889
|
+
public foreign function create_surface_from(width: int, height: int, format: PixelFormat, pixels: ptr[void], pitch: int) -> ptr[Surface]? = c.SDL_CreateSurfaceFrom
|
|
890
|
+
public foreign function destroy_surface(surface: ptr[Surface]) -> void = c.SDL_DestroySurface
|
|
891
|
+
public foreign function get_surface_properties(surface: ptr[Surface]) -> PropertiesID = c.SDL_GetSurfaceProperties
|
|
892
|
+
public foreign function set_surface_colorspace(surface: ptr[Surface], colorspace: Colorspace) -> bool = c.SDL_SetSurfaceColorspace
|
|
893
|
+
public foreign function get_surface_colorspace(surface: ptr[Surface]) -> Colorspace = c.SDL_GetSurfaceColorspace
|
|
894
|
+
public foreign function create_surface_palette(surface: ptr[Surface]) -> ptr[Palette]? = c.SDL_CreateSurfacePalette
|
|
895
|
+
public foreign function set_surface_palette(surface: ptr[Surface], palette: ptr[Palette]) -> bool = c.SDL_SetSurfacePalette
|
|
896
|
+
public foreign function get_surface_palette(surface: ptr[Surface]) -> ptr[Palette]? = c.SDL_GetSurfacePalette
|
|
897
|
+
public foreign function add_surface_alternate_image(surface: ptr[Surface], image: ptr[Surface]) -> bool = c.SDL_AddSurfaceAlternateImage
|
|
898
|
+
public foreign function surface_has_alternate_images(surface: ptr[Surface]) -> bool = c.SDL_SurfaceHasAlternateImages
|
|
899
|
+
public foreign function get_surface_images(surface: ptr[Surface], count: ptr[int]?) -> ptr[ptr[Surface]]? = c.SDL_GetSurfaceImages
|
|
900
|
+
public foreign function remove_surface_alternate_images(surface: ptr[Surface]) -> void = c.SDL_RemoveSurfaceAlternateImages
|
|
901
|
+
public foreign function lock_surface(surface: ptr[Surface]) -> bool = c.SDL_LockSurface
|
|
902
|
+
public foreign function unlock_surface(surface: ptr[Surface]) -> void = c.SDL_UnlockSurface
|
|
903
|
+
public foreign function load_surface_io(src: ptr[IOStream], closeio: bool) -> ptr[Surface]? = c.SDL_LoadSurface_IO
|
|
904
|
+
public foreign function load_surface(file: str as cstr) -> ptr[Surface]? = c.SDL_LoadSurface
|
|
905
|
+
public foreign function load_bmp_io(src: ptr[IOStream], closeio: bool) -> ptr[Surface]? = c.SDL_LoadBMP_IO
|
|
906
|
+
public foreign function load_bmp(file: str as cstr) -> ptr[Surface]? = c.SDL_LoadBMP
|
|
907
|
+
public foreign function save_bmp_io(surface: ptr[Surface], dst: ptr[IOStream], closeio: bool) -> bool = c.SDL_SaveBMP_IO
|
|
908
|
+
public foreign function save_bmp(surface: ptr[Surface], file: str as cstr) -> bool = c.SDL_SaveBMP
|
|
909
|
+
public foreign function load_png_io(src: ptr[IOStream], closeio: bool) -> ptr[Surface]? = c.SDL_LoadPNG_IO
|
|
910
|
+
public foreign function load_png(file: str as cstr) -> ptr[Surface]? = c.SDL_LoadPNG
|
|
911
|
+
public foreign function save_png_io(surface: ptr[Surface], dst: ptr[IOStream], closeio: bool) -> bool = c.SDL_SavePNG_IO
|
|
912
|
+
public foreign function save_png(surface: ptr[Surface], file: str as cstr) -> bool = c.SDL_SavePNG
|
|
913
|
+
public foreign function set_surface_rle(surface: ptr[Surface], enabled: bool) -> bool = c.SDL_SetSurfaceRLE
|
|
914
|
+
public foreign function surface_has_rle(surface: ptr[Surface]) -> bool = c.SDL_SurfaceHasRLE
|
|
915
|
+
public foreign function set_surface_color_key(surface: ptr[Surface], enabled: bool, key: uint) -> bool = c.SDL_SetSurfaceColorKey
|
|
916
|
+
public foreign function surface_has_color_key(surface: ptr[Surface]) -> bool = c.SDL_SurfaceHasColorKey
|
|
917
|
+
public foreign function get_surface_color_key(surface: ptr[Surface], key: ptr[uint]) -> bool = c.SDL_GetSurfaceColorKey
|
|
918
|
+
public foreign function set_surface_color_mod(surface: ptr[Surface], r: ubyte, g: ubyte, b: ubyte) -> bool = c.SDL_SetSurfaceColorMod
|
|
919
|
+
public foreign function get_surface_color_mod(surface: ptr[Surface], r: ptr[ubyte], g: ptr[ubyte], b: ptr[ubyte]) -> bool = c.SDL_GetSurfaceColorMod
|
|
920
|
+
public foreign function set_surface_alpha_mod(surface: ptr[Surface], alpha: ubyte) -> bool = c.SDL_SetSurfaceAlphaMod
|
|
921
|
+
public foreign function get_surface_alpha_mod(surface: ptr[Surface], alpha: ptr[ubyte]) -> bool = c.SDL_GetSurfaceAlphaMod
|
|
922
|
+
public foreign function set_surface_blend_mode(surface: ptr[Surface], blend_mode: uint) -> bool = c.SDL_SetSurfaceBlendMode
|
|
923
|
+
public foreign function get_surface_blend_mode(surface: ptr[Surface], blend_mode: ptr[BlendMode]) -> bool = c.SDL_GetSurfaceBlendMode
|
|
924
|
+
public foreign function set_surface_clip_rect(surface: ptr[Surface], rect: const_ptr[Rect]?) -> bool = c.SDL_SetSurfaceClipRect
|
|
925
|
+
public foreign function get_surface_clip_rect(surface: ptr[Surface], rect: ptr[Rect]) -> bool = c.SDL_GetSurfaceClipRect
|
|
926
|
+
public foreign function flip_surface(surface: ptr[Surface], flip: FlipMode) -> bool = c.SDL_FlipSurface
|
|
927
|
+
public foreign function rotate_surface(surface: ptr[Surface], angle: float) -> ptr[Surface]? = c.SDL_RotateSurface
|
|
928
|
+
public foreign function duplicate_surface(surface: ptr[Surface]) -> ptr[Surface]? = c.SDL_DuplicateSurface
|
|
929
|
+
public foreign function scale_surface(surface: ptr[Surface], width: int, height: int, scale_mode: ScaleMode) -> ptr[Surface]? = c.SDL_ScaleSurface
|
|
930
|
+
public foreign function convert_surface(surface: ptr[Surface], format: PixelFormat) -> ptr[Surface]? = c.SDL_ConvertSurface
|
|
931
|
+
public foreign function convert_surface_and_colorspace(surface: ptr[Surface], format: PixelFormat, palette: ptr[Palette]?, colorspace: Colorspace, props: uint) -> ptr[Surface]? = c.SDL_ConvertSurfaceAndColorspace
|
|
932
|
+
public foreign function convert_pixels(width: int, height: int, src_format: PixelFormat, src: const_ptr[void], src_pitch: int, dst_format: PixelFormat, dst: ptr[void], dst_pitch: int) -> bool = c.SDL_ConvertPixels
|
|
933
|
+
public foreign function convert_pixels_and_colorspace(width: int, height: int, src_format: PixelFormat, src_colorspace: Colorspace, src_properties: uint, src: const_ptr[void], src_pitch: int, dst_format: PixelFormat, dst_colorspace: Colorspace, dst_properties: uint, dst: ptr[void], dst_pitch: int) -> bool = c.SDL_ConvertPixelsAndColorspace
|
|
934
|
+
public foreign function premultiply_alpha(width: int, height: int, src_format: PixelFormat, src: const_ptr[void], src_pitch: int, dst_format: PixelFormat, dst: ptr[void], dst_pitch: int, linear: bool) -> bool = c.SDL_PremultiplyAlpha
|
|
935
|
+
public foreign function premultiply_surface_alpha(surface: ptr[Surface], linear: bool) -> bool = c.SDL_PremultiplySurfaceAlpha
|
|
936
|
+
public foreign function clear_surface(surface: ptr[Surface], r: float, g: float, b: float, a: float) -> bool = c.SDL_ClearSurface
|
|
937
|
+
public foreign function fill_surface_rect(dst: ptr[Surface], rect: const_ptr[Rect]?, color: uint) -> bool = c.SDL_FillSurfaceRect
|
|
938
|
+
public foreign function fill_surface_rects(dst: ptr[Surface], rects: const_ptr[Rect], count: int, color: uint) -> bool = c.SDL_FillSurfaceRects
|
|
939
|
+
public foreign function blit_surface(src: ptr[Surface], srcrect: const_ptr[Rect]?, dst: ptr[Surface], dstrect: const_ptr[Rect]?) -> bool = c.SDL_BlitSurface
|
|
940
|
+
public foreign function blit_surface_unchecked(src: ptr[Surface], srcrect: const_ptr[Rect], dst: ptr[Surface], dstrect: const_ptr[Rect]) -> bool = c.SDL_BlitSurfaceUnchecked
|
|
941
|
+
public foreign function blit_surface_scaled(src: ptr[Surface], srcrect: const_ptr[Rect]?, dst: ptr[Surface], dstrect: const_ptr[Rect]?, scale_mode: ScaleMode) -> bool = c.SDL_BlitSurfaceScaled
|
|
942
|
+
public foreign function blit_surface_unchecked_scaled(src: ptr[Surface], srcrect: const_ptr[Rect], dst: ptr[Surface], dstrect: const_ptr[Rect], scale_mode: ScaleMode) -> bool = c.SDL_BlitSurfaceUncheckedScaled
|
|
943
|
+
public foreign function stretch_surface(src: ptr[Surface], srcrect: const_ptr[Rect]?, dst: ptr[Surface], dstrect: const_ptr[Rect]?, scale_mode: ScaleMode) -> bool = c.SDL_StretchSurface
|
|
944
|
+
public foreign function blit_surface_tiled(src: ptr[Surface], srcrect: const_ptr[Rect]?, dst: ptr[Surface], dstrect: const_ptr[Rect]?) -> bool = c.SDL_BlitSurfaceTiled
|
|
945
|
+
public foreign function blit_surface_tiled_with_scale(src: ptr[Surface], srcrect: const_ptr[Rect]?, scale: float, scale_mode: ScaleMode, dst: ptr[Surface], dstrect: const_ptr[Rect]?) -> bool = c.SDL_BlitSurfaceTiledWithScale
|
|
946
|
+
public foreign function blit_surface9_grid(src: ptr[Surface], srcrect: const_ptr[Rect]?, left_width: int, right_width: int, top_height: int, bottom_height: int, scale: float, scale_mode: ScaleMode, dst: ptr[Surface], dstrect: const_ptr[Rect]?) -> bool = c.SDL_BlitSurface9Grid
|
|
947
|
+
public foreign function map_surface_rgb(surface: ptr[Surface], r: ubyte, g: ubyte, b: ubyte) -> uint = c.SDL_MapSurfaceRGB
|
|
948
|
+
public foreign function map_surface_rgba(surface: ptr[Surface], r: ubyte, g: ubyte, b: ubyte, a: ubyte) -> uint = c.SDL_MapSurfaceRGBA
|
|
949
|
+
public foreign function read_surface_pixel(surface: ptr[Surface], x: int, y: int, r: ptr[ubyte]?, g: ptr[ubyte]?, b: ptr[ubyte]?, a: ptr[ubyte]?) -> bool = c.SDL_ReadSurfacePixel
|
|
950
|
+
public foreign function read_surface_pixel_float(surface: ptr[Surface], x: int, y: int, r: ptr[float]?, g: ptr[float]?, b: ptr[float]?, a: ptr[float]?) -> bool = c.SDL_ReadSurfacePixelFloat
|
|
951
|
+
public foreign function write_surface_pixel(surface: ptr[Surface], x: int, y: int, r: ubyte, g: ubyte, b: ubyte, a: ubyte) -> bool = c.SDL_WriteSurfacePixel
|
|
952
|
+
public foreign function write_surface_pixel_float(surface: ptr[Surface], x: int, y: int, r: float, g: float, b: float, a: float) -> bool = c.SDL_WriteSurfacePixelFloat
|
|
953
|
+
public foreign function get_num_camera_drivers() -> int = c.SDL_GetNumCameraDrivers
|
|
954
|
+
public foreign function get_camera_driver(index: int) -> cstr? = c.SDL_GetCameraDriver
|
|
955
|
+
public foreign function get_current_camera_driver() -> cstr? = c.SDL_GetCurrentCameraDriver
|
|
956
|
+
public foreign function get_cameras(count: ptr[int]?) -> ptr[CameraID]? = c.SDL_GetCameras
|
|
957
|
+
public foreign function get_camera_supported_formats(instance_id: uint, count: ptr[int]?) -> ptr[ptr[CameraSpec]]? = c.SDL_GetCameraSupportedFormats
|
|
958
|
+
public foreign function get_camera_name(instance_id: uint) -> cstr? = c.SDL_GetCameraName
|
|
959
|
+
public foreign function get_camera_position(instance_id: uint) -> CameraPosition = c.SDL_GetCameraPosition
|
|
960
|
+
public foreign function open_camera(instance_id: uint, spec: const_ptr[CameraSpec]?) -> ptr[Camera]? = c.SDL_OpenCamera
|
|
961
|
+
public foreign function get_camera_permission_state(camera: ptr[Camera]) -> CameraPermissionState = c.SDL_GetCameraPermissionState
|
|
962
|
+
public foreign function get_camera_id(camera: ptr[Camera]) -> CameraID = c.SDL_GetCameraID
|
|
963
|
+
public foreign function get_camera_properties(camera: ptr[Camera]) -> PropertiesID = c.SDL_GetCameraProperties
|
|
964
|
+
public foreign function get_camera_format(camera: ptr[Camera], spec: ptr[CameraSpec]) -> bool = c.SDL_GetCameraFormat
|
|
965
|
+
public foreign function acquire_camera_frame(camera: ptr[Camera], timestamp_ns: ptr[ptr_uint]) -> ptr[Surface]? = c.SDL_AcquireCameraFrame
|
|
966
|
+
public foreign function release_camera_frame(camera: ptr[Camera], frame: ptr[Surface]) -> void = c.SDL_ReleaseCameraFrame
|
|
967
|
+
public foreign function close_camera(camera: ptr[Camera]) -> void = c.SDL_CloseCamera
|
|
968
|
+
public foreign function set_clipboard_text(text: str as cstr) -> bool = c.SDL_SetClipboardText
|
|
969
|
+
public foreign function get_clipboard_text() -> ptr[char]? = c.SDL_GetClipboardText
|
|
970
|
+
public foreign function has_clipboard_text() -> bool = c.SDL_HasClipboardText
|
|
971
|
+
public foreign function set_primary_selection_text(text: str as cstr) -> bool = c.SDL_SetPrimarySelectionText
|
|
972
|
+
public foreign function get_primary_selection_text() -> ptr[char]? = c.SDL_GetPrimarySelectionText
|
|
973
|
+
public foreign function has_primary_selection_text() -> bool = c.SDL_HasPrimarySelectionText
|
|
974
|
+
public foreign function set_clipboard_data(callback: fn(arg0: ptr[void], arg1: cstr, arg2: ptr[ptr_uint]) -> const_ptr[void], cleanup: fn(arg0: ptr[void]) -> void, userdata: ptr[void], mime_types: const_ptr[cstr], num_mime_types: ptr_uint) -> bool = c.SDL_SetClipboardData
|
|
975
|
+
public foreign function clear_clipboard_data() -> bool = c.SDL_ClearClipboardData
|
|
976
|
+
public foreign function get_clipboard_data(mime_type: str as cstr, size: ptr[ptr_uint]) -> ptr[void]? = c.SDL_GetClipboardData
|
|
977
|
+
public foreign function has_clipboard_data(mime_type: str as cstr) -> bool = c.SDL_HasClipboardData
|
|
978
|
+
public foreign function get_clipboard_mime_types(num_mime_types: ptr[ptr_uint]?) -> ptr[ptr[char]]? = c.SDL_GetClipboardMimeTypes
|
|
979
|
+
public foreign function get_num_logical_cpu_cores() -> int = c.SDL_GetNumLogicalCPUCores
|
|
980
|
+
public foreign function get_cpu_cache_line_size() -> int = c.SDL_GetCPUCacheLineSize
|
|
981
|
+
public foreign function has_alti_vec() -> bool = c.SDL_HasAltiVec
|
|
982
|
+
public foreign function has_mmx() -> bool = c.SDL_HasMMX
|
|
983
|
+
public foreign function has_sse() -> bool = c.SDL_HasSSE
|
|
984
|
+
public foreign function has_sse2() -> bool = c.SDL_HasSSE2
|
|
985
|
+
public foreign function has_sse3() -> bool = c.SDL_HasSSE3
|
|
986
|
+
public foreign function has_sse41() -> bool = c.SDL_HasSSE41
|
|
987
|
+
public foreign function has_sse42() -> bool = c.SDL_HasSSE42
|
|
988
|
+
public foreign function has_avx() -> bool = c.SDL_HasAVX
|
|
989
|
+
public foreign function has_avx2() -> bool = c.SDL_HasAVX2
|
|
990
|
+
public foreign function has_avx512_f() -> bool = c.SDL_HasAVX512F
|
|
991
|
+
public foreign function has_armsimd() -> bool = c.SDL_HasARMSIMD
|
|
992
|
+
public foreign function has_neon() -> bool = c.SDL_HasNEON
|
|
993
|
+
public foreign function has_lsx() -> bool = c.SDL_HasLSX
|
|
994
|
+
public foreign function has_lasx() -> bool = c.SDL_HasLASX
|
|
995
|
+
public foreign function get_system_ram() -> int = c.SDL_GetSystemRAM
|
|
996
|
+
public foreign function get_simd_alignment() -> ptr_uint = c.SDL_GetSIMDAlignment
|
|
997
|
+
public foreign function get_system_page_size() -> int = c.SDL_GetSystemPageSize
|
|
998
|
+
public foreign function get_num_video_drivers() -> int = c.SDL_GetNumVideoDrivers
|
|
999
|
+
public foreign function get_video_driver(index: int) -> cstr? = c.SDL_GetVideoDriver
|
|
1000
|
+
public foreign function get_current_video_driver() -> cstr? = c.SDL_GetCurrentVideoDriver
|
|
1001
|
+
public foreign function get_system_theme() -> SystemTheme = c.SDL_GetSystemTheme
|
|
1002
|
+
public foreign function get_displays(count: ptr[int]?) -> ptr[DisplayID]? = c.SDL_GetDisplays
|
|
1003
|
+
public foreign function get_primary_display() -> DisplayID = c.SDL_GetPrimaryDisplay
|
|
1004
|
+
public foreign function get_display_properties(display_id: uint) -> PropertiesID = c.SDL_GetDisplayProperties
|
|
1005
|
+
public foreign function get_display_name(display_id: uint) -> cstr? = c.SDL_GetDisplayName
|
|
1006
|
+
public foreign function get_display_bounds(display_id: uint, rect: ptr[Rect]) -> bool = c.SDL_GetDisplayBounds
|
|
1007
|
+
public foreign function get_display_usable_bounds(display_id: uint, rect: ptr[Rect]) -> bool = c.SDL_GetDisplayUsableBounds
|
|
1008
|
+
public foreign function get_natural_display_orientation(display_id: uint) -> DisplayOrientation = c.SDL_GetNaturalDisplayOrientation
|
|
1009
|
+
public foreign function get_current_display_orientation(display_id: uint) -> DisplayOrientation = c.SDL_GetCurrentDisplayOrientation
|
|
1010
|
+
public foreign function get_display_content_scale(display_id: uint) -> float = c.SDL_GetDisplayContentScale
|
|
1011
|
+
public foreign function get_fullscreen_display_modes(display_id: uint, count: ptr[int]?) -> ptr[ptr[DisplayMode]]? = c.SDL_GetFullscreenDisplayModes
|
|
1012
|
+
public foreign function get_closest_fullscreen_display_mode(display_id: uint, w: int, h: int, refresh_rate: float, include_high_density_modes: bool, closest: ptr[DisplayMode]) -> bool = c.SDL_GetClosestFullscreenDisplayMode
|
|
1013
|
+
public foreign function get_desktop_display_mode(display_id: uint) -> const_ptr[DisplayMode]? = c.SDL_GetDesktopDisplayMode
|
|
1014
|
+
public foreign function get_current_display_mode(display_id: uint) -> const_ptr[DisplayMode]? = c.SDL_GetCurrentDisplayMode
|
|
1015
|
+
public foreign function get_display_for_point(point: const_ptr[Point]) -> DisplayID = c.SDL_GetDisplayForPoint
|
|
1016
|
+
public foreign function get_display_for_rect(rect: const_ptr[Rect]) -> DisplayID = c.SDL_GetDisplayForRect
|
|
1017
|
+
public foreign function get_display_for_window(window: Window) -> DisplayID = c.SDL_GetDisplayForWindow
|
|
1018
|
+
public foreign function get_window_pixel_density(window: Window) -> float = c.SDL_GetWindowPixelDensity
|
|
1019
|
+
public foreign function get_window_display_scale(window: Window) -> float = c.SDL_GetWindowDisplayScale
|
|
1020
|
+
public foreign function set_window_fullscreen_mode(window: Window, mode: const_ptr[DisplayMode]) -> bool = c.SDL_SetWindowFullscreenMode
|
|
1021
|
+
public foreign function get_window_fullscreen_mode(window: Window) -> const_ptr[DisplayMode]? = c.SDL_GetWindowFullscreenMode
|
|
1022
|
+
public foreign function get_window_icc_profile(window: Window, size: ptr[ptr_uint]) -> ptr[void]? = c.SDL_GetWindowICCProfile
|
|
1023
|
+
public foreign function get_window_pixel_format(window: Window) -> PixelFormat = c.SDL_GetWindowPixelFormat
|
|
1024
|
+
public foreign function get_windows(count: ptr[int]?) -> ptr[ptr[Window]]? = c.SDL_GetWindows
|
|
1025
|
+
public foreign function create_window(title: str as cstr, w: int, h: int, flag_bits: ptr_uint) -> Window? = c.SDL_CreateWindow
|
|
1026
|
+
public foreign function create_popup_window(parent: Window, offset_x: int, offset_y: int, w: int, h: int, flags_: ptr_uint) -> Window? = c.SDL_CreatePopupWindow
|
|
1027
|
+
public foreign function create_window_with_properties(props: uint) -> Window? = c.SDL_CreateWindowWithProperties
|
|
1028
|
+
public foreign function get_window_id(window: Window) -> WindowID = c.SDL_GetWindowID
|
|
1029
|
+
public foreign function get_window_from_id(id: uint) -> Window? = c.SDL_GetWindowFromID
|
|
1030
|
+
public foreign function get_window_parent(window: Window) -> Window? = c.SDL_GetWindowParent
|
|
1031
|
+
public foreign function get_window_properties(window: Window) -> PropertiesID = c.SDL_GetWindowProperties
|
|
1032
|
+
public foreign function get_window_flags(window: Window) -> WindowFlags = c.SDL_GetWindowFlags
|
|
1033
|
+
public foreign function set_window_title(window: Window, title: str as cstr) -> bool = c.SDL_SetWindowTitle
|
|
1034
|
+
public foreign function get_window_title(window: Window) -> cstr = c.SDL_GetWindowTitle
|
|
1035
|
+
public foreign function set_window_icon(window: Window, icon: ptr[Surface]) -> bool = c.SDL_SetWindowIcon
|
|
1036
|
+
public foreign function set_window_position(window: Window, x: int, y: int) -> bool = c.SDL_SetWindowPosition
|
|
1037
|
+
public foreign function get_window_position(window: Window, x: ptr[int]?, y: ptr[int]?) -> bool = c.SDL_GetWindowPosition
|
|
1038
|
+
public foreign function set_window_size(window: Window, w: int, h: int) -> bool = c.SDL_SetWindowSize
|
|
1039
|
+
public foreign function get_window_size(window: Window, out w: int, out h: int) -> bool = c.SDL_GetWindowSize
|
|
1040
|
+
public foreign function get_window_safe_area(window: Window, rect: ptr[Rect]) -> bool = c.SDL_GetWindowSafeArea
|
|
1041
|
+
public foreign function set_window_aspect_ratio(window: Window, min_aspect: float, max_aspect: float) -> bool = c.SDL_SetWindowAspectRatio
|
|
1042
|
+
public foreign function get_window_aspect_ratio(window: Window, min_aspect: ptr[float]?, max_aspect: ptr[float]?) -> bool = c.SDL_GetWindowAspectRatio
|
|
1043
|
+
public foreign function get_window_borders_size(window: Window, top: ptr[int]?, left: ptr[int]?, bottom: ptr[int]?, right: ptr[int]?) -> bool = c.SDL_GetWindowBordersSize
|
|
1044
|
+
public foreign function get_window_size_in_pixels(window: Window, out w: int, out h: int) -> bool = c.SDL_GetWindowSizeInPixels
|
|
1045
|
+
public foreign function set_window_minimum_size(window: Window, min_w: int, min_h: int) -> bool = c.SDL_SetWindowMinimumSize
|
|
1046
|
+
public foreign function get_window_minimum_size(window: Window, w: ptr[int]?, h: ptr[int]?) -> bool = c.SDL_GetWindowMinimumSize
|
|
1047
|
+
public foreign function set_window_maximum_size(window: Window, max_w: int, max_h: int) -> bool = c.SDL_SetWindowMaximumSize
|
|
1048
|
+
public foreign function get_window_maximum_size(window: Window, w: ptr[int]?, h: ptr[int]?) -> bool = c.SDL_GetWindowMaximumSize
|
|
1049
|
+
public foreign function set_window_bordered(window: Window, bordered: bool) -> bool = c.SDL_SetWindowBordered
|
|
1050
|
+
public foreign function set_window_resizable(window: Window, resizable: bool) -> bool = c.SDL_SetWindowResizable
|
|
1051
|
+
public foreign function set_window_always_on_top(window: Window, on_top: bool) -> bool = c.SDL_SetWindowAlwaysOnTop
|
|
1052
|
+
public foreign function set_window_fill_document(window: Window, fill: bool) -> bool = c.SDL_SetWindowFillDocument
|
|
1053
|
+
public foreign function show_window(window: Window) -> bool = c.SDL_ShowWindow
|
|
1054
|
+
public foreign function hide_window(window: Window) -> bool = c.SDL_HideWindow
|
|
1055
|
+
public foreign function raise_window(window: Window) -> bool = c.SDL_RaiseWindow
|
|
1056
|
+
public foreign function maximize_window(window: Window) -> bool = c.SDL_MaximizeWindow
|
|
1057
|
+
public foreign function minimize_window(window: Window) -> bool = c.SDL_MinimizeWindow
|
|
1058
|
+
public foreign function restore_window(window: Window) -> bool = c.SDL_RestoreWindow
|
|
1059
|
+
public foreign function set_window_fullscreen(window: Window, fullscreen: bool) -> bool = c.SDL_SetWindowFullscreen
|
|
1060
|
+
public foreign function sync_window(window: Window) -> bool = c.SDL_SyncWindow
|
|
1061
|
+
public foreign function window_has_surface(window: Window) -> bool = c.SDL_WindowHasSurface
|
|
1062
|
+
public foreign function get_window_surface(window: Window) -> ptr[Surface]? = c.SDL_GetWindowSurface
|
|
1063
|
+
public foreign function set_window_surface_v_sync(window: Window, vsync: int) -> bool = c.SDL_SetWindowSurfaceVSync
|
|
1064
|
+
public foreign function get_window_surface_v_sync(window: Window, vsync: ptr[int]) -> bool = c.SDL_GetWindowSurfaceVSync
|
|
1065
|
+
public foreign function update_window_surface(window: Window) -> bool = c.SDL_UpdateWindowSurface
|
|
1066
|
+
public foreign function update_window_surface_rects(window: Window, rects: const_ptr[Rect], numrects: int) -> bool = c.SDL_UpdateWindowSurfaceRects
|
|
1067
|
+
public foreign function destroy_window_surface(window: Window) -> bool = c.SDL_DestroyWindowSurface
|
|
1068
|
+
public foreign function set_window_keyboard_grab(window: Window, grabbed: bool) -> bool = c.SDL_SetWindowKeyboardGrab
|
|
1069
|
+
public foreign function set_window_mouse_grab(window: Window, grabbed: bool) -> bool = c.SDL_SetWindowMouseGrab
|
|
1070
|
+
public foreign function get_window_keyboard_grab(window: Window) -> bool = c.SDL_GetWindowKeyboardGrab
|
|
1071
|
+
public foreign function get_window_mouse_grab(window: Window) -> bool = c.SDL_GetWindowMouseGrab
|
|
1072
|
+
public foreign function get_grabbed_window() -> Window? = c.SDL_GetGrabbedWindow
|
|
1073
|
+
public foreign function set_window_mouse_rect(window: Window, rect: const_ptr[Rect]?) -> bool = c.SDL_SetWindowMouseRect
|
|
1074
|
+
public foreign function get_window_mouse_rect(window: Window) -> const_ptr[Rect]? = c.SDL_GetWindowMouseRect
|
|
1075
|
+
public foreign function set_window_opacity(window: Window, opacity: float) -> bool = c.SDL_SetWindowOpacity
|
|
1076
|
+
public foreign function get_window_opacity(window: Window) -> float = c.SDL_GetWindowOpacity
|
|
1077
|
+
public foreign function set_window_parent(window: Window, parent: Window) -> bool = c.SDL_SetWindowParent
|
|
1078
|
+
public foreign function set_window_modal(window: Window, modal: bool) -> bool = c.SDL_SetWindowModal
|
|
1079
|
+
public foreign function set_window_focusable(window: Window, focusable: bool) -> bool = c.SDL_SetWindowFocusable
|
|
1080
|
+
public foreign function show_window_system_menu(window: Window, x: int, y: int) -> bool = c.SDL_ShowWindowSystemMenu
|
|
1081
|
+
public foreign function set_window_hit_test(window: Window, callback: fn(arg0: Window, arg1: const_ptr[Point], arg2: ptr[void]) -> HitTestResult, callback_data: ptr[void]) -> bool = c.SDL_SetWindowHitTest
|
|
1082
|
+
public foreign function set_window_shape(window: Window, shape: ptr[Surface]?) -> bool = c.SDL_SetWindowShape
|
|
1083
|
+
public foreign function flash_window(window: Window, operation: FlashOperation) -> bool = c.SDL_FlashWindow
|
|
1084
|
+
public foreign function set_window_progress_state(window: Window, state: ProgressState) -> bool = c.SDL_SetWindowProgressState
|
|
1085
|
+
public foreign function get_window_progress_state(window: Window) -> ProgressState = c.SDL_GetWindowProgressState
|
|
1086
|
+
public foreign function set_window_progress_value(window: Window, value: float) -> bool = c.SDL_SetWindowProgressValue
|
|
1087
|
+
public foreign function get_window_progress_value(window: Window) -> float = c.SDL_GetWindowProgressValue
|
|
1088
|
+
public foreign function destroy_window(window: Window) -> void = c.SDL_DestroyWindow
|
|
1089
|
+
public foreign function screen_saver_enabled() -> bool = c.SDL_ScreenSaverEnabled
|
|
1090
|
+
public foreign function enable_screen_saver() -> bool = c.SDL_EnableScreenSaver
|
|
1091
|
+
public foreign function disable_screen_saver() -> bool = c.SDL_DisableScreenSaver
|
|
1092
|
+
public foreign function gl_load_library(path: cstr?) -> bool = c.SDL_GL_LoadLibrary
|
|
1093
|
+
public foreign function gl_get_proc_address(proc_: str as cstr) -> FunctionPointer? = c.SDL_GL_GetProcAddress
|
|
1094
|
+
public foreign function egl_get_proc_address(proc_: str as cstr) -> FunctionPointer? = c.SDL_EGL_GetProcAddress
|
|
1095
|
+
public foreign function gl_unload_library() -> void = c.SDL_GL_UnloadLibrary
|
|
1096
|
+
public foreign function gl_extension_supported(extension: str as cstr) -> bool = c.SDL_GL_ExtensionSupported
|
|
1097
|
+
public foreign function gl_reset_attributes() -> void = c.SDL_GL_ResetAttributes
|
|
1098
|
+
public foreign function gl_set_attribute(attr: GLAttr, value: int) -> bool = c.SDL_GL_SetAttribute
|
|
1099
|
+
public foreign function gl_get_attribute(attr: GLAttr, value: ptr[int]) -> bool = c.SDL_GL_GetAttribute
|
|
1100
|
+
public foreign function gl_create_context(window: Window) -> GLContext? = c.SDL_GL_CreateContext
|
|
1101
|
+
public foreign function gl_make_current(window: Window, context: ptr[GLContextState]) -> bool = c.SDL_GL_MakeCurrent
|
|
1102
|
+
public foreign function gl_get_current_window() -> Window? = c.SDL_GL_GetCurrentWindow
|
|
1103
|
+
public foreign function gl_get_current_context() -> GLContext? = c.SDL_GL_GetCurrentContext
|
|
1104
|
+
public foreign function egl_get_current_display() -> EGLDisplay? = c.SDL_EGL_GetCurrentDisplay
|
|
1105
|
+
public foreign function egl_get_current_config() -> EGLConfig? = c.SDL_EGL_GetCurrentConfig
|
|
1106
|
+
public foreign function egl_get_window_surface(window: Window) -> EGLSurface? = c.SDL_EGL_GetWindowSurface
|
|
1107
|
+
public foreign function egl_set_attribute_callbacks(platform_attrib_callback: fn(arg0: ptr[void]) -> ptr[EGLAttrib], surface_attrib_callback: fn(arg0: ptr[void], arg1: EGLDisplay, arg2: EGLConfig) -> ptr[EGLint], context_attrib_callback: fn(arg0: ptr[void], arg1: EGLDisplay, arg2: EGLConfig) -> ptr[EGLint], userdata: ptr[void]) -> void = c.SDL_EGL_SetAttributeCallbacks
|
|
1108
|
+
public foreign function gl_set_swap_interval(interval: int) -> bool = c.SDL_GL_SetSwapInterval
|
|
1109
|
+
public foreign function gl_get_swap_interval(interval: ptr[int]) -> bool = c.SDL_GL_GetSwapInterval
|
|
1110
|
+
public foreign function gl_swap_window(window: Window) -> bool = c.SDL_GL_SwapWindow
|
|
1111
|
+
public foreign function gl_destroy_context(context: ptr[GLContextState]) -> bool = c.SDL_GL_DestroyContext
|
|
1112
|
+
public foreign function show_open_file_dialog(callback: fn(arg0: ptr[void], arg1: const_ptr[cstr], arg2: int) -> void, userdata: ptr[void], window: Window?, filters: const_ptr[DialogFileFilter]?, nfilters: int, default_location: cstr?, allow_many: bool) -> void = c.SDL_ShowOpenFileDialog
|
|
1113
|
+
public foreign function show_save_file_dialog(callback: fn(arg0: ptr[void], arg1: const_ptr[cstr], arg2: int) -> void, userdata: ptr[void], window: Window?, filters: const_ptr[DialogFileFilter]?, nfilters: int, default_location: cstr?) -> void = c.SDL_ShowSaveFileDialog
|
|
1114
|
+
public foreign function show_open_folder_dialog(callback: fn(arg0: ptr[void], arg1: const_ptr[cstr], arg2: int) -> void, userdata: ptr[void], window: Window?, default_location: cstr?, allow_many: bool) -> void = c.SDL_ShowOpenFolderDialog
|
|
1115
|
+
public foreign function show_file_dialog_with_properties(type_: FileDialogType, callback: fn(arg0: ptr[void], arg1: const_ptr[cstr], arg2: int) -> void, userdata: ptr[void], props: uint) -> void = c.SDL_ShowFileDialogWithProperties
|
|
1116
|
+
public foreign function guid_to_string(guid: GUID, psz_guid: ptr[char], cb_guid: int) -> void = c.SDL_GUIDToString
|
|
1117
|
+
public foreign function string_to_guid(pch_guid: str as cstr) -> GUID = c.SDL_StringToGUID
|
|
1118
|
+
public foreign function get_power_info(out seconds: int, out percent: int) -> PowerState = c.SDL_GetPowerInfo
|
|
1119
|
+
public foreign function get_sensors(count: ptr[int]?) -> ptr[SensorID]? = c.SDL_GetSensors
|
|
1120
|
+
public foreign function get_sensor_name_for_id(instance_id: uint) -> cstr? = c.SDL_GetSensorNameForID
|
|
1121
|
+
public foreign function get_sensor_type_for_id(instance_id: uint) -> SensorType = c.SDL_GetSensorTypeForID
|
|
1122
|
+
public foreign function get_sensor_non_portable_type_for_id(instance_id: uint) -> int = c.SDL_GetSensorNonPortableTypeForID
|
|
1123
|
+
public foreign function open_sensor(instance_id: uint) -> ptr[Sensor]? = c.SDL_OpenSensor
|
|
1124
|
+
public foreign function get_sensor_from_id(instance_id: uint) -> ptr[Sensor]? = c.SDL_GetSensorFromID
|
|
1125
|
+
public foreign function get_sensor_properties(sensor: ptr[Sensor]) -> PropertiesID = c.SDL_GetSensorProperties
|
|
1126
|
+
public foreign function get_sensor_name(sensor: ptr[Sensor]) -> cstr? = c.SDL_GetSensorName
|
|
1127
|
+
public foreign function get_sensor_type(sensor: ptr[Sensor]) -> SensorType = c.SDL_GetSensorType
|
|
1128
|
+
public foreign function get_sensor_non_portable_type(sensor: ptr[Sensor]) -> int = c.SDL_GetSensorNonPortableType
|
|
1129
|
+
public foreign function get_sensor_id(sensor: ptr[Sensor]) -> SensorID = c.SDL_GetSensorID
|
|
1130
|
+
public foreign function get_sensor_data(sensor: ptr[Sensor], data: ptr[float], num_values: int) -> bool = c.SDL_GetSensorData
|
|
1131
|
+
public foreign function close_sensor(sensor: ptr[Sensor]) -> void = c.SDL_CloseSensor
|
|
1132
|
+
public foreign function update_sensors() -> void = c.SDL_UpdateSensors
|
|
1133
|
+
public foreign function lock_joysticks() -> void = c.SDL_LockJoysticks
|
|
1134
|
+
public foreign function unlock_joysticks() -> void = c.SDL_UnlockJoysticks
|
|
1135
|
+
public foreign function has_joystick() -> bool = c.SDL_HasJoystick
|
|
1136
|
+
public foreign function get_joysticks(out count: int) -> ptr[JoystickID]? = c.SDL_GetJoysticks
|
|
1137
|
+
public foreign function get_joystick_name_for_id(instance_id: uint) -> cstr? = c.SDL_GetJoystickNameForID
|
|
1138
|
+
public foreign function get_joystick_path_for_id(instance_id: uint) -> cstr? = c.SDL_GetJoystickPathForID
|
|
1139
|
+
public foreign function get_joystick_player_index_for_id(instance_id: uint) -> int = c.SDL_GetJoystickPlayerIndexForID
|
|
1140
|
+
public foreign function get_joystick_guid_for_id(instance_id: uint) -> GUID = c.SDL_GetJoystickGUIDForID
|
|
1141
|
+
public foreign function get_joystick_vendor_for_id(instance_id: uint) -> ushort = c.SDL_GetJoystickVendorForID
|
|
1142
|
+
public foreign function get_joystick_product_for_id(instance_id: uint) -> ushort = c.SDL_GetJoystickProductForID
|
|
1143
|
+
public foreign function get_joystick_product_version_for_id(instance_id: uint) -> ushort = c.SDL_GetJoystickProductVersionForID
|
|
1144
|
+
public foreign function get_joystick_type_for_id(instance_id: uint) -> JoystickType = c.SDL_GetJoystickTypeForID
|
|
1145
|
+
public foreign function open_joystick(instance_id: uint) -> ptr[Joystick]? = c.SDL_OpenJoystick
|
|
1146
|
+
public foreign function get_joystick_from_id(instance_id: uint) -> ptr[Joystick]? = c.SDL_GetJoystickFromID
|
|
1147
|
+
public foreign function get_joystick_from_player_index(player_index: int) -> ptr[Joystick]? = c.SDL_GetJoystickFromPlayerIndex
|
|
1148
|
+
public foreign function attach_virtual_joystick(desc: const_ptr[VirtualJoystickDesc]) -> JoystickID = c.SDL_AttachVirtualJoystick
|
|
1149
|
+
public foreign function detach_virtual_joystick(instance_id: uint) -> bool = c.SDL_DetachVirtualJoystick
|
|
1150
|
+
public foreign function is_joystick_virtual(instance_id: uint) -> bool = c.SDL_IsJoystickVirtual
|
|
1151
|
+
public foreign function set_joystick_virtual_axis(joystick: ptr[Joystick], axis: int, value: short) -> bool = c.SDL_SetJoystickVirtualAxis
|
|
1152
|
+
public foreign function set_joystick_virtual_ball(joystick: ptr[Joystick], ball: int, xrel: short, yrel: short) -> bool = c.SDL_SetJoystickVirtualBall
|
|
1153
|
+
public foreign function set_joystick_virtual_button(joystick: ptr[Joystick], button: int, down: bool) -> bool = c.SDL_SetJoystickVirtualButton
|
|
1154
|
+
public foreign function set_joystick_virtual_hat(joystick: ptr[Joystick], hat: int, value: ubyte) -> bool = c.SDL_SetJoystickVirtualHat
|
|
1155
|
+
public foreign function set_joystick_virtual_touchpad(joystick: ptr[Joystick], touchpad: int, finger: int, down: bool, x: float, y: float, pressure: float) -> bool = c.SDL_SetJoystickVirtualTouchpad
|
|
1156
|
+
public foreign function send_joystick_virtual_sensor_data(joystick: ptr[Joystick], type_: SensorType, sensor_timestamp: ptr_uint, data: const_ptr[float], num_values: int) -> bool = c.SDL_SendJoystickVirtualSensorData
|
|
1157
|
+
public foreign function get_joystick_properties(joystick: ptr[Joystick]) -> PropertiesID = c.SDL_GetJoystickProperties
|
|
1158
|
+
public foreign function get_joystick_name(joystick: ptr[Joystick]) -> cstr? = c.SDL_GetJoystickName
|
|
1159
|
+
public foreign function get_joystick_path(joystick: ptr[Joystick]) -> cstr? = c.SDL_GetJoystickPath
|
|
1160
|
+
public foreign function get_joystick_player_index(joystick: ptr[Joystick]) -> int = c.SDL_GetJoystickPlayerIndex
|
|
1161
|
+
public foreign function set_joystick_player_index(joystick: ptr[Joystick], player_index: int) -> bool = c.SDL_SetJoystickPlayerIndex
|
|
1162
|
+
public foreign function get_joystick_guid(joystick: ptr[Joystick]) -> GUID = c.SDL_GetJoystickGUID
|
|
1163
|
+
public foreign function get_joystick_vendor(joystick: ptr[Joystick]) -> ushort = c.SDL_GetJoystickVendor
|
|
1164
|
+
public foreign function get_joystick_product(joystick: ptr[Joystick]) -> ushort = c.SDL_GetJoystickProduct
|
|
1165
|
+
public foreign function get_joystick_product_version(joystick: ptr[Joystick]) -> ushort = c.SDL_GetJoystickProductVersion
|
|
1166
|
+
public foreign function get_joystick_firmware_version(joystick: ptr[Joystick]) -> ushort = c.SDL_GetJoystickFirmwareVersion
|
|
1167
|
+
public foreign function get_joystick_serial(joystick: ptr[Joystick]) -> cstr? = c.SDL_GetJoystickSerial
|
|
1168
|
+
public foreign function get_joystick_type(joystick: ptr[Joystick]) -> JoystickType = c.SDL_GetJoystickType
|
|
1169
|
+
public foreign function get_joystick_guid_info(guid: GUID, vendor: ptr[ushort], product: ptr[ushort], version: ptr[ushort], crc16: ptr[ushort]) -> void = c.SDL_GetJoystickGUIDInfo
|
|
1170
|
+
public foreign function joystick_connected(joystick: ptr[Joystick]) -> bool = c.SDL_JoystickConnected
|
|
1171
|
+
public foreign function get_joystick_id(joystick: ptr[Joystick]) -> JoystickID = c.SDL_GetJoystickID
|
|
1172
|
+
public foreign function get_num_joystick_axes(joystick: ptr[Joystick]) -> int = c.SDL_GetNumJoystickAxes
|
|
1173
|
+
public foreign function get_num_joystick_balls(joystick: ptr[Joystick]) -> int = c.SDL_GetNumJoystickBalls
|
|
1174
|
+
public foreign function get_num_joystick_hats(joystick: ptr[Joystick]) -> int = c.SDL_GetNumJoystickHats
|
|
1175
|
+
public foreign function get_num_joystick_buttons(joystick: ptr[Joystick]) -> int = c.SDL_GetNumJoystickButtons
|
|
1176
|
+
public foreign function set_joystick_events_enabled(enabled: bool) -> void = c.SDL_SetJoystickEventsEnabled
|
|
1177
|
+
public foreign function joystick_events_enabled() -> bool = c.SDL_JoystickEventsEnabled
|
|
1178
|
+
public foreign function update_joysticks() -> void = c.SDL_UpdateJoysticks
|
|
1179
|
+
public foreign function get_joystick_axis(joystick: ptr[Joystick], axis: int) -> short = c.SDL_GetJoystickAxis
|
|
1180
|
+
public foreign function get_joystick_axis_initial_state(joystick: ptr[Joystick], axis: int, state: ptr[short]) -> bool = c.SDL_GetJoystickAxisInitialState
|
|
1181
|
+
public foreign function get_joystick_ball(joystick: ptr[Joystick], ball: int, dx: ptr[int], dy: ptr[int]) -> bool = c.SDL_GetJoystickBall
|
|
1182
|
+
public foreign function get_joystick_hat(joystick: ptr[Joystick], hat: int) -> ubyte = c.SDL_GetJoystickHat
|
|
1183
|
+
public foreign function get_joystick_button(joystick: ptr[Joystick], button: int) -> bool = c.SDL_GetJoystickButton
|
|
1184
|
+
public foreign function rumble_joystick(joystick: ptr[Joystick], low_frequency_rumble: ushort, high_frequency_rumble: ushort, duration_ms: uint) -> bool = c.SDL_RumbleJoystick
|
|
1185
|
+
public foreign function rumble_joystick_triggers(joystick: ptr[Joystick], left_rumble: ushort, right_rumble: ushort, duration_ms: uint) -> bool = c.SDL_RumbleJoystickTriggers
|
|
1186
|
+
public foreign function set_joystick_led(joystick: ptr[Joystick], red: ubyte, green: ubyte, blue: ubyte) -> bool = c.SDL_SetJoystickLED
|
|
1187
|
+
public foreign function send_joystick_effect(joystick: ptr[Joystick], data: const_ptr[void], size: int) -> bool = c.SDL_SendJoystickEffect
|
|
1188
|
+
public foreign function close_joystick(joystick: ptr[Joystick]) -> void = c.SDL_CloseJoystick
|
|
1189
|
+
public foreign function get_joystick_connection_state(joystick: ptr[Joystick]) -> JoystickConnectionState = c.SDL_GetJoystickConnectionState
|
|
1190
|
+
public foreign function get_joystick_power_info(joystick: ptr[Joystick], percent: ptr[int]?) -> PowerState = c.SDL_GetJoystickPowerInfo
|
|
1191
|
+
public foreign function add_gamepad_mapping(mapping: str as cstr) -> int = c.SDL_AddGamepadMapping
|
|
1192
|
+
public foreign function add_gamepad_mappings_from_io(src: ptr[IOStream], closeio: bool) -> int = c.SDL_AddGamepadMappingsFromIO
|
|
1193
|
+
public foreign function add_gamepad_mappings_from_file(file: str as cstr) -> int = c.SDL_AddGamepadMappingsFromFile
|
|
1194
|
+
public foreign function reload_gamepad_mappings() -> bool = c.SDL_ReloadGamepadMappings
|
|
1195
|
+
public foreign function get_gamepad_mappings(count: ptr[int]) -> ptr[ptr[char]]? = c.SDL_GetGamepadMappings
|
|
1196
|
+
public foreign function get_gamepad_mapping_for_guid(guid: GUID) -> ptr[char]? = c.SDL_GetGamepadMappingForGUID
|
|
1197
|
+
public foreign function get_gamepad_mapping(gamepad: ptr[Gamepad]) -> ptr[char]? = c.SDL_GetGamepadMapping
|
|
1198
|
+
public foreign function set_gamepad_mapping(instance_id: uint, mapping: cstr?) -> bool = c.SDL_SetGamepadMapping
|
|
1199
|
+
public foreign function has_gamepad() -> bool = c.SDL_HasGamepad
|
|
1200
|
+
public foreign function get_gamepads(out count: int) -> ptr[JoystickID]? = c.SDL_GetGamepads
|
|
1201
|
+
public foreign function is_gamepad(instance_id: uint) -> bool = c.SDL_IsGamepad
|
|
1202
|
+
public foreign function get_gamepad_name_for_id(instance_id: uint) -> cstr? = c.SDL_GetGamepadNameForID
|
|
1203
|
+
public foreign function get_gamepad_path_for_id(instance_id: uint) -> cstr? = c.SDL_GetGamepadPathForID
|
|
1204
|
+
public foreign function get_gamepad_player_index_for_id(instance_id: uint) -> int = c.SDL_GetGamepadPlayerIndexForID
|
|
1205
|
+
public foreign function get_gamepad_guid_for_id(instance_id: uint) -> GUID = c.SDL_GetGamepadGUIDForID
|
|
1206
|
+
public foreign function get_gamepad_vendor_for_id(instance_id: uint) -> ushort = c.SDL_GetGamepadVendorForID
|
|
1207
|
+
public foreign function get_gamepad_product_for_id(instance_id: uint) -> ushort = c.SDL_GetGamepadProductForID
|
|
1208
|
+
public foreign function get_gamepad_product_version_for_id(instance_id: uint) -> ushort = c.SDL_GetGamepadProductVersionForID
|
|
1209
|
+
public foreign function get_gamepad_type_for_id(instance_id: uint) -> GamepadType = c.SDL_GetGamepadTypeForID
|
|
1210
|
+
public foreign function get_real_gamepad_type_for_id(instance_id: uint) -> GamepadType = c.SDL_GetRealGamepadTypeForID
|
|
1211
|
+
public foreign function get_gamepad_mapping_for_id(instance_id: uint) -> ptr[char]? = c.SDL_GetGamepadMappingForID
|
|
1212
|
+
public foreign function open_gamepad(instance_id: uint) -> ptr[Gamepad]? = c.SDL_OpenGamepad
|
|
1213
|
+
public foreign function get_gamepad_from_id(instance_id: uint) -> ptr[Gamepad]? = c.SDL_GetGamepadFromID
|
|
1214
|
+
public foreign function get_gamepad_from_player_index(player_index: int) -> ptr[Gamepad] = c.SDL_GetGamepadFromPlayerIndex
|
|
1215
|
+
public foreign function get_gamepad_properties(gamepad: ptr[Gamepad]) -> PropertiesID = c.SDL_GetGamepadProperties
|
|
1216
|
+
public foreign function get_gamepad_id(gamepad: ptr[Gamepad]) -> JoystickID = c.SDL_GetGamepadID
|
|
1217
|
+
public foreign function get_gamepad_name(gamepad: ptr[Gamepad]) -> cstr? = c.SDL_GetGamepadName
|
|
1218
|
+
public foreign function get_gamepad_path(gamepad: ptr[Gamepad]) -> cstr? = c.SDL_GetGamepadPath
|
|
1219
|
+
public foreign function get_gamepad_type(gamepad: ptr[Gamepad]) -> GamepadType = c.SDL_GetGamepadType
|
|
1220
|
+
public foreign function get_real_gamepad_type(gamepad: ptr[Gamepad]) -> GamepadType = c.SDL_GetRealGamepadType
|
|
1221
|
+
public foreign function get_gamepad_player_index(gamepad: ptr[Gamepad]) -> int = c.SDL_GetGamepadPlayerIndex
|
|
1222
|
+
public foreign function set_gamepad_player_index(gamepad: ptr[Gamepad], player_index: int) -> bool = c.SDL_SetGamepadPlayerIndex
|
|
1223
|
+
public foreign function get_gamepad_vendor(gamepad: ptr[Gamepad]) -> ushort = c.SDL_GetGamepadVendor
|
|
1224
|
+
public foreign function get_gamepad_product(gamepad: ptr[Gamepad]) -> ushort = c.SDL_GetGamepadProduct
|
|
1225
|
+
public foreign function get_gamepad_product_version(gamepad: ptr[Gamepad]) -> ushort = c.SDL_GetGamepadProductVersion
|
|
1226
|
+
public foreign function get_gamepad_firmware_version(gamepad: ptr[Gamepad]) -> ushort = c.SDL_GetGamepadFirmwareVersion
|
|
1227
|
+
public foreign function get_gamepad_serial(gamepad: ptr[Gamepad]) -> cstr? = c.SDL_GetGamepadSerial
|
|
1228
|
+
public foreign function get_gamepad_steam_handle(gamepad: ptr[Gamepad]) -> ptr_uint = c.SDL_GetGamepadSteamHandle
|
|
1229
|
+
public foreign function get_gamepad_connection_state(gamepad: ptr[Gamepad]) -> JoystickConnectionState = c.SDL_GetGamepadConnectionState
|
|
1230
|
+
public foreign function get_gamepad_power_info(gamepad: ptr[Gamepad], percent: ptr[int]?) -> PowerState = c.SDL_GetGamepadPowerInfo
|
|
1231
|
+
public foreign function gamepad_connected(gamepad: ptr[Gamepad]) -> bool = c.SDL_GamepadConnected
|
|
1232
|
+
public foreign function get_gamepad_joystick(gamepad: ptr[Gamepad]) -> ptr[Joystick]? = c.SDL_GetGamepadJoystick
|
|
1233
|
+
public foreign function set_gamepad_events_enabled(enabled: bool) -> void = c.SDL_SetGamepadEventsEnabled
|
|
1234
|
+
public foreign function gamepad_events_enabled() -> bool = c.SDL_GamepadEventsEnabled
|
|
1235
|
+
public foreign function get_gamepad_bindings(gamepad: ptr[Gamepad], count: ptr[int]) -> ptr[ptr[GamepadBinding]]? = c.SDL_GetGamepadBindings
|
|
1236
|
+
public foreign function update_gamepads() -> void = c.SDL_UpdateGamepads
|
|
1237
|
+
public foreign function get_gamepad_type_from_string(str_: str as cstr) -> GamepadType = c.SDL_GetGamepadTypeFromString
|
|
1238
|
+
public foreign function get_gamepad_string_for_type(type_: GamepadType) -> cstr? = c.SDL_GetGamepadStringForType
|
|
1239
|
+
public foreign function get_gamepad_axis_from_string(str_: str as cstr) -> GamepadAxis = c.SDL_GetGamepadAxisFromString
|
|
1240
|
+
public foreign function get_gamepad_string_for_axis(axis: GamepadAxis) -> cstr? = c.SDL_GetGamepadStringForAxis
|
|
1241
|
+
public foreign function gamepad_has_axis(gamepad: ptr[Gamepad], axis: GamepadAxis) -> bool = c.SDL_GamepadHasAxis
|
|
1242
|
+
public foreign function get_gamepad_axis(gamepad: ptr[Gamepad], axis: GamepadAxis) -> short = c.SDL_GetGamepadAxis
|
|
1243
|
+
public foreign function get_gamepad_button_from_string(str_: str as cstr) -> GamepadButton = c.SDL_GetGamepadButtonFromString
|
|
1244
|
+
public foreign function get_gamepad_string_for_button(button: GamepadButton) -> cstr? = c.SDL_GetGamepadStringForButton
|
|
1245
|
+
public foreign function gamepad_has_button(gamepad: ptr[Gamepad], button: GamepadButton) -> bool = c.SDL_GamepadHasButton
|
|
1246
|
+
public foreign function get_gamepad_button(gamepad: ptr[Gamepad], button: GamepadButton) -> bool = c.SDL_GetGamepadButton
|
|
1247
|
+
public foreign function get_gamepad_button_label_for_type(type_: GamepadType, button: GamepadButton) -> GamepadButtonLabel = c.SDL_GetGamepadButtonLabelForType
|
|
1248
|
+
public foreign function get_gamepad_button_label(gamepad: ptr[Gamepad], button: GamepadButton) -> GamepadButtonLabel = c.SDL_GetGamepadButtonLabel
|
|
1249
|
+
public foreign function get_num_gamepad_touchpads(gamepad: ptr[Gamepad]) -> int = c.SDL_GetNumGamepadTouchpads
|
|
1250
|
+
public foreign function get_num_gamepad_touchpad_fingers(gamepad: ptr[Gamepad], touchpad: int) -> int = c.SDL_GetNumGamepadTouchpadFingers
|
|
1251
|
+
public foreign function get_gamepad_touchpad_finger(gamepad: ptr[Gamepad], touchpad: int, finger: int, down: ptr[bool]?, x: ptr[float]?, y: ptr[float]?, pressure: ptr[float]?) -> bool = c.SDL_GetGamepadTouchpadFinger
|
|
1252
|
+
public foreign function gamepad_has_sensor(gamepad: ptr[Gamepad], type_: SensorType) -> bool = c.SDL_GamepadHasSensor
|
|
1253
|
+
public foreign function set_gamepad_sensor_enabled(gamepad: ptr[Gamepad], type_: SensorType, enabled: bool) -> bool = c.SDL_SetGamepadSensorEnabled
|
|
1254
|
+
public foreign function gamepad_sensor_enabled(gamepad: ptr[Gamepad], type_: SensorType) -> bool = c.SDL_GamepadSensorEnabled
|
|
1255
|
+
public foreign function get_gamepad_sensor_data_rate(gamepad: ptr[Gamepad], type_: SensorType) -> float = c.SDL_GetGamepadSensorDataRate
|
|
1256
|
+
public foreign function get_gamepad_sensor_data(gamepad: ptr[Gamepad], type_: SensorType, data: ptr[float], num_values: int) -> bool = c.SDL_GetGamepadSensorData
|
|
1257
|
+
public foreign function rumble_gamepad(gamepad: ptr[Gamepad], low_frequency_rumble: ushort, high_frequency_rumble: ushort, duration_ms: uint) -> bool = c.SDL_RumbleGamepad
|
|
1258
|
+
public foreign function rumble_gamepad_triggers(gamepad: ptr[Gamepad], left_rumble: ushort, right_rumble: ushort, duration_ms: uint) -> bool = c.SDL_RumbleGamepadTriggers
|
|
1259
|
+
public foreign function set_gamepad_led(gamepad: ptr[Gamepad], red: ubyte, green: ubyte, blue: ubyte) -> bool = c.SDL_SetGamepadLED
|
|
1260
|
+
public foreign function send_gamepad_effect(gamepad: ptr[Gamepad], data: const_ptr[void], size: int) -> bool = c.SDL_SendGamepadEffect
|
|
1261
|
+
public foreign function close_gamepad(gamepad: ptr[Gamepad]) -> void = c.SDL_CloseGamepad
|
|
1262
|
+
public foreign function get_gamepad_apple_sf_symbols_name_for_button(gamepad: ptr[Gamepad], button: GamepadButton) -> cstr? = c.SDL_GetGamepadAppleSFSymbolsNameForButton
|
|
1263
|
+
public foreign function get_gamepad_apple_sf_symbols_name_for_axis(gamepad: ptr[Gamepad], axis: GamepadAxis) -> cstr? = c.SDL_GetGamepadAppleSFSymbolsNameForAxis
|
|
1264
|
+
public foreign function has_keyboard() -> bool = c.SDL_HasKeyboard
|
|
1265
|
+
public foreign function get_keyboards(count: ptr[int]?) -> ptr[KeyboardID]? = c.SDL_GetKeyboards
|
|
1266
|
+
public foreign function get_keyboard_name_for_id(instance_id: uint) -> cstr? = c.SDL_GetKeyboardNameForID
|
|
1267
|
+
public foreign function get_keyboard_focus() -> Window = c.SDL_GetKeyboardFocus
|
|
1268
|
+
public foreign function get_keyboard_state(numkeys: ptr[int]) -> const_ptr[bool] = c.SDL_GetKeyboardState
|
|
1269
|
+
public foreign function reset_keyboard() -> void = c.SDL_ResetKeyboard
|
|
1270
|
+
public foreign function get_mod_state() -> Keymod = c.SDL_GetModState
|
|
1271
|
+
public foreign function set_mod_state(modstate: ushort) -> void = c.SDL_SetModState
|
|
1272
|
+
public foreign function get_key_from_scancode(scancode: Scancode, modstate: ushort, key_event: bool) -> Keycode = c.SDL_GetKeyFromScancode
|
|
1273
|
+
public foreign function get_scancode_from_key(key: uint, modstate: ptr[Keymod]?) -> Scancode = c.SDL_GetScancodeFromKey
|
|
1274
|
+
public foreign function set_scancode_name(scancode: Scancode, name: str as cstr) -> bool = c.SDL_SetScancodeName
|
|
1275
|
+
public foreign function get_scancode_name(scancode: Scancode) -> cstr = c.SDL_GetScancodeName
|
|
1276
|
+
public foreign function get_scancode_from_name(name: str as cstr) -> Scancode = c.SDL_GetScancodeFromName
|
|
1277
|
+
public foreign function get_key_name(key: uint) -> cstr = c.SDL_GetKeyName
|
|
1278
|
+
public foreign function get_key_from_name(name: str as cstr) -> Keycode = c.SDL_GetKeyFromName
|
|
1279
|
+
public foreign function start_text_input(window: Window) -> bool = c.SDL_StartTextInput
|
|
1280
|
+
public foreign function start_text_input_with_properties(window: Window, props: uint) -> bool = c.SDL_StartTextInputWithProperties
|
|
1281
|
+
public foreign function text_input_active(window: Window) -> bool = c.SDL_TextInputActive
|
|
1282
|
+
public foreign function stop_text_input(window: Window) -> bool = c.SDL_StopTextInput
|
|
1283
|
+
public foreign function clear_composition(window: Window) -> bool = c.SDL_ClearComposition
|
|
1284
|
+
public foreign function set_text_input_area(window: Window, rect: const_ptr[Rect]?, cursor: int) -> bool = c.SDL_SetTextInputArea
|
|
1285
|
+
public foreign function get_text_input_area(window: Window, rect: ptr[Rect]?, cursor: ptr[int]?) -> bool = c.SDL_GetTextInputArea
|
|
1286
|
+
public foreign function has_screen_keyboard_support() -> bool = c.SDL_HasScreenKeyboardSupport
|
|
1287
|
+
public foreign function screen_keyboard_shown(window: Window) -> bool = c.SDL_ScreenKeyboardShown
|
|
1288
|
+
public foreign function has_mouse() -> bool = c.SDL_HasMouse
|
|
1289
|
+
public foreign function get_mice(count: ptr[int]?) -> ptr[MouseID]? = c.SDL_GetMice
|
|
1290
|
+
public foreign function get_mouse_name_for_id(instance_id: uint) -> cstr? = c.SDL_GetMouseNameForID
|
|
1291
|
+
public foreign function get_mouse_focus() -> Window = c.SDL_GetMouseFocus
|
|
1292
|
+
public foreign function get_mouse_state(x: ptr[float], y: ptr[float]) -> MouseButtonFlags = c.SDL_GetMouseState
|
|
1293
|
+
public foreign function get_global_mouse_state(x: ptr[float], y: ptr[float]) -> MouseButtonFlags = c.SDL_GetGlobalMouseState
|
|
1294
|
+
public foreign function get_relative_mouse_state(x: ptr[float], y: ptr[float]) -> MouseButtonFlags = c.SDL_GetRelativeMouseState
|
|
1295
|
+
public foreign function warp_mouse_in_window(window: Window?, x: float, y: float) -> void = c.SDL_WarpMouseInWindow
|
|
1296
|
+
public foreign function warp_mouse_global(x: float, y: float) -> bool = c.SDL_WarpMouseGlobal
|
|
1297
|
+
public foreign function set_relative_mouse_transform(callback: MouseMotionTransformCallback?, userdata: ptr[void]) -> bool = c.SDL_SetRelativeMouseTransform
|
|
1298
|
+
public foreign function set_window_relative_mouse_mode(window: Window, enabled: bool) -> bool = c.SDL_SetWindowRelativeMouseMode
|
|
1299
|
+
public foreign function get_window_relative_mouse_mode(window: Window) -> bool = c.SDL_GetWindowRelativeMouseMode
|
|
1300
|
+
public foreign function capture_mouse(enabled: bool) -> bool = c.SDL_CaptureMouse
|
|
1301
|
+
public foreign function create_cursor(data: const_ptr[ubyte], mask: const_ptr[ubyte], w: int, h: int, hot_x: int, hot_y: int) -> ptr[Cursor]? = c.SDL_CreateCursor
|
|
1302
|
+
public foreign function create_color_cursor(surface: ptr[Surface], hot_x: int, hot_y: int) -> ptr[Cursor]? = c.SDL_CreateColorCursor
|
|
1303
|
+
public foreign function create_animated_cursor(frames: ptr[CursorFrameInfo], frame_count: int, hot_x: int, hot_y: int) -> ptr[Cursor] = c.SDL_CreateAnimatedCursor
|
|
1304
|
+
public foreign function create_system_cursor(id: SystemCursor) -> ptr[Cursor]? = c.SDL_CreateSystemCursor
|
|
1305
|
+
public foreign function set_cursor(cursor: ptr[Cursor]) -> bool = c.SDL_SetCursor
|
|
1306
|
+
public foreign function get_cursor() -> ptr[Cursor]? = c.SDL_GetCursor
|
|
1307
|
+
public foreign function get_default_cursor() -> ptr[Cursor]? = c.SDL_GetDefaultCursor
|
|
1308
|
+
public foreign function destroy_cursor(cursor: ptr[Cursor]) -> void = c.SDL_DestroyCursor
|
|
1309
|
+
public foreign function show_cursor() -> bool = c.SDL_ShowCursor
|
|
1310
|
+
public foreign function hide_cursor() -> bool = c.SDL_HideCursor
|
|
1311
|
+
public foreign function cursor_visible() -> bool = c.SDL_CursorVisible
|
|
1312
|
+
public foreign function get_touch_devices(count: ptr[int]?) -> ptr[TouchID]? = c.SDL_GetTouchDevices
|
|
1313
|
+
public foreign function get_touch_device_name(touch_id: ptr_uint) -> cstr? = c.SDL_GetTouchDeviceName
|
|
1314
|
+
public foreign function get_touch_device_type(touch_id: ptr_uint) -> TouchDeviceType = c.SDL_GetTouchDeviceType
|
|
1315
|
+
public foreign function get_touch_fingers(touch_id: ptr_uint, count: ptr[int]) -> ptr[ptr[Finger]]? = c.SDL_GetTouchFingers
|
|
1316
|
+
public foreign function get_pen_device_type(instance_id: uint) -> PenDeviceType = c.SDL_GetPenDeviceType
|
|
1317
|
+
public foreign function pump_events() -> void = c.SDL_PumpEvents
|
|
1318
|
+
public foreign function peep_events(events: ptr[Event]?, numevents: int, action: EventAction, min_type: uint, max_type: uint) -> int = c.SDL_PeepEvents
|
|
1319
|
+
public foreign function has_event(type_: uint) -> bool = c.SDL_HasEvent
|
|
1320
|
+
public foreign function has_events(min_type: uint, max_type: uint) -> bool = c.SDL_HasEvents
|
|
1321
|
+
public foreign function flush_event(type_: uint) -> void = c.SDL_FlushEvent
|
|
1322
|
+
public foreign function flush_events(min_type: uint, max_type: uint) -> void = c.SDL_FlushEvents
|
|
1323
|
+
public foreign function poll_event(out event_: Event) -> bool = c.SDL_PollEvent
|
|
1324
|
+
public foreign function wait_event(event_: ptr[Event]?) -> bool = c.SDL_WaitEvent
|
|
1325
|
+
public foreign function wait_event_timeout(event_: ptr[Event]?, timeout_ms: int) -> bool = c.SDL_WaitEventTimeout
|
|
1326
|
+
public foreign function push_event(event_: ptr[Event]) -> bool = c.SDL_PushEvent
|
|
1327
|
+
public foreign function set_event_filter(filter: fn(arg0: ptr[void], arg1: ptr[Event]) -> bool, userdata: ptr[void]) -> void = c.SDL_SetEventFilter
|
|
1328
|
+
public foreign function get_event_filter(filter: ptr[EventFilter], userdata: ptr[ptr[void]]) -> bool = c.SDL_GetEventFilter
|
|
1329
|
+
public foreign function add_event_watch(filter: fn(arg0: ptr[void], arg1: ptr[Event]) -> bool, userdata: ptr[void]) -> bool = c.SDL_AddEventWatch
|
|
1330
|
+
public foreign function remove_event_watch(filter: fn(arg0: ptr[void], arg1: ptr[Event]) -> bool, userdata: ptr[void]) -> void = c.SDL_RemoveEventWatch
|
|
1331
|
+
public foreign function filter_events(filter: fn(arg0: ptr[void], arg1: ptr[Event]) -> bool, userdata: ptr[void]) -> void = c.SDL_FilterEvents
|
|
1332
|
+
public foreign function set_event_enabled(type_: uint, enabled: bool) -> void = c.SDL_SetEventEnabled
|
|
1333
|
+
public foreign function event_enabled(type_: uint) -> bool = c.SDL_EventEnabled
|
|
1334
|
+
public foreign function register_events(numevents: int) -> uint = c.SDL_RegisterEvents
|
|
1335
|
+
public foreign function get_window_from_event(event_: const_ptr[Event]) -> Window? = c.SDL_GetWindowFromEvent
|
|
1336
|
+
public foreign function get_event_description(event_: const_ptr[Event], buf: ptr[char], buflen: int) -> int = c.SDL_GetEventDescription
|
|
1337
|
+
public foreign function get_base_path() -> cstr? = c.SDL_GetBasePath
|
|
1338
|
+
public foreign function get_pref_path(org: str as cstr, app: str as cstr) -> ptr[char] = c.SDL_GetPrefPath
|
|
1339
|
+
public foreign function get_user_folder(folder: Folder) -> cstr = c.SDL_GetUserFolder
|
|
1340
|
+
public foreign function create_directory(path: str as cstr) -> bool = c.SDL_CreateDirectory
|
|
1341
|
+
public foreign function enumerate_directory(path: str as cstr, callback: fn(arg0: ptr[void], arg1: cstr, arg2: cstr) -> EnumerationResult, userdata: ptr[void]) -> bool = c.SDL_EnumerateDirectory
|
|
1342
|
+
public foreign function remove_path(path: str as cstr) -> bool = c.SDL_RemovePath
|
|
1343
|
+
public foreign function rename_path(oldpath: str as cstr, newpath: str as cstr) -> bool = c.SDL_RenamePath
|
|
1344
|
+
public foreign function copy_file(oldpath: str as cstr, newpath: str as cstr) -> bool = c.SDL_CopyFile
|
|
1345
|
+
public foreign function get_path_info(path: str as cstr, info: ptr[PathInfo]?) -> bool = c.SDL_GetPathInfo
|
|
1346
|
+
public foreign function glob_directory(path: str as cstr, pattern: str as cstr, flags_: uint, count: ptr[int]) -> ptr[ptr[char]]? = c.SDL_GlobDirectory
|
|
1347
|
+
public foreign function get_current_directory() -> ptr[char] = c.SDL_GetCurrentDirectory
|
|
1348
|
+
public foreign function gpu_supports_shader_formats(format_flags: uint, name: cstr?) -> bool = c.SDL_GPUSupportsShaderFormats
|
|
1349
|
+
public foreign function gpu_supports_properties(props: uint) -> bool = c.SDL_GPUSupportsProperties
|
|
1350
|
+
public foreign function create_gpu_device(format_flags: uint, debug_mode: bool, name: cstr?) -> ptr[GPUDevice]? = c.SDL_CreateGPUDevice
|
|
1351
|
+
public foreign function create_gpu_device_with_properties(props: uint) -> ptr[GPUDevice]? = c.SDL_CreateGPUDeviceWithProperties
|
|
1352
|
+
public foreign function destroy_gpu_device(device: ptr[GPUDevice]) -> void = c.SDL_DestroyGPUDevice
|
|
1353
|
+
public foreign function get_num_gpu_drivers() -> int = c.SDL_GetNumGPUDrivers
|
|
1354
|
+
public foreign function get_gpu_driver(index: int) -> cstr = c.SDL_GetGPUDriver
|
|
1355
|
+
public foreign function get_gpu_device_driver(device: ptr[GPUDevice]) -> cstr? = c.SDL_GetGPUDeviceDriver
|
|
1356
|
+
public foreign function get_gpu_shader_formats(device: ptr[GPUDevice]) -> GPUShaderFormat = c.SDL_GetGPUShaderFormats
|
|
1357
|
+
public foreign function get_gpu_device_properties(device: ptr[GPUDevice]) -> PropertiesID = c.SDL_GetGPUDeviceProperties
|
|
1358
|
+
public foreign function create_gpu_compute_pipeline(device: ptr[GPUDevice], createinfo: const_ptr[GPUComputePipelineCreateInfo]) -> ptr[GPUComputePipeline]? = c.SDL_CreateGPUComputePipeline
|
|
1359
|
+
public foreign function create_gpu_graphics_pipeline(device: ptr[GPUDevice], createinfo: const_ptr[GPUGraphicsPipelineCreateInfo]) -> ptr[GPUGraphicsPipeline]? = c.SDL_CreateGPUGraphicsPipeline
|
|
1360
|
+
public foreign function create_gpu_sampler(device: ptr[GPUDevice], createinfo: const_ptr[GPUSamplerCreateInfo]) -> ptr[GPUSampler]? = c.SDL_CreateGPUSampler
|
|
1361
|
+
public foreign function create_gpu_shader(device: ptr[GPUDevice], createinfo: const_ptr[GPUShaderCreateInfo]) -> ptr[GPUShader]? = c.SDL_CreateGPUShader
|
|
1362
|
+
public foreign function create_gpu_texture(device: ptr[GPUDevice], createinfo: const_ptr[GPUTextureCreateInfo]) -> ptr[GPUTexture]? = c.SDL_CreateGPUTexture
|
|
1363
|
+
public foreign function create_gpu_buffer(device: ptr[GPUDevice], createinfo: const_ptr[GPUBufferCreateInfo]) -> ptr[GPUBuffer]? = c.SDL_CreateGPUBuffer
|
|
1364
|
+
public foreign function create_gpu_transfer_buffer(device: ptr[GPUDevice], createinfo: const_ptr[GPUTransferBufferCreateInfo]) -> ptr[GPUTransferBuffer]? = c.SDL_CreateGPUTransferBuffer
|
|
1365
|
+
public foreign function set_gpu_buffer_name(device: ptr[GPUDevice], buffer: ptr[GPUBuffer], text: str as cstr) -> void = c.SDL_SetGPUBufferName
|
|
1366
|
+
public foreign function set_gpu_texture_name(device: ptr[GPUDevice], texture: ptr[GPUTexture], text: str as cstr) -> void = c.SDL_SetGPUTextureName
|
|
1367
|
+
public foreign function insert_gpu_debug_label(command_buffer: ptr[GPUCommandBuffer], text: str as cstr) -> void = c.SDL_InsertGPUDebugLabel
|
|
1368
|
+
public foreign function push_gpu_debug_group(command_buffer: ptr[GPUCommandBuffer], name: str as cstr) -> void = c.SDL_PushGPUDebugGroup
|
|
1369
|
+
public foreign function pop_gpu_debug_group(command_buffer: ptr[GPUCommandBuffer]) -> void = c.SDL_PopGPUDebugGroup
|
|
1370
|
+
public foreign function release_gpu_texture(device: ptr[GPUDevice], texture: ptr[GPUTexture]) -> void = c.SDL_ReleaseGPUTexture
|
|
1371
|
+
public foreign function release_gpu_sampler(device: ptr[GPUDevice], sampler: ptr[GPUSampler]) -> void = c.SDL_ReleaseGPUSampler
|
|
1372
|
+
public foreign function release_gpu_buffer(device: ptr[GPUDevice], buffer: ptr[GPUBuffer]) -> void = c.SDL_ReleaseGPUBuffer
|
|
1373
|
+
public foreign function release_gpu_transfer_buffer(device: ptr[GPUDevice], transfer_buffer: ptr[GPUTransferBuffer]) -> void = c.SDL_ReleaseGPUTransferBuffer
|
|
1374
|
+
public foreign function release_gpu_compute_pipeline(device: ptr[GPUDevice], compute_pipeline: ptr[GPUComputePipeline]) -> void = c.SDL_ReleaseGPUComputePipeline
|
|
1375
|
+
public foreign function release_gpu_shader(device: ptr[GPUDevice], shader: ptr[GPUShader]) -> void = c.SDL_ReleaseGPUShader
|
|
1376
|
+
public foreign function release_gpu_graphics_pipeline(device: ptr[GPUDevice], graphics_pipeline: ptr[GPUGraphicsPipeline]) -> void = c.SDL_ReleaseGPUGraphicsPipeline
|
|
1377
|
+
public foreign function acquire_gpu_command_buffer(device: ptr[GPUDevice]) -> ptr[GPUCommandBuffer]? = c.SDL_AcquireGPUCommandBuffer
|
|
1378
|
+
public foreign function push_gpu_vertex_uniform_data(command_buffer: ptr[GPUCommandBuffer], slot_index: uint, data: const_ptr[void], length: uint) -> void = c.SDL_PushGPUVertexUniformData
|
|
1379
|
+
public foreign function push_gpu_fragment_uniform_data(command_buffer: ptr[GPUCommandBuffer], slot_index: uint, data: const_ptr[void], length: uint) -> void = c.SDL_PushGPUFragmentUniformData
|
|
1380
|
+
public foreign function push_gpu_compute_uniform_data(command_buffer: ptr[GPUCommandBuffer], slot_index: uint, data: const_ptr[void], length: uint) -> void = c.SDL_PushGPUComputeUniformData
|
|
1381
|
+
public foreign function begin_gpu_render_pass(command_buffer: ptr[GPUCommandBuffer], color_target_infos: const_ptr[GPUColorTargetInfo], num_color_targets: uint, depth_stencil_target_info: const_ptr[GPUDepthStencilTargetInfo]?) -> ptr[GPURenderPass] = c.SDL_BeginGPURenderPass
|
|
1382
|
+
public foreign function bind_gpu_graphics_pipeline(render_pass: ptr[GPURenderPass], graphics_pipeline: ptr[GPUGraphicsPipeline]) -> void = c.SDL_BindGPUGraphicsPipeline
|
|
1383
|
+
public foreign function set_gpu_viewport(render_pass: ptr[GPURenderPass], viewport: const_ptr[GPUViewport]) -> void = c.SDL_SetGPUViewport
|
|
1384
|
+
public foreign function set_gpu_scissor(render_pass: ptr[GPURenderPass], scissor: const_ptr[Rect]) -> void = c.SDL_SetGPUScissor
|
|
1385
|
+
public foreign function set_gpu_blend_constants(render_pass: ptr[GPURenderPass], blend_constants: FColor) -> void = c.SDL_SetGPUBlendConstants
|
|
1386
|
+
public foreign function set_gpu_stencil_reference(render_pass: ptr[GPURenderPass], reference: ubyte) -> void = c.SDL_SetGPUStencilReference
|
|
1387
|
+
public foreign function bind_gpu_vertex_buffers(render_pass: ptr[GPURenderPass], first_slot: uint, bindings: const_ptr[GPUBufferBinding], num_bindings: uint) -> void = c.SDL_BindGPUVertexBuffers
|
|
1388
|
+
public foreign function bind_gpu_index_buffer(render_pass: ptr[GPURenderPass], binding: const_ptr[GPUBufferBinding], index_element_size: GPUIndexElementSize) -> void = c.SDL_BindGPUIndexBuffer
|
|
1389
|
+
public foreign function bind_gpu_vertex_samplers(render_pass: ptr[GPURenderPass], first_slot: uint, texture_sampler_bindings: const_ptr[GPUTextureSamplerBinding], num_bindings: uint) -> void = c.SDL_BindGPUVertexSamplers
|
|
1390
|
+
public foreign function bind_gpu_vertex_storage_textures(render_pass: ptr[GPURenderPass], first_slot: uint, storage_textures: const_ptr[ptr[GPUTexture]], num_bindings: uint) -> void = c.SDL_BindGPUVertexStorageTextures
|
|
1391
|
+
public foreign function bind_gpu_vertex_storage_buffers(render_pass: ptr[GPURenderPass], first_slot: uint, storage_buffers: const_ptr[ptr[GPUBuffer]], num_bindings: uint) -> void = c.SDL_BindGPUVertexStorageBuffers
|
|
1392
|
+
public foreign function bind_gpu_fragment_samplers(render_pass: ptr[GPURenderPass], first_slot: uint, texture_sampler_bindings: const_ptr[GPUTextureSamplerBinding], num_bindings: uint) -> void = c.SDL_BindGPUFragmentSamplers
|
|
1393
|
+
public foreign function bind_gpu_fragment_storage_textures(render_pass: ptr[GPURenderPass], first_slot: uint, storage_textures: const_ptr[ptr[GPUTexture]], num_bindings: uint) -> void = c.SDL_BindGPUFragmentStorageTextures
|
|
1394
|
+
public foreign function bind_gpu_fragment_storage_buffers(render_pass: ptr[GPURenderPass], first_slot: uint, storage_buffers: const_ptr[ptr[GPUBuffer]], num_bindings: uint) -> void = c.SDL_BindGPUFragmentStorageBuffers
|
|
1395
|
+
public foreign function draw_gpu_indexed_primitives(render_pass: ptr[GPURenderPass], num_indices: uint, num_instances: uint, first_index: uint, vertex_offset: int, first_instance: uint) -> void = c.SDL_DrawGPUIndexedPrimitives
|
|
1396
|
+
public foreign function draw_gpu_primitives(render_pass: ptr[GPURenderPass], num_vertices: uint, num_instances: uint, first_vertex: uint, first_instance: uint) -> void = c.SDL_DrawGPUPrimitives
|
|
1397
|
+
public foreign function draw_gpu_primitives_indirect(render_pass: ptr[GPURenderPass], buffer: ptr[GPUBuffer], offset: uint, draw_count: uint) -> void = c.SDL_DrawGPUPrimitivesIndirect
|
|
1398
|
+
public foreign function draw_gpu_indexed_primitives_indirect(render_pass: ptr[GPURenderPass], buffer: ptr[GPUBuffer], offset: uint, draw_count: uint) -> void = c.SDL_DrawGPUIndexedPrimitivesIndirect
|
|
1399
|
+
public foreign function end_gpu_render_pass(render_pass: ptr[GPURenderPass]) -> void = c.SDL_EndGPURenderPass
|
|
1400
|
+
public foreign function begin_gpu_compute_pass(command_buffer: ptr[GPUCommandBuffer], storage_texture_bindings: const_ptr[GPUStorageTextureReadWriteBinding], num_storage_texture_bindings: uint, storage_buffer_bindings: const_ptr[GPUStorageBufferReadWriteBinding], num_storage_buffer_bindings: uint) -> ptr[GPUComputePass] = c.SDL_BeginGPUComputePass
|
|
1401
|
+
public foreign function bind_gpu_compute_pipeline(compute_pass: ptr[GPUComputePass], compute_pipeline: ptr[GPUComputePipeline]) -> void = c.SDL_BindGPUComputePipeline
|
|
1402
|
+
public foreign function bind_gpu_compute_samplers(compute_pass: ptr[GPUComputePass], first_slot: uint, texture_sampler_bindings: const_ptr[GPUTextureSamplerBinding], num_bindings: uint) -> void = c.SDL_BindGPUComputeSamplers
|
|
1403
|
+
public foreign function bind_gpu_compute_storage_textures(compute_pass: ptr[GPUComputePass], first_slot: uint, storage_textures: const_ptr[ptr[GPUTexture]], num_bindings: uint) -> void = c.SDL_BindGPUComputeStorageTextures
|
|
1404
|
+
public foreign function bind_gpu_compute_storage_buffers(compute_pass: ptr[GPUComputePass], first_slot: uint, storage_buffers: const_ptr[ptr[GPUBuffer]], num_bindings: uint) -> void = c.SDL_BindGPUComputeStorageBuffers
|
|
1405
|
+
public foreign function dispatch_gpu_compute(compute_pass: ptr[GPUComputePass], groupcount_x: uint, groupcount_y: uint, groupcount_z: uint) -> void = c.SDL_DispatchGPUCompute
|
|
1406
|
+
public foreign function dispatch_gpu_compute_indirect(compute_pass: ptr[GPUComputePass], buffer: ptr[GPUBuffer], offset: uint) -> void = c.SDL_DispatchGPUComputeIndirect
|
|
1407
|
+
public foreign function end_gpu_compute_pass(compute_pass: ptr[GPUComputePass]) -> void = c.SDL_EndGPUComputePass
|
|
1408
|
+
public foreign function map_gpu_transfer_buffer(device: ptr[GPUDevice], transfer_buffer: ptr[GPUTransferBuffer], cycle: bool) -> ptr[void]? = c.SDL_MapGPUTransferBuffer
|
|
1409
|
+
public foreign function unmap_gpu_transfer_buffer(device: ptr[GPUDevice], transfer_buffer: ptr[GPUTransferBuffer]) -> void = c.SDL_UnmapGPUTransferBuffer
|
|
1410
|
+
public foreign function begin_gpu_copy_pass(command_buffer: ptr[GPUCommandBuffer]) -> ptr[GPUCopyPass] = c.SDL_BeginGPUCopyPass
|
|
1411
|
+
public foreign function upload_to_gpu_texture(copy_pass: ptr[GPUCopyPass], source: const_ptr[GPUTextureTransferInfo], destination: const_ptr[GPUTextureRegion], cycle: bool) -> void = c.SDL_UploadToGPUTexture
|
|
1412
|
+
public foreign function upload_to_gpu_buffer(copy_pass: ptr[GPUCopyPass], source: const_ptr[GPUTransferBufferLocation], destination: const_ptr[GPUBufferRegion], cycle: bool) -> void = c.SDL_UploadToGPUBuffer
|
|
1413
|
+
public foreign function copy_gpu_texture_to_texture(copy_pass: ptr[GPUCopyPass], source: const_ptr[GPUTextureLocation], destination: const_ptr[GPUTextureLocation], w: uint, h: uint, d: uint, cycle: bool) -> void = c.SDL_CopyGPUTextureToTexture
|
|
1414
|
+
public foreign function copy_gpu_buffer_to_buffer(copy_pass: ptr[GPUCopyPass], source: const_ptr[GPUBufferLocation], destination: const_ptr[GPUBufferLocation], size: uint, cycle: bool) -> void = c.SDL_CopyGPUBufferToBuffer
|
|
1415
|
+
public foreign function download_from_gpu_texture(copy_pass: ptr[GPUCopyPass], source: const_ptr[GPUTextureRegion], destination: const_ptr[GPUTextureTransferInfo]) -> void = c.SDL_DownloadFromGPUTexture
|
|
1416
|
+
public foreign function download_from_gpu_buffer(copy_pass: ptr[GPUCopyPass], source: const_ptr[GPUBufferRegion], destination: const_ptr[GPUTransferBufferLocation]) -> void = c.SDL_DownloadFromGPUBuffer
|
|
1417
|
+
public foreign function end_gpu_copy_pass(copy_pass: ptr[GPUCopyPass]) -> void = c.SDL_EndGPUCopyPass
|
|
1418
|
+
public foreign function generate_mipmaps_for_gpu_texture(command_buffer: ptr[GPUCommandBuffer], texture: ptr[GPUTexture]) -> void = c.SDL_GenerateMipmapsForGPUTexture
|
|
1419
|
+
public foreign function blit_gpu_texture(command_buffer: ptr[GPUCommandBuffer], info: const_ptr[GPUBlitInfo]) -> void = c.SDL_BlitGPUTexture
|
|
1420
|
+
public foreign function window_supports_gpu_swapchain_composition(device: ptr[GPUDevice], window: Window, swapchain_composition: GPUSwapchainComposition) -> bool = c.SDL_WindowSupportsGPUSwapchainComposition
|
|
1421
|
+
public foreign function window_supports_gpu_present_mode(device: ptr[GPUDevice], window: Window, present_mode: GPUPresentMode) -> bool = c.SDL_WindowSupportsGPUPresentMode
|
|
1422
|
+
public foreign function claim_window_for_gpu_device(device: ptr[GPUDevice], window: Window) -> bool = c.SDL_ClaimWindowForGPUDevice
|
|
1423
|
+
public foreign function release_window_from_gpu_device(device: ptr[GPUDevice], window: Window) -> void = c.SDL_ReleaseWindowFromGPUDevice
|
|
1424
|
+
public foreign function set_gpu_swapchain_parameters(device: ptr[GPUDevice], window: Window, swapchain_composition: GPUSwapchainComposition, present_mode: GPUPresentMode) -> bool = c.SDL_SetGPUSwapchainParameters
|
|
1425
|
+
public foreign function set_gpu_allowed_frames_in_flight(device: ptr[GPUDevice], allowed_frames_in_flight: uint) -> bool = c.SDL_SetGPUAllowedFramesInFlight
|
|
1426
|
+
public foreign function get_gpu_swapchain_texture_format(device: ptr[GPUDevice], window: Window) -> GPUTextureFormat = c.SDL_GetGPUSwapchainTextureFormat
|
|
1427
|
+
public foreign function acquire_gpu_swapchain_texture(command_buffer: ptr[GPUCommandBuffer], window: Window, swapchain_texture: ptr[ptr[GPUTexture]], swapchain_texture_width: ptr[uint]?, swapchain_texture_height: ptr[uint]?) -> bool = c.SDL_AcquireGPUSwapchainTexture
|
|
1428
|
+
public foreign function wait_for_gpu_swapchain(device: ptr[GPUDevice], window: Window) -> bool = c.SDL_WaitForGPUSwapchain
|
|
1429
|
+
public foreign function wait_and_acquire_gpu_swapchain_texture(command_buffer: ptr[GPUCommandBuffer], window: Window, swapchain_texture: ptr[ptr[GPUTexture]], swapchain_texture_width: ptr[uint]?, swapchain_texture_height: ptr[uint]?) -> bool = c.SDL_WaitAndAcquireGPUSwapchainTexture
|
|
1430
|
+
public foreign function submit_gpu_command_buffer(command_buffer: ptr[GPUCommandBuffer]) -> bool = c.SDL_SubmitGPUCommandBuffer
|
|
1431
|
+
public foreign function submit_gpu_command_buffer_and_acquire_fence(command_buffer: ptr[GPUCommandBuffer]) -> ptr[GPUFence]? = c.SDL_SubmitGPUCommandBufferAndAcquireFence
|
|
1432
|
+
public foreign function cancel_gpu_command_buffer(command_buffer: ptr[GPUCommandBuffer]) -> bool = c.SDL_CancelGPUCommandBuffer
|
|
1433
|
+
public foreign function wait_for_gpu_idle(device: ptr[GPUDevice]) -> bool = c.SDL_WaitForGPUIdle
|
|
1434
|
+
public foreign function wait_for_gpu_fences(device: ptr[GPUDevice], wait_all: bool, fences: const_ptr[ptr[GPUFence]], num_fences: uint) -> bool = c.SDL_WaitForGPUFences
|
|
1435
|
+
public foreign function query_gpu_fence(device: ptr[GPUDevice], fence: ptr[GPUFence]) -> bool = c.SDL_QueryGPUFence
|
|
1436
|
+
public foreign function release_gpu_fence(device: ptr[GPUDevice], fence: ptr[GPUFence]) -> void = c.SDL_ReleaseGPUFence
|
|
1437
|
+
public foreign function gpu_texture_format_texel_block_size(format: GPUTextureFormat) -> uint = c.SDL_GPUTextureFormatTexelBlockSize
|
|
1438
|
+
public foreign function gpu_texture_supports_format(device: ptr[GPUDevice], format: GPUTextureFormat, type_: GPUTextureType, usage: uint) -> bool = c.SDL_GPUTextureSupportsFormat
|
|
1439
|
+
public foreign function gpu_texture_supports_sample_count(device: ptr[GPUDevice], format: GPUTextureFormat, sample_count: GPUSampleCount) -> bool = c.SDL_GPUTextureSupportsSampleCount
|
|
1440
|
+
public foreign function calculate_gpu_texture_format_size(format: GPUTextureFormat, width: uint, height: uint, depth_or_layer_count: uint) -> uint = c.SDL_CalculateGPUTextureFormatSize
|
|
1441
|
+
public foreign function get_pixel_format_from_gpu_texture_format(format: GPUTextureFormat) -> PixelFormat = c.SDL_GetPixelFormatFromGPUTextureFormat
|
|
1442
|
+
public foreign function get_gpu_texture_format_from_pixel_format(format: PixelFormat) -> GPUTextureFormat = c.SDL_GetGPUTextureFormatFromPixelFormat
|
|
1443
|
+
public foreign function get_haptics(count: ptr[int]?) -> ptr[HapticID]? = c.SDL_GetHaptics
|
|
1444
|
+
public foreign function get_haptic_name_for_id(instance_id: uint) -> cstr? = c.SDL_GetHapticNameForID
|
|
1445
|
+
public foreign function open_haptic(instance_id: uint) -> ptr[Haptic]? = c.SDL_OpenHaptic
|
|
1446
|
+
public foreign function get_haptic_from_id(instance_id: uint) -> ptr[Haptic]? = c.SDL_GetHapticFromID
|
|
1447
|
+
public foreign function get_haptic_id(haptic: ptr[Haptic]) -> HapticID = c.SDL_GetHapticID
|
|
1448
|
+
public foreign function get_haptic_name(haptic: ptr[Haptic]) -> cstr? = c.SDL_GetHapticName
|
|
1449
|
+
public foreign function is_mouse_haptic() -> bool = c.SDL_IsMouseHaptic
|
|
1450
|
+
public foreign function open_haptic_from_mouse() -> ptr[Haptic]? = c.SDL_OpenHapticFromMouse
|
|
1451
|
+
public foreign function is_joystick_haptic(joystick: ptr[Joystick]) -> bool = c.SDL_IsJoystickHaptic
|
|
1452
|
+
public foreign function open_haptic_from_joystick(joystick: ptr[Joystick]) -> ptr[Haptic]? = c.SDL_OpenHapticFromJoystick
|
|
1453
|
+
public foreign function close_haptic(haptic: ptr[Haptic]) -> void = c.SDL_CloseHaptic
|
|
1454
|
+
public foreign function get_max_haptic_effects(haptic: ptr[Haptic]) -> int = c.SDL_GetMaxHapticEffects
|
|
1455
|
+
public foreign function get_max_haptic_effects_playing(haptic: ptr[Haptic]) -> int = c.SDL_GetMaxHapticEffectsPlaying
|
|
1456
|
+
public foreign function get_haptic_features(haptic: ptr[Haptic]) -> uint = c.SDL_GetHapticFeatures
|
|
1457
|
+
public foreign function get_num_haptic_axes(haptic: ptr[Haptic]) -> int = c.SDL_GetNumHapticAxes
|
|
1458
|
+
public foreign function haptic_effect_supported(haptic: ptr[Haptic], effect: const_ptr[HapticEffect]) -> bool = c.SDL_HapticEffectSupported
|
|
1459
|
+
public foreign function create_haptic_effect(haptic: ptr[Haptic], effect: const_ptr[HapticEffect]) -> HapticEffectID = c.SDL_CreateHapticEffect
|
|
1460
|
+
public foreign function update_haptic_effect(haptic: ptr[Haptic], effect: int, data: const_ptr[HapticEffect]) -> bool = c.SDL_UpdateHapticEffect
|
|
1461
|
+
public foreign function run_haptic_effect(haptic: ptr[Haptic], effect: int, iterations: uint) -> bool = c.SDL_RunHapticEffect
|
|
1462
|
+
public foreign function stop_haptic_effect(haptic: ptr[Haptic], effect: int) -> bool = c.SDL_StopHapticEffect
|
|
1463
|
+
public foreign function destroy_haptic_effect(haptic: ptr[Haptic], effect: int) -> void = c.SDL_DestroyHapticEffect
|
|
1464
|
+
public foreign function get_haptic_effect_status(haptic: ptr[Haptic], effect: int) -> bool = c.SDL_GetHapticEffectStatus
|
|
1465
|
+
public foreign function set_haptic_gain(haptic: ptr[Haptic], gain: int) -> bool = c.SDL_SetHapticGain
|
|
1466
|
+
public foreign function set_haptic_autocenter(haptic: ptr[Haptic], autocenter: int) -> bool = c.SDL_SetHapticAutocenter
|
|
1467
|
+
public foreign function pause_haptic(haptic: ptr[Haptic]) -> bool = c.SDL_PauseHaptic
|
|
1468
|
+
public foreign function resume_haptic(haptic: ptr[Haptic]) -> bool = c.SDL_ResumeHaptic
|
|
1469
|
+
public foreign function stop_haptic_effects(haptic: ptr[Haptic]) -> bool = c.SDL_StopHapticEffects
|
|
1470
|
+
public foreign function haptic_rumble_supported(haptic: ptr[Haptic]) -> bool = c.SDL_HapticRumbleSupported
|
|
1471
|
+
public foreign function init_haptic_rumble(haptic: ptr[Haptic]) -> bool = c.SDL_InitHapticRumble
|
|
1472
|
+
public foreign function play_haptic_rumble(haptic: ptr[Haptic], strength: float, length: uint) -> bool = c.SDL_PlayHapticRumble
|
|
1473
|
+
public foreign function stop_haptic_rumble(haptic: ptr[Haptic]) -> bool = c.SDL_StopHapticRumble
|
|
1474
|
+
public foreign function hid_init() -> int = c.SDL_hid_init
|
|
1475
|
+
public foreign function hid_exit() -> int = c.SDL_hid_exit
|
|
1476
|
+
public foreign function hid_device_change_count() -> uint = c.SDL_hid_device_change_count
|
|
1477
|
+
public foreign function hid_enumerate(vendor_id: ushort, product_id: ushort) -> ptr[hid_device_info] = c.SDL_hid_enumerate
|
|
1478
|
+
public foreign function hid_free_enumeration(devs: ptr[hid_device_info]) -> void = c.SDL_hid_free_enumeration
|
|
1479
|
+
public foreign function hid_open(vendor_id: ushort, product_id: ushort, serial_number: const_ptr[int]) -> ptr[hid_device]? = c.SDL_hid_open
|
|
1480
|
+
public foreign function hid_open_path(path: str as cstr) -> ptr[hid_device]? = c.SDL_hid_open_path
|
|
1481
|
+
public foreign function hid_get_properties(dev: ptr[hid_device]) -> PropertiesID = c.SDL_hid_get_properties
|
|
1482
|
+
public foreign function hid_write(dev: ptr[hid_device], data: const_ptr[ubyte], length: ptr_uint) -> int = c.SDL_hid_write
|
|
1483
|
+
public foreign function hid_read_timeout(dev: ptr[hid_device], data: ptr[ubyte], length: ptr_uint, milliseconds: int) -> int = c.SDL_hid_read_timeout
|
|
1484
|
+
public foreign function hid_read(dev: ptr[hid_device], data: ptr[ubyte], length: ptr_uint) -> int = c.SDL_hid_read
|
|
1485
|
+
public foreign function hid_set_nonblocking(dev: ptr[hid_device], nonblock: int) -> int = c.SDL_hid_set_nonblocking
|
|
1486
|
+
public foreign function hid_send_feature_report(dev: ptr[hid_device], data: const_ptr[ubyte], length: ptr_uint) -> int = c.SDL_hid_send_feature_report
|
|
1487
|
+
public foreign function hid_get_feature_report(dev: ptr[hid_device], data: ptr[ubyte], length: ptr_uint) -> int = c.SDL_hid_get_feature_report
|
|
1488
|
+
public foreign function hid_get_input_report(dev: ptr[hid_device], data: ptr[ubyte], length: ptr_uint) -> int = c.SDL_hid_get_input_report
|
|
1489
|
+
public foreign function hid_close(dev: ptr[hid_device]) -> int = c.SDL_hid_close
|
|
1490
|
+
public foreign function hid_get_manufacturer_string(dev: ptr[hid_device], string: ptr[int], maxlen: ptr_uint) -> int = c.SDL_hid_get_manufacturer_string
|
|
1491
|
+
public foreign function hid_get_product_string(dev: ptr[hid_device], string: ptr[int], maxlen: ptr_uint) -> int = c.SDL_hid_get_product_string
|
|
1492
|
+
public foreign function hid_get_serial_number_string(dev: ptr[hid_device], string: ptr[int], maxlen: ptr_uint) -> int = c.SDL_hid_get_serial_number_string
|
|
1493
|
+
public foreign function hid_get_indexed_string(dev: ptr[hid_device], string_index: int, string: ptr[int], maxlen: ptr_uint) -> int = c.SDL_hid_get_indexed_string
|
|
1494
|
+
public foreign function hid_get_device_info(dev: ptr[hid_device]) -> ptr[hid_device_info]? = c.SDL_hid_get_device_info
|
|
1495
|
+
public foreign function hid_get_report_descriptor(dev: ptr[hid_device], buf: ptr[ubyte], buf_size: ptr_uint) -> int = c.SDL_hid_get_report_descriptor
|
|
1496
|
+
public foreign function hid_ble_scan(active: bool) -> void = c.SDL_hid_ble_scan
|
|
1497
|
+
public foreign function set_hint_with_priority(name: str as cstr, value: str as cstr, priority: HintPriority) -> bool = c.SDL_SetHintWithPriority
|
|
1498
|
+
public foreign function set_hint(name: str as cstr, value: str as cstr) -> bool = c.SDL_SetHint
|
|
1499
|
+
public foreign function reset_hint(name: str as cstr) -> bool = c.SDL_ResetHint
|
|
1500
|
+
public foreign function reset_hints() -> void = c.SDL_ResetHints
|
|
1501
|
+
public foreign function get_hint(name: str as cstr) -> cstr? = c.SDL_GetHint
|
|
1502
|
+
public foreign function get_hint_boolean(name: str as cstr, default_value: bool) -> bool = c.SDL_GetHintBoolean
|
|
1503
|
+
public foreign function add_hint_callback(name: str as cstr, callback: fn(arg0: ptr[void], arg1: cstr, arg2: cstr, arg3: cstr) -> void, userdata: ptr[void]) -> bool = c.SDL_AddHintCallback
|
|
1504
|
+
public foreign function remove_hint_callback(name: str as cstr, callback: fn(arg0: ptr[void], arg1: cstr, arg2: cstr, arg3: cstr) -> void, userdata: ptr[void]) -> void = c.SDL_RemoveHintCallback
|
|
1505
|
+
public foreign function init(flag_bits: InitFlags) -> bool = c.SDL_Init
|
|
1506
|
+
public foreign function init_sub_system(flags_: uint) -> bool = c.SDL_InitSubSystem
|
|
1507
|
+
public foreign function quit_sub_system(flags_: uint) -> void = c.SDL_QuitSubSystem
|
|
1508
|
+
public foreign function was_init(flags_: uint) -> InitFlags = c.SDL_WasInit
|
|
1509
|
+
public foreign function quit() -> void = c.SDL_Quit
|
|
1510
|
+
public foreign function is_main_thread() -> bool = c.SDL_IsMainThread
|
|
1511
|
+
public foreign function run_on_main_thread(callback: fn(arg0: ptr[void]) -> void, userdata: ptr[void], wait_complete: bool) -> bool = c.SDL_RunOnMainThread
|
|
1512
|
+
public foreign function set_app_metadata(appname: str as cstr, appversion: str as cstr, appidentifier: str as cstr) -> bool = c.SDL_SetAppMetadata
|
|
1513
|
+
public foreign function set_app_metadata_property(name: str as cstr, value: cstr?) -> bool = c.SDL_SetAppMetadataProperty
|
|
1514
|
+
public foreign function get_app_metadata_property(name: str as cstr) -> cstr = c.SDL_GetAppMetadataProperty
|
|
1515
|
+
public foreign function load_object(sofile: str as cstr) -> ptr[SharedObject]? = c.SDL_LoadObject
|
|
1516
|
+
public foreign function load_function(handle: ptr[SharedObject], name: str as cstr) -> FunctionPointer? = c.SDL_LoadFunction
|
|
1517
|
+
public foreign function unload_object(handle: ptr[SharedObject]) -> void = c.SDL_UnloadObject
|
|
1518
|
+
public foreign function get_preferred_locales(out count: int) -> ptr[ptr[Locale]]? = c.SDL_GetPreferredLocales
|
|
1519
|
+
public foreign function set_log_priorities(priority: LogPriority) -> void = c.SDL_SetLogPriorities
|
|
1520
|
+
public foreign function set_log_priority(category: int, priority: LogPriority) -> void = c.SDL_SetLogPriority
|
|
1521
|
+
public foreign function get_log_priority(category: int) -> LogPriority = c.SDL_GetLogPriority
|
|
1522
|
+
public foreign function reset_log_priorities() -> void = c.SDL_ResetLogPriorities
|
|
1523
|
+
public foreign function set_log_priority_prefix(priority: LogPriority, prefix: cstr?) -> bool = c.SDL_SetLogPriorityPrefix
|
|
1524
|
+
public foreign function log_application_info(fmt: cstr) -> void = c.SDL_Log
|
|
1525
|
+
public foreign function log_trace(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogTrace
|
|
1526
|
+
public foreign function log_verbose(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogVerbose
|
|
1527
|
+
public foreign function log_debug(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogDebug
|
|
1528
|
+
public foreign function log_info(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogInfo
|
|
1529
|
+
public foreign function log_warn(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogWarn
|
|
1530
|
+
public foreign function log_error(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogError
|
|
1531
|
+
public foreign function log_critical(category: int, fmt: str as cstr, ...) -> void = c.SDL_LogCritical
|
|
1532
|
+
public foreign function log_message(category: int, priority: LogPriority, fmt: str as cstr, ...) -> void = c.SDL_LogMessage
|
|
1533
|
+
public foreign function log_message_v(category: int, priority: LogPriority, fmt: str as cstr, ap: va_list) -> void = c.SDL_LogMessageV
|
|
1534
|
+
public foreign function get_default_log_output_function() -> LogOutputFunction = c.SDL_GetDefaultLogOutputFunction
|
|
1535
|
+
public foreign function get_log_output_function(callback: ptr[LogOutputFunction], userdata: ptr[ptr[void]]) -> void = c.SDL_GetLogOutputFunction
|
|
1536
|
+
public foreign function set_log_output_function(callback: fn(arg0: ptr[void], arg1: int, arg2: LogPriority, arg3: cstr) -> void, userdata: ptr[void]) -> void = c.SDL_SetLogOutputFunction
|
|
1537
|
+
public foreign function show_message_box(messageboxdata: const_ptr[MessageBoxData], buttonid: ptr[int]) -> bool = c.SDL_ShowMessageBox
|
|
1538
|
+
public foreign function show_simple_message_box(flags_: uint, title: str as cstr, message: str as cstr, window: Window?) -> bool = c.SDL_ShowSimpleMessageBox
|
|
1539
|
+
public foreign function metal_create_view(window: Window) -> MetalView = c.SDL_Metal_CreateView
|
|
1540
|
+
public foreign function metal_destroy_view(view: ptr[void]) -> void = c.SDL_Metal_DestroyView
|
|
1541
|
+
public foreign function metal_get_layer(view: ptr[void]) -> ptr[void] = c.SDL_Metal_GetLayer
|
|
1542
|
+
public foreign function open_url(url: str as cstr) -> bool = c.SDL_OpenURL
|
|
1543
|
+
public foreign function get_platform() -> cstr = c.SDL_GetPlatform
|
|
1544
|
+
public foreign function create_process(args: const_ptr[cstr], pipe_stdio: bool) -> ptr[Process]? = c.SDL_CreateProcess
|
|
1545
|
+
public foreign function create_process_with_properties(props: uint) -> ptr[Process]? = c.SDL_CreateProcessWithProperties
|
|
1546
|
+
public foreign function get_process_properties(process: ptr[Process]) -> PropertiesID = c.SDL_GetProcessProperties
|
|
1547
|
+
public foreign function read_process(process: ptr[Process], datasize: ptr[ptr_uint]?, exitcode: ptr[int]?) -> ptr[void]? = c.SDL_ReadProcess
|
|
1548
|
+
public foreign function get_process_input(process: ptr[Process]) -> ptr[IOStream]? = c.SDL_GetProcessInput
|
|
1549
|
+
public foreign function get_process_output(process: ptr[Process]) -> ptr[IOStream]? = c.SDL_GetProcessOutput
|
|
1550
|
+
public foreign function kill_process(process: ptr[Process], force: bool) -> bool = c.SDL_KillProcess
|
|
1551
|
+
public foreign function wait_process(process: ptr[Process], block: bool, exitcode: ptr[int]?) -> bool = c.SDL_WaitProcess
|
|
1552
|
+
public foreign function destroy_process(process: ptr[Process]) -> void = c.SDL_DestroyProcess
|
|
1553
|
+
public foreign function get_num_render_drivers() -> int = c.SDL_GetNumRenderDrivers
|
|
1554
|
+
public foreign function get_render_driver(index: int) -> cstr? = c.SDL_GetRenderDriver
|
|
1555
|
+
public foreign function create_window_and_renderer(title: str as cstr, width: int, height: int, window_flags: ptr_uint, out window: Window, out renderer: Renderer) -> bool = c.SDL_CreateWindowAndRenderer
|
|
1556
|
+
public foreign function create_renderer(window: Window, name: cstr?) -> Renderer? = c.SDL_CreateRenderer
|
|
1557
|
+
public foreign function create_renderer_with_properties(props: uint) -> Renderer? = c.SDL_CreateRendererWithProperties
|
|
1558
|
+
public foreign function create_gpu_renderer(device: ptr[GPUDevice]?, window: Window?) -> Renderer? = c.SDL_CreateGPURenderer
|
|
1559
|
+
public foreign function get_gpu_renderer_device(renderer: Renderer) -> ptr[GPUDevice]? = c.SDL_GetGPURendererDevice
|
|
1560
|
+
public foreign function create_software_renderer(surface: ptr[Surface]) -> Renderer? = c.SDL_CreateSoftwareRenderer
|
|
1561
|
+
public foreign function get_renderer(window: Window) -> Renderer? = c.SDL_GetRenderer
|
|
1562
|
+
public foreign function get_render_window(renderer: Renderer) -> Window? = c.SDL_GetRenderWindow
|
|
1563
|
+
public foreign function get_renderer_name(renderer: Renderer) -> cstr? = c.SDL_GetRendererName
|
|
1564
|
+
public foreign function get_renderer_properties(renderer: Renderer) -> PropertiesID = c.SDL_GetRendererProperties
|
|
1565
|
+
public foreign function get_render_output_size(renderer: Renderer, out w: int, out h: int) -> bool = c.SDL_GetRenderOutputSize
|
|
1566
|
+
public foreign function get_current_render_output_size(renderer: Renderer, w: ptr[int], h: ptr[int]) -> bool = c.SDL_GetCurrentRenderOutputSize
|
|
1567
|
+
public foreign function create_texture(renderer: Renderer, format: PixelFormat, access: TextureAccess, w: int, h: int) -> ptr[Texture]? = c.SDL_CreateTexture
|
|
1568
|
+
public foreign function create_texture_from_surface(renderer: Renderer, surface: ptr[Surface]) -> ptr[Texture]? = c.SDL_CreateTextureFromSurface
|
|
1569
|
+
public foreign function create_texture_with_properties(renderer: Renderer, props: uint) -> ptr[Texture]? = c.SDL_CreateTextureWithProperties
|
|
1570
|
+
public foreign function get_texture_properties(texture: ptr[Texture]) -> PropertiesID = c.SDL_GetTextureProperties
|
|
1571
|
+
public foreign function get_renderer_from_texture(texture: ptr[Texture]) -> Renderer? = c.SDL_GetRendererFromTexture
|
|
1572
|
+
public foreign function get_texture_size(texture: ptr[Texture], w: ptr[float], h: ptr[float]) -> bool = c.SDL_GetTextureSize
|
|
1573
|
+
public foreign function set_texture_palette(texture: ptr[Texture], palette: ptr[Palette]) -> bool = c.SDL_SetTexturePalette
|
|
1574
|
+
public foreign function get_texture_palette(texture: ptr[Texture]) -> ptr[Palette]? = c.SDL_GetTexturePalette
|
|
1575
|
+
public foreign function set_texture_color_mod(texture: ptr[Texture], r: ubyte, g: ubyte, b: ubyte) -> bool = c.SDL_SetTextureColorMod
|
|
1576
|
+
public foreign function set_texture_color_mod_float(texture: ptr[Texture], r: float, g: float, b: float) -> bool = c.SDL_SetTextureColorModFloat
|
|
1577
|
+
public foreign function get_texture_color_mod(texture: ptr[Texture], r: ptr[ubyte], g: ptr[ubyte], b: ptr[ubyte]) -> bool = c.SDL_GetTextureColorMod
|
|
1578
|
+
public foreign function get_texture_color_mod_float(texture: ptr[Texture], r: ptr[float], g: ptr[float], b: ptr[float]) -> bool = c.SDL_GetTextureColorModFloat
|
|
1579
|
+
public foreign function set_texture_alpha_mod(texture: ptr[Texture], alpha: ubyte) -> bool = c.SDL_SetTextureAlphaMod
|
|
1580
|
+
public foreign function set_texture_alpha_mod_float(texture: ptr[Texture], alpha: float) -> bool = c.SDL_SetTextureAlphaModFloat
|
|
1581
|
+
public foreign function get_texture_alpha_mod(texture: ptr[Texture], alpha: ptr[ubyte]) -> bool = c.SDL_GetTextureAlphaMod
|
|
1582
|
+
public foreign function get_texture_alpha_mod_float(texture: ptr[Texture], alpha: ptr[float]) -> bool = c.SDL_GetTextureAlphaModFloat
|
|
1583
|
+
public foreign function set_texture_blend_mode(texture: ptr[Texture], blend_mode: uint) -> bool = c.SDL_SetTextureBlendMode
|
|
1584
|
+
public foreign function get_texture_blend_mode(texture: ptr[Texture], blend_mode: ptr[BlendMode]) -> bool = c.SDL_GetTextureBlendMode
|
|
1585
|
+
public foreign function set_texture_scale_mode(texture: ptr[Texture], scale_mode: ScaleMode) -> bool = c.SDL_SetTextureScaleMode
|
|
1586
|
+
public foreign function get_texture_scale_mode(texture: ptr[Texture], scale_mode: ptr[ScaleMode]) -> bool = c.SDL_GetTextureScaleMode
|
|
1587
|
+
public foreign function update_texture(texture: ptr[Texture], rect: const_ptr[Rect]?, pixels: const_ptr[void], pitch: int) -> bool = c.SDL_UpdateTexture
|
|
1588
|
+
public foreign function update_yuv_texture(texture: ptr[Texture], rect: const_ptr[Rect]?, yplane: const_ptr[ubyte], ypitch: int, uplane: const_ptr[ubyte], upitch: int, vplane: const_ptr[ubyte], vpitch: int) -> bool = c.SDL_UpdateYUVTexture
|
|
1589
|
+
public foreign function update_nv_texture(texture: ptr[Texture], rect: const_ptr[Rect]?, yplane: const_ptr[ubyte], ypitch: int, u_vplane: const_ptr[ubyte], u_vpitch: int) -> bool = c.SDL_UpdateNVTexture
|
|
1590
|
+
public foreign function lock_texture(texture: ptr[Texture], rect: const_ptr[Rect], pixels: ptr[ptr[void]], pitch: ptr[int]) -> bool = c.SDL_LockTexture
|
|
1591
|
+
public foreign function lock_texture_to_surface(texture: ptr[Texture], rect: const_ptr[Rect]?, surface: ptr[ptr[Surface]]) -> bool = c.SDL_LockTextureToSurface
|
|
1592
|
+
public foreign function unlock_texture(texture: ptr[Texture]) -> void = c.SDL_UnlockTexture
|
|
1593
|
+
public foreign function set_render_target(renderer: Renderer, texture: ptr[Texture]?) -> bool = c.SDL_SetRenderTarget
|
|
1594
|
+
public foreign function get_render_target(renderer: Renderer) -> ptr[Texture]? = c.SDL_GetRenderTarget
|
|
1595
|
+
public foreign function set_render_logical_presentation(renderer: Renderer, w: int, h: int, mode: RendererLogicalPresentation) -> bool = c.SDL_SetRenderLogicalPresentation
|
|
1596
|
+
public foreign function get_render_logical_presentation(renderer: Renderer, w: ptr[int], h: ptr[int], mode: ptr[RendererLogicalPresentation]) -> bool = c.SDL_GetRenderLogicalPresentation
|
|
1597
|
+
public foreign function get_render_logical_presentation_rect(renderer: Renderer, rect: ptr[FRect]?) -> bool = c.SDL_GetRenderLogicalPresentationRect
|
|
1598
|
+
public foreign function render_coordinates_from_window(renderer: Renderer, window_x: float, window_y: float, x: ptr[float], y: ptr[float]) -> bool = c.SDL_RenderCoordinatesFromWindow
|
|
1599
|
+
public foreign function render_coordinates_to_window(renderer: Renderer, x: float, y: float, window_x: ptr[float], window_y: ptr[float]) -> bool = c.SDL_RenderCoordinatesToWindow
|
|
1600
|
+
public foreign function convert_event_to_render_coordinates(renderer: Renderer, inout event_: Event) -> bool = c.SDL_ConvertEventToRenderCoordinates
|
|
1601
|
+
public foreign function set_render_viewport(renderer: Renderer, rect: const_ptr[Rect]?) -> bool = c.SDL_SetRenderViewport
|
|
1602
|
+
public foreign function get_render_viewport(renderer: Renderer, rect: ptr[Rect]) -> bool = c.SDL_GetRenderViewport
|
|
1603
|
+
public foreign function render_viewport_set(renderer: Renderer) -> bool = c.SDL_RenderViewportSet
|
|
1604
|
+
public foreign function get_render_safe_area(renderer: Renderer, rect: ptr[Rect]) -> bool = c.SDL_GetRenderSafeArea
|
|
1605
|
+
public foreign function set_render_clip_rect(renderer: Renderer, rect: const_ptr[Rect]?) -> bool = c.SDL_SetRenderClipRect
|
|
1606
|
+
public foreign function get_render_clip_rect(renderer: Renderer, rect: ptr[Rect]) -> bool = c.SDL_GetRenderClipRect
|
|
1607
|
+
public foreign function render_clip_enabled(renderer: Renderer) -> bool = c.SDL_RenderClipEnabled
|
|
1608
|
+
public foreign function set_render_scale(renderer: Renderer, scale_x: float, scale_y: float) -> bool = c.SDL_SetRenderScale
|
|
1609
|
+
public foreign function get_render_scale(renderer: Renderer, scale_x: ptr[float], scale_y: ptr[float]) -> bool = c.SDL_GetRenderScale
|
|
1610
|
+
public foreign function set_render_draw_color(renderer: Renderer, r: ubyte, g: ubyte, b: ubyte, a: ubyte) -> bool = c.SDL_SetRenderDrawColor
|
|
1611
|
+
public foreign function set_render_draw_color_float(renderer: Renderer, r: float, g: float, b: float, a: float) -> bool = c.SDL_SetRenderDrawColorFloat
|
|
1612
|
+
public foreign function get_render_draw_color(renderer: Renderer, r: ptr[ubyte], g: ptr[ubyte], b: ptr[ubyte], a: ptr[ubyte]) -> bool = c.SDL_GetRenderDrawColor
|
|
1613
|
+
public foreign function get_render_draw_color_float(renderer: Renderer, r: ptr[float], g: ptr[float], b: ptr[float], a: ptr[float]) -> bool = c.SDL_GetRenderDrawColorFloat
|
|
1614
|
+
public foreign function set_render_color_scale(renderer: Renderer, scale: float) -> bool = c.SDL_SetRenderColorScale
|
|
1615
|
+
public foreign function get_render_color_scale(renderer: Renderer, scale: ptr[float]) -> bool = c.SDL_GetRenderColorScale
|
|
1616
|
+
public foreign function set_render_draw_blend_mode(renderer: Renderer, blend_mode: uint) -> bool = c.SDL_SetRenderDrawBlendMode
|
|
1617
|
+
public foreign function get_render_draw_blend_mode(renderer: Renderer, blend_mode: ptr[BlendMode]) -> bool = c.SDL_GetRenderDrawBlendMode
|
|
1618
|
+
public foreign function render_clear(renderer: Renderer) -> bool = c.SDL_RenderClear
|
|
1619
|
+
public foreign function render_point(renderer: Renderer, x: float, y: float) -> bool = c.SDL_RenderPoint
|
|
1620
|
+
public foreign function render_points(renderer: Renderer, points: span[FPoint]) -> bool = c.SDL_RenderPoints(renderer, points.data, int<-points.len)
|
|
1621
|
+
public foreign function render_line(renderer: Renderer, x1: float, y1: float, x2: float, y2: float) -> bool = c.SDL_RenderLine
|
|
1622
|
+
public foreign function render_lines(renderer: Renderer, points: span[FPoint]) -> bool = c.SDL_RenderLines(renderer, points.data, int<-points.len)
|
|
1623
|
+
public foreign function render_rect(renderer: Renderer, in rect: FRect as const_ptr[FRect]) -> bool = c.SDL_RenderRect
|
|
1624
|
+
public foreign function render_rects(renderer: Renderer, rects: span[FRect]) -> bool = c.SDL_RenderRects(renderer, rects.data, int<-rects.len)
|
|
1625
|
+
public foreign function render_fill_rect(renderer: Renderer, in rect: FRect as const_ptr[FRect]) -> bool = c.SDL_RenderFillRect
|
|
1626
|
+
public foreign function render_fill_rects(renderer: Renderer, rects: span[FRect]) -> bool = c.SDL_RenderFillRects(renderer, rects.data, int<-rects.len)
|
|
1627
|
+
public foreign function render_texture(renderer: Renderer, texture: ptr[Texture], srcrect: const_ptr[FRect]?, dstrect: const_ptr[FRect]?) -> bool = c.SDL_RenderTexture
|
|
1628
|
+
public foreign function render_texture_rotated(renderer: Renderer, texture: ptr[Texture], srcrect: const_ptr[FRect]?, dstrect: const_ptr[FRect]?, angle: double, center: const_ptr[FPoint]?, flip: FlipMode) -> bool = c.SDL_RenderTextureRotated
|
|
1629
|
+
public foreign function render_texture_affine(renderer: Renderer, texture: ptr[Texture], srcrect: const_ptr[FRect]?, origin: const_ptr[FPoint]?, right: const_ptr[FPoint]?, down: const_ptr[FPoint]?) -> bool = c.SDL_RenderTextureAffine
|
|
1630
|
+
public foreign function render_texture_tiled(renderer: Renderer, texture: ptr[Texture], srcrect: const_ptr[FRect]?, scale: float, dstrect: const_ptr[FRect]?) -> bool = c.SDL_RenderTextureTiled
|
|
1631
|
+
public foreign function render_texture9_grid(renderer: Renderer, texture: ptr[Texture], srcrect: const_ptr[FRect]?, left_width: float, right_width: float, top_height: float, bottom_height: float, scale: float, dstrect: const_ptr[FRect]?) -> bool = c.SDL_RenderTexture9Grid
|
|
1632
|
+
public foreign function render_texture9_grid_tiled(renderer: Renderer, texture: ptr[Texture], srcrect: const_ptr[FRect]?, left_width: float, right_width: float, top_height: float, bottom_height: float, scale: float, dstrect: const_ptr[FRect]?, tile_scale: float) -> bool = c.SDL_RenderTexture9GridTiled
|
|
1633
|
+
public foreign function render_geometry(renderer: Renderer, texture: ptr[Texture]?, vertices: const_ptr[Vertex], num_vertices: int, indices: const_ptr[int]?, num_indices: int) -> bool = c.SDL_RenderGeometry
|
|
1634
|
+
public foreign function render_geometry_raw(renderer: Renderer, texture: ptr[Texture], xy: const_ptr[float], xy_stride: int, color: const_ptr[FColor], color_stride: int, uv: const_ptr[float], uv_stride: int, num_vertices: int, indices: const_ptr[void]?, num_indices: int, size_indices: int) -> bool = c.SDL_RenderGeometryRaw
|
|
1635
|
+
public foreign function set_render_texture_address_mode(renderer: Renderer, u_mode: TextureAddressMode, v_mode: TextureAddressMode) -> bool = c.SDL_SetRenderTextureAddressMode
|
|
1636
|
+
public foreign function get_render_texture_address_mode(renderer: Renderer, u_mode: ptr[TextureAddressMode]?, v_mode: ptr[TextureAddressMode]?) -> bool = c.SDL_GetRenderTextureAddressMode
|
|
1637
|
+
public foreign function render_read_pixels(renderer: Renderer, rect: const_ptr[Rect]?) -> ptr[Surface]? = c.SDL_RenderReadPixels
|
|
1638
|
+
public foreign function render_present(renderer: Renderer) -> bool = c.SDL_RenderPresent
|
|
1639
|
+
public foreign function destroy_texture(texture: ptr[Texture]) -> void = c.SDL_DestroyTexture
|
|
1640
|
+
public foreign function destroy_renderer(renderer: Renderer) -> void = c.SDL_DestroyRenderer
|
|
1641
|
+
public foreign function flush_renderer(renderer: Renderer) -> bool = c.SDL_FlushRenderer
|
|
1642
|
+
public foreign function get_render_metal_layer(renderer: Renderer) -> ptr[void]? = c.SDL_GetRenderMetalLayer
|
|
1643
|
+
public foreign function get_render_metal_command_encoder(renderer: Renderer) -> ptr[void]? = c.SDL_GetRenderMetalCommandEncoder
|
|
1644
|
+
public foreign function add_vulkan_render_semaphores(renderer: Renderer, wait_stage_mask: uint, wait_semaphore: ptr_int, signal_semaphore: ptr_int) -> bool = c.SDL_AddVulkanRenderSemaphores
|
|
1645
|
+
public foreign function set_render_v_sync(renderer: Renderer, vsync: int) -> bool = c.SDL_SetRenderVSync
|
|
1646
|
+
public foreign function get_render_v_sync(renderer: Renderer, vsync: ptr[int]) -> bool = c.SDL_GetRenderVSync
|
|
1647
|
+
public foreign function render_debug_text(renderer: Renderer, x: float, y: float, text: str as cstr) -> bool = c.SDL_RenderDebugText
|
|
1648
|
+
public foreign function render_debug_text_format(renderer: Renderer, x: float, y: float, fmt: str as cstr, ...) -> bool = c.SDL_RenderDebugTextFormat
|
|
1649
|
+
public foreign function set_default_texture_scale_mode(renderer: Renderer, scale_mode: ScaleMode) -> bool = c.SDL_SetDefaultTextureScaleMode
|
|
1650
|
+
public foreign function get_default_texture_scale_mode(renderer: Renderer, scale_mode: ptr[ScaleMode]) -> bool = c.SDL_GetDefaultTextureScaleMode
|
|
1651
|
+
public foreign function create_gpu_render_state(renderer: Renderer, createinfo: const_ptr[GPURenderStateCreateInfo]) -> ptr[GPURenderState]? = c.SDL_CreateGPURenderState
|
|
1652
|
+
public foreign function set_gpu_render_state_fragment_uniforms(state: ptr[GPURenderState], slot_index: uint, data: const_ptr[void], length: uint) -> bool = c.SDL_SetGPURenderStateFragmentUniforms
|
|
1653
|
+
public foreign function set_gpu_render_state(renderer: Renderer, state: ptr[GPURenderState]?) -> bool = c.SDL_SetGPURenderState
|
|
1654
|
+
public foreign function destroy_gpu_render_state(state: ptr[GPURenderState]) -> void = c.SDL_DestroyGPURenderState
|
|
1655
|
+
public foreign function open_title_storage(override: str as cstr, props: uint) -> ptr[Storage]? = c.SDL_OpenTitleStorage
|
|
1656
|
+
public foreign function open_user_storage(org: str as cstr, app: str as cstr, props: uint) -> ptr[Storage]? = c.SDL_OpenUserStorage
|
|
1657
|
+
public foreign function open_file_storage(path: cstr?) -> ptr[Storage]? = c.SDL_OpenFileStorage
|
|
1658
|
+
public foreign function open_storage(iface: const_ptr[StorageInterface], userdata: ptr[void]) -> ptr[Storage]? = c.SDL_OpenStorage
|
|
1659
|
+
public foreign function close_storage(storage: ptr[Storage]) -> bool = c.SDL_CloseStorage
|
|
1660
|
+
public foreign function storage_ready(storage: ptr[Storage]) -> bool = c.SDL_StorageReady
|
|
1661
|
+
public foreign function get_storage_file_size(storage: ptr[Storage], path: str as cstr, length: ptr[ptr_uint]) -> bool = c.SDL_GetStorageFileSize
|
|
1662
|
+
public foreign function read_storage_file(storage: ptr[Storage], path: str as cstr, destination: ptr[void], length: ptr_uint) -> bool = c.SDL_ReadStorageFile
|
|
1663
|
+
public foreign function write_storage_file(storage: ptr[Storage], path: str as cstr, source: const_ptr[void], length: ptr_uint) -> bool = c.SDL_WriteStorageFile
|
|
1664
|
+
public foreign function create_storage_directory(storage: ptr[Storage], path: str as cstr) -> bool = c.SDL_CreateStorageDirectory
|
|
1665
|
+
public foreign function enumerate_storage_directory(storage: ptr[Storage], path: cstr?, callback: fn(arg0: ptr[void], arg1: cstr, arg2: cstr) -> EnumerationResult, userdata: ptr[void]) -> bool = c.SDL_EnumerateStorageDirectory
|
|
1666
|
+
public foreign function remove_storage_path(storage: ptr[Storage], path: str as cstr) -> bool = c.SDL_RemoveStoragePath
|
|
1667
|
+
public foreign function rename_storage_path(storage: ptr[Storage], oldpath: str as cstr, newpath: str as cstr) -> bool = c.SDL_RenameStoragePath
|
|
1668
|
+
public foreign function copy_storage_file(storage: ptr[Storage], oldpath: str as cstr, newpath: str as cstr) -> bool = c.SDL_CopyStorageFile
|
|
1669
|
+
public foreign function get_storage_path_info(storage: ptr[Storage], path: str as cstr, info: ptr[PathInfo]?) -> bool = c.SDL_GetStoragePathInfo
|
|
1670
|
+
public foreign function get_storage_space_remaining(storage: ptr[Storage]) -> ptr_uint = c.SDL_GetStorageSpaceRemaining
|
|
1671
|
+
public foreign function glob_storage_directory(storage: ptr[Storage], path: cstr?, pattern: cstr?, flags_: uint, count: ptr[int]) -> ptr[ptr[char]]? = c.SDL_GlobStorageDirectory
|
|
1672
|
+
public foreign function set_linux_thread_priority(thread_id: ptr_int, priority: int) -> bool = c.SDL_SetLinuxThreadPriority
|
|
1673
|
+
public foreign function set_linux_thread_priority_and_policy(thread_id: ptr_int, sdl_priority: int, sched_policy: int) -> bool = c.SDL_SetLinuxThreadPriorityAndPolicy
|
|
1674
|
+
public foreign function is_tablet() -> bool = c.SDL_IsTablet
|
|
1675
|
+
public foreign function is_tv() -> bool = c.SDL_IsTV
|
|
1676
|
+
public foreign function get_sandbox() -> Sandbox = c.SDL_GetSandbox
|
|
1677
|
+
public foreign function on_application_will_terminate() -> void = c.SDL_OnApplicationWillTerminate
|
|
1678
|
+
public foreign function on_application_did_receive_memory_warning() -> void = c.SDL_OnApplicationDidReceiveMemoryWarning
|
|
1679
|
+
public foreign function on_application_will_enter_background() -> void = c.SDL_OnApplicationWillEnterBackground
|
|
1680
|
+
public foreign function on_application_did_enter_background() -> void = c.SDL_OnApplicationDidEnterBackground
|
|
1681
|
+
public foreign function on_application_will_enter_foreground() -> void = c.SDL_OnApplicationWillEnterForeground
|
|
1682
|
+
public foreign function on_application_did_enter_foreground() -> void = c.SDL_OnApplicationDidEnterForeground
|
|
1683
|
+
public foreign function get_date_time_locale_preferences(date_format: ptr[DateFormat]?, time_format: ptr[TimeFormat]?) -> bool = c.SDL_GetDateTimeLocalePreferences
|
|
1684
|
+
public foreign function get_current_time(out ticks: Time) -> bool = c.SDL_GetCurrentTime
|
|
1685
|
+
public foreign function time_to_date_time(ticks: Time, out dt: DateTime, local_time: bool) -> bool = c.SDL_TimeToDateTime
|
|
1686
|
+
public foreign function date_time_to_time(dt: const_ptr[DateTime], ticks: ptr[Time]) -> bool = c.SDL_DateTimeToTime
|
|
1687
|
+
public foreign function time_to_windows(ticks: ptr_int, dw_low_date_time: ptr[uint], dw_high_date_time: ptr[uint]) -> void = c.SDL_TimeToWindows
|
|
1688
|
+
public foreign function time_from_windows(dw_low_date_time: uint, dw_high_date_time: uint) -> Time = c.SDL_TimeFromWindows
|
|
1689
|
+
public foreign function get_days_in_month(year: int, month: int) -> int = c.SDL_GetDaysInMonth
|
|
1690
|
+
public foreign function get_day_of_year(year: int, month: int, day: int) -> int = c.SDL_GetDayOfYear
|
|
1691
|
+
public foreign function get_day_of_week(year: int, month: int, day: int) -> int = c.SDL_GetDayOfWeek
|
|
1692
|
+
public foreign function get_ticks() -> ptr_uint = c.SDL_GetTicks
|
|
1693
|
+
public foreign function get_ticks_ns() -> ptr_uint = c.SDL_GetTicksNS
|
|
1694
|
+
public foreign function get_performance_counter() -> ptr_uint = c.SDL_GetPerformanceCounter
|
|
1695
|
+
public foreign function get_performance_frequency() -> ptr_uint = c.SDL_GetPerformanceFrequency
|
|
1696
|
+
public foreign function delay(ms: uint) -> void = c.SDL_Delay
|
|
1697
|
+
public foreign function delay_ns(ns: ptr_uint) -> void = c.SDL_DelayNS
|
|
1698
|
+
public foreign function delay_precise(ns: ptr_uint) -> void = c.SDL_DelayPrecise
|
|
1699
|
+
public foreign function add_timer(interval: uint, callback: fn(arg0: ptr[void], arg1: TimerID, arg2: uint) -> uint, userdata: ptr[void]) -> TimerID = c.SDL_AddTimer
|
|
1700
|
+
public foreign function add_timer_ns(interval: ptr_uint, callback: fn(arg0: ptr[void], arg1: TimerID, arg2: ptr_uint) -> ptr_uint, userdata: ptr[void]) -> TimerID = c.SDL_AddTimerNS
|
|
1701
|
+
public foreign function remove_timer(id: uint) -> bool = c.SDL_RemoveTimer
|
|
1702
|
+
public foreign function create_tray(icon: ptr[Surface], tooltip: str as cstr) -> ptr[Tray] = c.SDL_CreateTray
|
|
1703
|
+
public foreign function set_tray_icon(tray: ptr[Tray], icon: ptr[Surface]) -> void = c.SDL_SetTrayIcon
|
|
1704
|
+
public foreign function set_tray_tooltip(tray: ptr[Tray], tooltip: str as cstr) -> void = c.SDL_SetTrayTooltip
|
|
1705
|
+
public foreign function create_tray_menu(tray: ptr[Tray]) -> ptr[TrayMenu] = c.SDL_CreateTrayMenu
|
|
1706
|
+
public foreign function create_tray_submenu(entry: ptr[TrayEntry]) -> ptr[TrayMenu] = c.SDL_CreateTraySubmenu
|
|
1707
|
+
public foreign function get_tray_menu(tray: ptr[Tray]) -> ptr[TrayMenu] = c.SDL_GetTrayMenu
|
|
1708
|
+
public foreign function get_tray_submenu(entry: ptr[TrayEntry]) -> ptr[TrayMenu] = c.SDL_GetTraySubmenu
|
|
1709
|
+
public foreign function get_tray_entries(menu: ptr[TrayMenu], count: ptr[int]) -> ptr[const_ptr[TrayEntry]]? = c.SDL_GetTrayEntries
|
|
1710
|
+
public foreign function remove_tray_entry(entry: ptr[TrayEntry]) -> void = c.SDL_RemoveTrayEntry
|
|
1711
|
+
public foreign function insert_tray_entry_at(menu: ptr[TrayMenu], pos: int, label: cstr?, flags_: uint) -> ptr[TrayEntry]? = c.SDL_InsertTrayEntryAt
|
|
1712
|
+
public foreign function set_tray_entry_label(entry: ptr[TrayEntry], label: str as cstr) -> void = c.SDL_SetTrayEntryLabel
|
|
1713
|
+
public foreign function get_tray_entry_label(entry: ptr[TrayEntry]) -> cstr = c.SDL_GetTrayEntryLabel
|
|
1714
|
+
public foreign function set_tray_entry_checked(entry: ptr[TrayEntry], checked: bool) -> void = c.SDL_SetTrayEntryChecked
|
|
1715
|
+
public foreign function get_tray_entry_checked(entry: ptr[TrayEntry]) -> bool = c.SDL_GetTrayEntryChecked
|
|
1716
|
+
public foreign function set_tray_entry_enabled(entry: ptr[TrayEntry], enabled: bool) -> void = c.SDL_SetTrayEntryEnabled
|
|
1717
|
+
public foreign function get_tray_entry_enabled(entry: ptr[TrayEntry]) -> bool = c.SDL_GetTrayEntryEnabled
|
|
1718
|
+
public foreign function set_tray_entry_callback(entry: ptr[TrayEntry], callback: fn(arg0: ptr[void], arg1: ptr[TrayEntry]) -> void, userdata: ptr[void]) -> void = c.SDL_SetTrayEntryCallback
|
|
1719
|
+
public foreign function click_tray_entry(entry: ptr[TrayEntry]) -> void = c.SDL_ClickTrayEntry
|
|
1720
|
+
public foreign function destroy_tray(tray: ptr[Tray]) -> void = c.SDL_DestroyTray
|
|
1721
|
+
public foreign function get_tray_entry_parent(entry: ptr[TrayEntry]) -> ptr[TrayMenu] = c.SDL_GetTrayEntryParent
|
|
1722
|
+
public foreign function get_tray_menu_parent_entry(menu: ptr[TrayMenu]) -> ptr[TrayEntry]? = c.SDL_GetTrayMenuParentEntry
|
|
1723
|
+
public foreign function get_tray_menu_parent_tray(menu: ptr[TrayMenu]) -> ptr[Tray]? = c.SDL_GetTrayMenuParentTray
|
|
1724
|
+
public foreign function update_trays() -> void = c.SDL_UpdateTrays
|
|
1725
|
+
public foreign function get_version() -> int = c.SDL_GetVersion
|
|
1726
|
+
public foreign function get_revision() -> cstr = c.SDL_GetRevision
|
|
1727
|
+
public foreign function main(argc: int, argv: ptr[ptr[char]]) -> int = c.SDL_main
|
|
1728
|
+
public foreign function set_main_ready() -> void = c.SDL_SetMainReady
|
|
1729
|
+
public foreign function run_app(argc: int, argv: ptr[ptr[char]], main_function: MainFunc) -> int = c.SDL_RunApp(argc, argv, main_function, null)
|
|
1730
|
+
public foreign function enter_app_main_callbacks(argc: int, argv: ptr[ptr[char]], appinit: fn(arg0: ptr[ptr[void]], arg1: int, arg2: ptr[ptr[char]]) -> AppResult, appiter: fn(arg0: ptr[void]) -> AppResult, appevent: fn(arg0: ptr[void], arg1: ptr[Event]) -> AppResult, appquit: fn(arg0: ptr[void], arg1: AppResult) -> void) -> int = c.SDL_EnterAppMainCallbacks
|
|
1731
|
+
public foreign function gdk_suspend_complete() -> void = c.SDL_GDKSuspendComplete
|