Modules

stb_image

moduleSource

Available on macOS, Linux, Windows, Wasm

#import "stb_image";

Procedures#

(filename: *u8, x: *s32, y: *s32, comp: *s32) -> s32
(filename: *u8, x: *s32, y: *s32, channels_in_file: *s32, desired_channels: s32) -> *u8
(filename: *u8, x: *s32, y: *s32, channels_in_file: *s32, desired_channels: s32) -> *u16
(filename: *u8, x: *s32, y: *s32, channels_in_file: *s32, desired_channels: s32) -> *float

Types#

STBIenumforeignSource
:: enum
default
grey
grey_alpha
rgb
rgb_alpha
STBI_default
STBI_grey
STBI_grey_alpha
STBI_rgb
STBI_rgb_alpha
:: struct
read: #type (user: *void, data: *u8, size: s32) -> s32 #c_call
skip: #type (user: *void, n: s32) -> void #c_call
eof: #type (user: *void) -> s32 #c_call

Constants#