refactoring the shader container. To Trait or not to Trait? Probably Trait
This commit is contained in:
@@ -41,7 +41,7 @@ impl CanvasText {
|
||||
|
||||
let cache = Cache::builder().dimensions(CACHE_WIDTH as u32, CACHE_HEIGHT as u32).build();
|
||||
let cache_pixel_buffer = vec!(0; CACHE_WIDTH * CACHE_HEIGHT);
|
||||
|
||||
|
||||
let font_data = include_bytes!("../../resources/fonts/sansation.ttf");
|
||||
let font = Font::from_bytes(font_data as &[u8]).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user