stbi: make LoadParams.desired_channels public

This commit is contained in:
Delyan Angelov 2024-04-30 23:44:50 +03:00
parent 927cc01f7d
commit 4bc0f0bcff
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -112,6 +112,7 @@ fn C.stbi_load_from_memory(buffer &u8, len int, x &int, y &int, channels_in_file
@[params]
pub struct LoadParams {
pub:
// the number of channels you expect the image to have.
// If set to 0 stbi will figure out the correct number of channels
desired_channels int = C.STBI_rgb_alpha