[vendor/sdl3] another pass over the headers

This commit is contained in:
A1029384756
2026-01-02 17:07:43 -05:00
parent b34cf987c3
commit 4237a44944
3 changed files with 15 additions and 12 deletions

View File

@@ -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 ---
}
}

View File

@@ -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) ---
}
}

View File

@@ -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 {