Skip to content

Commit

Permalink
update doc comment for load_image_from_mem
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGmp committed Jan 31, 2024
1 parent e16de3a commit 36f36c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raylib/src/core/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@ impl Image {
}

/// Loads image from a given memory buffer
/// ensure filetype is extension, for example, ".png"
/// The input data is expected to be in a supported file format such as png. Which formats are
/// supported depend on the build flags used for the raylib (C) library.
pub fn load_image_from_mem(filetype: &str, bytes: &[u8]) -> Result<Image, String> {
let c_filetype = CString::new(filetype).unwrap();
let i = unsafe {
Expand Down

0 comments on commit 36f36c8

Please sign in to comment.