mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-05 10:14:05 +00:00
[vendor/sdl3] another pass over the headers
This commit is contained in:
15
vendor/sdl3/sdl3_haptic.odin
vendored
15
vendor/sdl3/sdl3_haptic.odin
vendored
@@ -5,6 +5,7 @@ import "core:c"
|
||||
Haptic :: struct {}
|
||||
|
||||
HapticType :: Uint16
|
||||
HapticEffectId :: c.int
|
||||
|
||||
HAPTIC_CONSTANT :: 1<<0
|
||||
HAPTIC_SINE :: 1<<1
|
||||
@@ -215,12 +216,12 @@ foreign lib {
|
||||
GetHapticFeatures :: proc(haptic: ^Haptic) -> Uint32 ---
|
||||
GetNumHapticAxes :: proc(haptic: ^Haptic) -> c.int ---
|
||||
HapticEffectSupported :: proc(haptic: ^Haptic, #by_ptr effect: HapticEffect) -> bool ---
|
||||
CreateHapticEffect :: proc(haptic: ^Haptic, #by_ptr effect: HapticEffect) -> c.int ---
|
||||
UpdateHapticEffect :: proc(haptic: ^Haptic, effect: c.int, #by_ptr data: HapticEffect) -> bool ---
|
||||
RunHapticEffect :: proc(haptic: ^Haptic, effect: c.int, iterations: Uint32) -> bool ---
|
||||
StopHapticEffect :: proc(haptic: ^Haptic, effect: c.int) -> bool ---
|
||||
DestroyHapticEffect :: proc(haptic: ^Haptic, effect: c.int) ---
|
||||
GetHapticEffectStatus :: proc(haptic: ^Haptic, effect: c.int) -> bool ---
|
||||
CreateHapticEffect :: proc(haptic: ^Haptic, #by_ptr effect: HapticEffect) -> HapticEffectId ---
|
||||
UpdateHapticEffect :: proc(haptic: ^Haptic, effect: HapticEffectId, #by_ptr data: HapticEffect) -> bool ---
|
||||
RunHapticEffect :: proc(haptic: ^Haptic, effect: HapticEffectId, iterations: Uint32) -> bool ---
|
||||
StopHapticEffect :: proc(haptic: ^Haptic, effect: HapticEffectId) -> bool ---
|
||||
DestroyHapticEffect :: proc(haptic: ^Haptic, effect: HapticEffectId) ---
|
||||
GetHapticEffectStatus :: proc(haptic: ^Haptic, effect: HapticEffectId) -> bool ---
|
||||
SetHapticGain :: proc(haptic: ^Haptic, gain: c.int) -> bool ---
|
||||
SetHapticAutocenter :: proc(haptic: ^Haptic, autocenter: c.int) -> bool ---
|
||||
PauseHaptic :: proc(haptic: ^Haptic) -> bool ---
|
||||
@@ -230,4 +231,4 @@ foreign lib {
|
||||
InitHapticRumble :: proc(haptic: ^Haptic) -> bool ---
|
||||
PlayHapticRumble :: proc(haptic: ^Haptic, strength: f32, length: Uint32) -> bool ---
|
||||
StopHapticRumble :: proc(haptic: ^Haptic) -> bool ---
|
||||
}
|
||||
}
|
||||
|
||||
4
vendor/sdl3/sdl3_properties.odin
vendored
4
vendor/sdl3/sdl3_properties.odin
vendored
@@ -4,6 +4,8 @@ import "core:c"
|
||||
|
||||
PropertiesID :: distinct Uint32
|
||||
|
||||
PROP_NAME_STRING :: "SDL.name"
|
||||
|
||||
PropertyType :: enum c.int {
|
||||
INVALID,
|
||||
POINTER,
|
||||
@@ -41,4 +43,4 @@ foreign lib {
|
||||
ClearProperty :: proc(props: PropertiesID, name: cstring) -> bool ---
|
||||
EnumerateProperties :: proc(props: PropertiesID, callback: EnumeratePropertiesCallback, userdata: rawptr) -> bool ---
|
||||
DestroyProperties :: proc(props: PropertiesID) ---
|
||||
}
|
||||
}
|
||||
|
||||
8
vendor/sdl3/sdl3_render.odin
vendored
8
vendor/sdl3/sdl3_render.odin
vendored
@@ -19,10 +19,10 @@ TextureAccess :: enum c.int {
|
||||
}
|
||||
|
||||
TextureAddressMode :: enum c.int {
|
||||
TEXTURE_ADDRESS_INVALID = -1,
|
||||
TEXTURE_ADDRESS_AUTO, /**< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default */
|
||||
TEXTURE_ADDRESS_CLAMP, /**< Texture coordinates are clamped to the [0, 1] range */
|
||||
TEXTURE_ADDRESS_WRAP, /**< The texture is repeated (tiled) */
|
||||
INVALID = -1,
|
||||
AUTO, /**< Wrapping is enabled if texture coordinates are outside [0, 1], this is the default */
|
||||
CLAMP, /**< Texture coordinates are clamped to the [0, 1] range */
|
||||
WRAP, /**< The texture is repeated (tiled) */
|
||||
}
|
||||
|
||||
RendererLogicalPresentation :: enum c.int {
|
||||
|
||||
Reference in New Issue
Block a user