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

Method text

src/graphics/batch.rs:271–279  ·  view source on GitHub ↗
(
        &mut self,
        font: &SpriteFont,
        position: Vec2,
        text: &str,
        max_chars: Option<usize>,
    )

Source from the content-addressed store, hash-verified

269 }
270
271 pub fn text(
272 &mut self,
273 font: &SpriteFont,
274 position: Vec2,
275 text: &str,
276 max_chars: Option<usize>,
277 ) {
278 self.text_segments(font, position, &[TextSegment::new(text)], max_chars)
279 }
280
281 fn push_sprite(
282 &mut self,

Callers

nothing calls this directly

Calls 1

text_segmentsMethod · 0.80

Tested by

no test coverage detected