MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / texture_dest

Method texture_dest

src/graphics/batch.rs:201–219  ·  view source on GitHub ↗
(
        &mut self,
        texture: &Texture,
        src: Rectangle,
        dest: Rectangle,
        params: DrawParams,
    )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

push_spriteMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected