(gfx: &Graphics, width: i32, height: i32, data: &[u8])
| 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( |
nothing calls this directly
no outgoing calls
no test coverage detected