Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/zstbi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,15 @@ extern fn stbi_write_png(
stride_in_bytes: c_int,
) c_int;

pub extern fn stbi_write_bmp(
filename: [*:0]const u8,
w: c_int,
h: c_int,
comp: c_int,
data: [*]const u8,
stride_in_bytes: c_int,
) c_int;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filename should be of type [*c]const u8

data should be of type [*c]const anyopaque

stride_in_bytes is not an argument of stbi_write_bmp


extern fn stbi_write_png_to_func(
func: *const fn (?*anyopaque, ?*anyopaque, c_int) callconv(.c) void,
context: ?*anyopaque,
Expand Down