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
data: &'static str
The string to be drawn
position: [i32; 2]
The vertex data
color: [f32; 4]
The color to draw the text with