miserable failure to get text rendering to work using these 'easy text rendering' tricks. Will be bringing in a third party library which I have to write the damn backend implementation for

This commit is contained in:
2020-03-10 18:04:08 -07:00
parent 77b781df1a
commit db8cbdc77e
7 changed files with 505 additions and 37 deletions

View File

@@ -465,7 +465,7 @@ impl CanvasState {
// Specify the color to clear the framebuffer with i.e. blue
let clear_values = vec!(
ClearValue::Float([0.0, 0.0, 1.0, 1.0]),
ClearValue::Float([0.0, 0.0, 0.0, 0.0]),
ClearValue::DepthStencil((1.0, 0x00)),
);
@@ -500,6 +500,7 @@ impl CanvasState {
).unwrap();
}
// Images
let mut shader = self.shader_buffers.get(
self.get_shader_handle(String::from("simple_image"))
@@ -604,7 +605,6 @@ impl CanvasState {
).unwrap();
}
command_buffer
.end_render_pass()
.unwrap()