Creates a new texture that can be used with fill_texture of the specified width and height
(&mut self, texture_id: TextureId, width: u32, height: u32, format: TextureFormat)
| 235 | |
| 236 | /// Creates a new texture that can be used with fill_texture of the specified width and height |
| 237 | fn create_texture(&mut self, texture_id: TextureId, width: u32, height: u32, format: TextureFormat) { |
| 238 | self.draw(Draw::Texture(texture_id, TextureOp::Create(width, height, format))); |
| 239 | } |
| 240 | |
| 241 | /// Releases the memory allocated to a particular texture |
| 242 | fn free_texture(&mut self, texture_id: TextureId) { |
no test coverage detected