MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / from_data

Method from_data

src/graphics/texture.rs:45–49  ·  view source on GitHub ↗
(gfx: &Graphics, width: i32, height: i32, data: &[u8])

Source from the content-addressed store, hash-verified

43 }
44
45 pub fn from_data(gfx: &Graphics, width: i32, height: i32, data: &[u8]) -> Texture {
46 let raw = RawTexture::new(gfx, width, height, data);
47
48 Texture { raw: Rc::new(raw) }
49 }
50
51 pub fn empty(gfx: &Graphics, width: i32, height: i32) -> Texture {
52 Texture::from_data(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected