mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-07 21:43:15 +00:00
stb_image
This commit is contained in:
2
Makefile
2
Makefile
@@ -17,7 +17,7 @@ ifeq ($(OS), Darwin)
|
||||
LLVM_VERSIONS = "13.%.%"
|
||||
else
|
||||
# allow for x86 / amd64 all llvm versions begining from 11
|
||||
LLVM_VERSIONS = "13.%.%" "12.0.1" "11.1.0"
|
||||
LLVM_VERSIONS = "13.%.%" "12.0.1" "11.0.0"
|
||||
endif
|
||||
|
||||
LLVM_VERSION_PATTERN_SEPERATOR = )|(
|
||||
|
||||
1
vendor/stb/image/stb_image.odin
vendored
1
vendor/stb/image/stb_image.odin
vendored
@@ -6,6 +6,7 @@ import c "core:c/libc"
|
||||
|
||||
when ODIN_OS == "windows" { foreign import stbi "../lib/stb_image.lib" }
|
||||
when ODIN_OS == "linux" { foreign import stbi "../lib/stb_image.a" }
|
||||
when ODIN_OS == "darwin" { foreign import stbi "../lib/darwin/stb_image.a" }
|
||||
|
||||
#assert(size_of(b32) == size_of(c.int))
|
||||
|
||||
|
||||
3
vendor/stb/image/stb_image_resize.odin
vendored
3
vendor/stb/image/stb_image_resize.odin
vendored
@@ -4,6 +4,7 @@ import c "core:c/libc"
|
||||
|
||||
when ODIN_OS == "windows" { foreign import lib "../lib/stb_image_resize.lib" }
|
||||
when ODIN_OS == "linux" { foreign import lib "../lib/stb_image_resize.a" }
|
||||
when ODIN_OS == "darwin" { foreign import lib "../lib/darwin/stb_image_resize.a" }
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
@@ -184,4 +185,4 @@ foreign lib {
|
||||
space: colorspace, alloc_context: rawptr,
|
||||
s0, t0, s1, t1: f32) -> c.int ---
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
1
vendor/stb/image/stb_image_write.odin
vendored
1
vendor/stb/image/stb_image_write.odin
vendored
@@ -4,6 +4,7 @@ import c "core:c/libc"
|
||||
|
||||
when ODIN_OS == "windows" { foreign import stbiw "../lib/stb_image_write.lib" }
|
||||
when ODIN_OS == "linux" { foreign import stbiw "../lib/stb_image_write.a" }
|
||||
when ODIN_OS == "darwin" { foreign import stbiw "../lib/darwin/stb_image_write.a" }
|
||||
|
||||
|
||||
write_func :: proc "c" (ctx: rawptr, data: rawptr, size: c.int)
|
||||
|
||||
Reference in New Issue
Block a user