Struct valor::Text [] [src]

pub struct Text {
    pub data: &'static str,
    pub position: [i32; 2],
    pub color: [f32; 4],
}

Data structure with vertex data and underlying GPU representation, shared among all instances.

Fields

The string to be drawn

The vertex data

The color to draw the text with

Methods

impl Text
[src]

[src]

Create a new instance of the text struct