mirror of
https://github.com/vlang/v.git
synced 2025-09-13 01:16:02 -04:00
stbi: make LoadParams.desired_channels public
This commit is contained in:
parent
927cc01f7d
commit
4bc0f0bcff
@ -112,6 +112,7 @@ fn C.stbi_load_from_memory(buffer &u8, len int, x &int, y &int, channels_in_file
|
|||||||
|
|
||||||
@[params]
|
@[params]
|
||||||
pub struct LoadParams {
|
pub struct LoadParams {
|
||||||
|
pub:
|
||||||
// the number of channels you expect the image to have.
|
// the number of channels you expect the image to have.
|
||||||
// If set to 0 stbi will figure out the correct number of channels
|
// If set to 0 stbi will figure out the correct number of channels
|
||||||
desired_channels int = C.STBI_rgb_alpha
|
desired_channels int = C.STBI_rgb_alpha
|
||||||
|
Loading…
x
Reference in New Issue
Block a user