mirror of
https://github.com/lisk77/comet.git
synced 2025-10-24 05:48:50 +00:00
feat: added Font to get glyphs out of ttf files and make a TextureAtlas with them (right now only latin range of Unicode to not explode the atlas) and started trying to incorporate text rendering in ECS and Renderer2D
This commit is contained in:
parent
5430ee0d7e
commit
9e16179df3
12 changed files with 191 additions and 317 deletions
|
|
@ -57,6 +57,13 @@ pub struct Camera2D {
|
|||
priority: u8
|
||||
}
|
||||
|
||||
#[derive(Component)]
|
||||
pub struct Text {
|
||||
content: &'static str,
|
||||
font: &'static str,
|
||||
font_size: f32,
|
||||
}
|
||||
|
||||
// ##################################################
|
||||
// # BUNDLES #
|
||||
// ##################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue