Skip to content

Commit 6425971

Browse files
authored
Add stbi_write_bmp function declaration
1 parent 2c4b310 commit 6425971

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/zstbi.zig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,15 @@ extern fn stbi_write_png(
539539
stride_in_bytes: c_int,
540540
) c_int;
541541

542+
pub extern fn stbi_write_bmp(
543+
filename: [*:0]const u8,
544+
w: c_int,
545+
h: c_int,
546+
comp: c_int,
547+
data: [*]const u8,
548+
stride_in_bytes: c_int,
549+
) c_int;
550+
542551
extern fn stbi_write_png_to_func(
543552
func: *const fn (?*anyopaque, ?*anyopaque, c_int) callconv(.c) void,
544553
context: ?*anyopaque,

0 commit comments

Comments
 (0)