summaryrefslogtreecommitdiff
path: root/src/stb/main.zig
blob: adc594affc4f7c1396ecb29677dcd381fee759a1 (plain)
1
2
3
4
5
6
7
8
9
10
const c = @cImport({
    @cInclude("stb_image.h");
    @cInclude("stb_image_resize.h");
});

// We'll just add the exports of the functions or types we actually use
// here, no need to export everything from the C lib if we don't use it.
pub const stbi_load_from_memory = c.stbi_load_from_memory;
pub const stbi_image_free = c.stbi_image_free;
pub const stbir_resize_uint8 = c.stbir_resize_uint8;