aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2025-06-26 17:51:57 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2025-06-26 17:51:57 +0200
commitedf071903d33f73e0dc642bbdffc1e868901e632 (patch)
tree080bf401ec5fd885a56c05668d4811611e29b08f
parent5822b00c3925a15a28d9ecc182040c680de36d04 (diff)
sdl3/ttf: remove #by_ptr usage with opaque Font
Fixes #5278
-rw-r--r--vendor/sdl3/ttf/sdl3_ttf.odin32
1 files changed, 16 insertions, 16 deletions
diff --git a/vendor/sdl3/ttf/sdl3_ttf.odin b/vendor/sdl3/ttf/sdl3_ttf.odin
index ea71cf776..9f6a9ba4a 100644
--- a/vendor/sdl3/ttf/sdl3_ttf.odin
+++ b/vendor/sdl3/ttf/sdl3_ttf.odin
@@ -150,42 +150,42 @@ foreign lib {
GetFontDPI :: proc(font: ^Font, hdpi: ^c.int, vdpi: ^c.int) -> bool ---
SetFontStyle :: proc(font: ^Font, style: FontStyleFlags) ---
- GetFontStyle :: proc(#by_ptr font: Font) -> FontStyleFlags ---
+ GetFontStyle :: proc(font: ^Font) -> FontStyleFlags ---
SetFontOutline :: proc(font: ^Font, outline: c.int) -> bool ---
- GetFontOutline :: proc(#by_ptr font: Font) -> c.int ---
+ GetFontOutline :: proc(font: ^Font) -> c.int ---
SetFontHinting :: proc(font: ^Font, hinting: Hinting) ---
- GetFontHinting :: proc(#by_ptr font: Font) -> Hinting ---
+ GetFontHinting :: proc(font: ^Font) -> Hinting ---
GetNumFontFaces :: proc(font: ^Font) -> c.int ---
SetFontSDF :: proc(font: ^Font, enabled: bool) -> bool ---
- GetFontSDF :: proc(#by_ptr font: Font) -> bool ---
+ GetFontSDF :: proc(font: ^Font) -> bool ---
- GetFontWeight :: proc(#by_ptr font: Font) -> c.int ---
+ GetFontWeight :: proc(font: ^Font) -> c.int ---
SetFontWrapAlignment :: proc(font: ^Font, align: HorizontalAlignment) ---
- GetFontWrapAlignment :: proc(#by_ptr font: Font) -> HorizontalAlignment ---
+ GetFontWrapAlignment :: proc(font: ^Font) -> HorizontalAlignment ---
- GetFontHeight :: proc(#by_ptr font: Font) -> c.int ---
- GetFontAscent :: proc(#by_ptr font: Font) -> c.int ---
- GetFontDescent :: proc(#by_ptr font: Font) -> c.int ---
+ GetFontHeight :: proc(font: ^Font) -> c.int ---
+ GetFontAscent :: proc(font: ^Font) -> c.int ---
+ GetFontDescent :: proc(font: ^Font) -> c.int ---
SetFontLineSkip :: proc(font: ^Font, lineskip: c.int) ---
- GetFontLineSkip :: proc(#by_ptr font: Font) -> c.int ---
+ GetFontLineSkip :: proc(font: ^Font) -> c.int ---
SetFontKerning :: proc(font: ^Font, enabled: bool) ---
- GetFontKerning :: proc(#by_ptr font: Font) -> bool ---
+ GetFontKerning :: proc(font: ^Font) -> bool ---
- FontIsFixedWidth :: proc(#by_ptr font: Font) -> bool ---
- FontIsScalable :: proc(#by_ptr font: Font) -> bool ---
+ FontIsFixedWidth :: proc(font: ^Font) -> bool ---
+ FontIsScalable :: proc(font: ^Font) -> bool ---
- GetFontFamilyName :: proc(#by_ptr font: Font) -> cstring ---
- GetFontStyleName :: proc(#by_ptr font: Font) -> cstring ---
+ GetFontFamilyName :: proc(font: ^Font) -> cstring ---
+ GetFontStyleName :: proc(font: ^Font) -> cstring ---
SetFontDirection :: proc(font: ^Font, direction: Direction) -> bool ---
- GetFontDirection :: proc(#by_ptr font: Font) -> Direction ---
+ GetFontDirection :: proc(font: ^Font) -> Direction ---
StringToTag :: proc(string: cstring) -> u32 ---
TagToString :: proc(tag: u32, string: [^]c.char, size: c.size_t) ---