Michael Lee
f01fb605bc
[vendor:stb/vorbis] don't use core:c/libc
2026-02-28 10:24:00 -06:00
Laytan Laats
5f974059f4
move vendor:libc to vendor:libc-shim
2026-01-22 21:36:53 +01:00
xra
b5700e4c4c
change STBI resize alpha_channel parameter type to c.int
2025-11-14 16:18:43 +09:00
Jeroen van Rijn
50350d2364
Refresh vorbis lib on Windows as well.
2025-11-05 09:20:18 +01:00
Jeroen van Rijn
4f370f66bb
Fix #5887
...
By cherry picking unmerged fix in upstream https://github.com/nothings/stb/issues/1745 .
2025-11-05 09:15:49 +01:00
Jeroen van Rijn
998fbdc5c0
Doc lines for vendor:*
2025-10-10 17:51:28 +02:00
gingerBill
f8b56ccd88
Update stb_truetype.c again
2025-08-18 15:51:11 +01:00
gingerBill
a0f6084b48
Rebuild stb libraries and compile stb_truetype using the stb_rect_pack rects
2025-08-18 14:26:52 +01:00
Laytan Laats
34aa326d99
put FILE in core:c and use that in bindings to fix wasm
2025-01-27 19:00:04 +01:00
gingerBill
4a2b13f1c2
Fix foreign import names
2025-01-10 10:18:30 +00:00
gingerBill
b377ac182c
Keep -vet happy
2025-01-10 10:15:15 +00:00
gingerBill
3d4a20918f
Simplify stb foreign imports
2025-01-10 10:12:36 +00:00
Laytan Laats
152479052e
va_list fixes for raylib & stb sprintf
2024-09-29 11:45:57 +02:00
gingerBill
1ae57d8d20
Fix more JS stuff
2024-09-22 13:32:28 +01:00
gingerBill
26d00925cc
Clean-up libc usage
2024-09-22 13:20:45 +01:00
Karl Zylinski
29fedc1808
Changed some recently added //+ usages to #+ and also fixed some //+ usages in some code generators.
2024-09-17 19:39:48 +02:00
Karl Zylinski
093ade0504
Merge branch 'master' into file-tags-without-comments
2024-09-17 19:36:17 +02:00
Karl Zylinski
19f0127e55
Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax.
2024-09-14 18:27:49 +02:00
Laytan Laats
5ae27c6ebc
wasm: support more vendor libraries
...
Adds support for:
- box2d
- cgltf
- stb image
- stb rect pack
2024-09-09 18:49:13 +02:00
laytan
aa75909418
recompile bundled stb truetype on windows
2024-09-09 15:14:26 +02:00
Laytan Laats
0f379d7378
recompile bundled stb truetype
2024-09-09 17:09:49 +02:00
Håkon Stormo
ae020ffb2e
Remove stb_rect_pack implementation from stb_truetype ( fix #4215 )
2024-09-09 15:50:00 +02:00
gingerBill
eb799393d5
Fix -vet-tabs issues
2024-08-24 13:56:41 +01:00
Laytan Laats
2808ecc5b6
remove panic workaround
2024-08-12 23:48:36 +02:00
Laytan Laats
e77977c8ef
fix vet errors in stb truetype
2024-08-03 23:56:19 +02:00
xzores
b4683f4399
Update stb_truetype.odin
2024-07-12 23:57:45 +02:00
Laytan Laats
0ef5191540
use slice.ptr_swap instead of alloca
2024-07-02 20:11:44 +02:00
Laytan Laats
10c68a8951
wasm: support vendor:stb/truetype and vendor:fontstash
2024-07-02 16:03:42 +02:00
Laytan Laats
dbaf1a1ce0
compile stb_vorbis
2024-06-04 20:26:21 +02:00
Laytan Laats
3e159736cd
use #exists to provide good errors for common missing libraries
2024-06-04 20:13:51 +02:00
Laytan Laats
3ada83a503
clean imports
2024-03-01 20:32:07 +01:00
Laytan Laats
6734a7096a
makes raylib and stb_rect_pack free of libc
2024-02-29 23:33:25 +01:00
gingerBill
2f2c086382
Fix foreign import names
2024-01-17 16:35:28 +00:00
gingerBill
d9fafa7000
Have default foreign import system paths
2024-01-17 16:32:26 +00:00
ikarus
9e5677ab02
add missing fields to fontinfo
2023-05-20 20:07:41 +07:00
William Roe
8a822bdd9a
Update stb macOS libraries to be universal
...
This updates all the darwin stb libraries to be built as universal
libraries - meaning they contain both Intel and Apple Silicon versions.
This should make these more generally compatible.
Also, add stb_vorbis.a in the same way. Not sure why it was missing
before.
2022-12-23 23:15:14 +00:00
William Roe
d1a3842e39
Add Darwin-target for building vendor/stb macos universal libs
...
This Darwin-specific target builds each stb library with macOS-specific
options so that the results are universal static libraries that should
work on Intel (x86_64) and Apple Silicon (arm64) machines. They also
should work on macOS 10.12 and above (which should match what Odin
compiles for).
The default Makefile target will build the darwin rule if its invoked on
a macOS machine, otherwise it'll invoke the more general unix target.
2022-12-23 23:15:14 +00:00
Julian Ceipek
ee89c0458f
Fix STB lib import references on ODIN_OS == .Darwin
2022-10-29 22:19:01 -04:00
ray.garner
d6f84887ff
Fix darwin libs for vendor stbi
2022-09-18 21:35:13 +09:00
Jeroen van Rijn
674ebe395f
Merge branch 'master' into master
2022-07-28 16:01:18 +02:00
pvance
9746e25784
Update stb_image_resize.odin
2022-07-28 04:27:42 -04:00
pvance
21f2c06f4b
Update stb_image_resize.odin
2022-07-28 04:25:18 -04:00
pvance
727a25f41f
Replace ODIN_OS strings with enum values
2022-07-28 04:23:24 -04:00
pvance
3f27cb2309
replace ODIN_OS string with enums
2022-07-28 04:22:00 -04:00
pvance
f213622982
replace ODIN_OS string with enums
2022-07-28 04:20:37 -04:00
Jeroen van Rijn
233b32fd3e
Correct return value.
2022-05-25 00:47:29 +02:00
Jeroen van Rijn
376327c87b
[vendor:easy_font] API improvements.
...
Add `print(x, y, text, color, quad_buffer)` version that takes `[]quad`.
(Same internal memory layout as []u8 API, but more convenient for the caller.)
Add optional `scale := f32(1.0)` param to `print` to embiggen the glyph quads.
```odin
// Example for use with vendor:raylib
quads: [999]easy_font.Quad = ---
color := rl.GREEN
c := transmute(easy_font.Color)color
num_quads := easy_font.print(10, 60, TEXT, c, quads[:])
for q in quads[:num_quads] {
tl := q.tl.v
br := q.br.v
color = transmute(rl.Color)q.tl.c
r := rl.Rectangle{x = tl.x, y = tl.y, width = br.x - tl.x, height = br.y - tl.y}
// Yes, we could just use the `color` from above, but this shows how to get it back from the vertex.
// And in practice this code will likely not live as close to the `easy_font` call.
rl.DrawRectangleRec(r, color)
}
```
2022-04-03 18:53:27 +02:00
Florian Behr
f4daf46ff4
Fixes for stb_easy_font
2022-04-03 15:18:01 +02:00
Wes Hardee
f89ebce807
Add foreign imports for Darwin to vendor:stb
2022-03-22 15:55:37 -05:00
Sébastien Marie
f126e05034
stb, miniaudio: use default builtin variables of make for CC and AR
2022-03-03 07:36:47 +00:00