Sets the bitmap data for a texture, in the format specified by the call to create_texture()
(&mut self, texture_id: TextureId, x: u32, y: u32, width: u32, height: u32, bytes: Arc<Vec<u8>>)
| 245 | |
| 246 | /// Sets the bitmap data for a texture, in the format specified by the call to create_texture() |
| 247 | fn set_texture_bytes(&mut self, texture_id: TextureId, x: u32, y: u32, width: u32, height: u32, bytes: Arc<Vec<u8>>) { |
| 248 | self.draw(Draw::Texture(texture_id, TextureOp::SetBytes(x, y, width, height, bytes))); |
| 249 | } |
| 250 | |
| 251 | /// Applies an alpha value to a texture |
| 252 | fn set_texture_fill_alpha(&mut self, texture_id: TextureId, alpha: f32) { |
no test coverage detected