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

Method set_data

src/graphics/texture.rs:72–75  ·  view source on GitHub ↗
(&self, data: &[u8])

Source from the content-addressed store, hash-verified

70 }
71
72 pub fn set_data(&self, data: &[u8]) {
73 self.raw
74 .set_region(0, 0, self.raw.width, self.raw.height, data);
75 }
76
77 pub fn set_region(&self, x: i32, y: i32, width: i32, height: i32, data: &[u8]) {
78 self.raw.set_region(x, y, width, height, data);

Callers

nothing calls this directly

Calls 1

set_regionMethod · 0.80

Tested by

no test coverage detected