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 and sumofat
d6f84887ff
Fix darwin libs for vendor stbi
2022-09-18 21:35:13 +09:00
Jeroen van Rijn and GitHub
674ebe395f
Merge branch 'master' into master
2022-07-28 16:01:18 +02:00
pvance and GitHub
9746e25784
Update stb_image_resize.odin
2022-07-28 04:27:42 -04:00
pvance and GitHub
21f2c06f4b
Update stb_image_resize.odin
2022-07-28 04:25:18 -04:00
pvance and GitHub
727a25f41f
Replace ODIN_OS strings with enum values
2022-07-28 04:23:24 -04:00
pvance and GitHub
3f27cb2309
replace ODIN_OS string with enums
2022-07-28 04:22:00 -04:00
pvance and GitHub
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
Tail Wag Games and GitHub
d4f62f52db
adding is_16_bit_from_memory to stbi
2022-02-24 00:20:15 -06:00
phillvancejr
42364f2fce
sync with main
2022-02-04 13:16:40 -05:00
phillvancejr
8f600798ef
stb_image
2022-02-04 13:03:20 -05:00
gingerBill
3d7d347192
Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
2022-01-20 19:56:05 +00:00
gingerBill and GitHub
00597127dd
Add missing field skip_missing
2021-11-24 16:39:29 +00:00
skytrias
9ceb6b79fd
small package fixes
2021-09-29 21:47:36 +02:00
gingerBill
736a763859
Add stb libs for Windows directly
2021-09-15 14:30:11 +01:00
gingerBill
2e21312059
Remove -march=native from stb/src/Makefile
2021-09-15 14:09:12 +01:00
gingerBill
e7ea09a93b
Add vendor:stb/vorbis
2021-09-14 22:35:22 +01:00
gingerBill
6f182ae5ae
Add vendor:stb/easy_font -- source port of stb_easy_font.h
2021-09-14 22:12:23 +01:00
gingerBill
cb2437959c
Add stb_image_resize to vendor:stb/image
2021-09-14 21:44:26 +01:00
gingerBill
da14292369
Minor corrections to stb_truetype.odin
2021-09-14 18:22:04 +01:00