some mishmash brainstorming on adding text rendering. Going to use inverted stencil buffer + glyph path method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user