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

Method empty

src/graphics/texture.rs:51–58  ·  view source on GitHub ↗
(gfx: &Graphics, width: i32, height: i32)

Source from the content-addressed store, hash-verified

49 }
50
51 pub fn empty(gfx: &Graphics, width: i32, height: i32) -> Texture {
52 Texture::from_data(
53 gfx,
54 width,
55 height,
56 &vec![0; width as usize * height as usize * 4],
57 )
58 }
59
60 pub fn width(&self) -> i32 {
61 self.raw.width

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected