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