some mishmash brainstorming on adding text rendering. Going to use inverted stencil buffer + glyph path method

This commit is contained in:
2019-09-17 20:10:16 -07:00
parent b13a834475
commit 89fc974d3c
7 changed files with 76 additions and 45 deletions

View File

@@ -6,11 +6,9 @@ extern crate cgmath;
extern crate image;
extern crate nalgebra as na;
extern crate rand;
extern crate sfml;
extern crate time;
extern crate hprof;
use sfml::system::*;
use vulkano::sync;
use crate::timer::Timer;
use vulkano::instance::Instance;
@@ -27,9 +25,10 @@ use crate::compu_buffer::CompuBuffers;
use crate::util::load_raw;
use crate::canvas_frame::CanvasFrame;
pub mod util;
pub mod timer;
pub mod input;
//pub mod input;
pub mod vkprocessor;
pub mod vertex_2d;
pub mod vertex_3d;
@@ -39,6 +38,7 @@ pub mod canvas;
pub mod canvas_frame;
pub mod canvas_shader;
pub mod canvas_buffer;
pub mod canvas_text;
pub mod compu_state;
pub mod compu_frame;
@@ -84,8 +84,6 @@ pub fn main() {
let mut accumulator_time: f32 = 0.0;
let mut current_time: f32 = timer.elap_time();
let mut mouse_xy = Vector2i::new(0, 0);
let image_data = load_raw(String::from("funky-bird.jpg"));
let image_dimensions_f = ((image_data.1).0 as f32, (image_data.1).1 as f32);