aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA1029384756 <hayden.gray104@gmail.com>2026-01-02 17:07:43 -0500
committerA1029384756 <hayden.gray104@gmail.com>2026-01-02 17:07:43 -0500
commit4237a4494431ea6393aa6c6c6dec5cb26aec4f50 (patch)
treee2ba699c1c3285e7fc86b50668e6c8be7a312add
parentb34cf987c3e3aeaccfb83b580497dd652f911e89 (diff)
[vendor/sdl3] another pass over the headers
-rw-r--r--vendor/sdl3/sdl3_haptic.odin15
-rw-r--r--vendor/sdl3/sdl3_properties.odin4
-rw-r--r--vendor/sdl3/sdl3_render.odin8
3 files changed, 15 insertions, 12 deletions
diff --git a/vendor/sdl3/sdl3_haptic.odin b/vendor/sdl3/sdl3_haptic.odin
index d5efadcf3..adf055ee6 100644
--- a/vendor/sdl3/sdl3_haptic.odin
+++ b/vendor/sdl3/sdl3_haptic.odin
@@ -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 ---
-} \ No newline at end of file
+}
diff --git a/vendor/sdl3/sdl3_properties.odin b/vendor/sdl3/sdl3_properties.odin
index 73372c290..01bdff59b 100644
--- a/vendor/sdl3/sdl3_properties.odin
+++ b/vendor/sdl3/sdl3_properties.odin
@@ -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) ---
-} \ No newline at end of file
+}
diff --git a/vendor/sdl3/sdl3_render.odin b/vendor/sdl3/sdl3_render.odin
index 68e333c64..9b2d4efd4 100644
--- a/vendor/sdl3/sdl3_render.odin
+++ b/vendor/sdl3/sdl3_render.odin
@@ -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 {