(
&mut self,
texture: &Texture,
src: Rectangle,
dest: Rectangle,
params: DrawParams,
)
| 199 | } |
| 200 | |
| 201 | pub fn texture_dest( |
| 202 | &mut self, |
| 203 | texture: &Texture, |
| 204 | src: Rectangle, |
| 205 | dest: Rectangle, |
| 206 | params: DrawParams, |
| 207 | ) { |
| 208 | self.push_sprite( |
| 209 | Some(texture), |
| 210 | Rectangle::new( |
| 211 | src.x / texture.width() as f32, |
| 212 | src.y / texture.height() as f32, |
| 213 | src.width / texture.width() as f32, |
| 214 | src.height / texture.height() as f32, |
| 215 | ), |
| 216 | dest, |
| 217 | params, |
| 218 | ); |
| 219 | } |
| 220 | |
| 221 | pub fn text_segments( |
| 222 | &mut self, |
nothing calls this directly
no test coverage detected