aboutsummaryrefslogtreecommitdiff
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 87dfe84e..a0051aaa 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -3,13 +3,12 @@ use std::ffi::CString;
use std::fs::File;
use std::io::{self, Read};
use std::mem::size_of;
-use std::path::{PathBuf, Path};
+use std::path::{PathBuf};
use std::ptr;
use std::sync::Arc;
use std::sync::atomic::{Ordering, AtomicBool};
-use cgmath::{self, Matrix};
-use euclid::{Rect, Size2D, Point2D};
+use cgmath;
use gl::types::*;
use gl;
use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op};
@@ -185,12 +184,6 @@ pub struct PackedVertex {
}
#[derive(Debug)]
-struct ElementIndex {
- col: u32, // x
- row: u32, // y
-}
-
-#[derive(Debug)]
pub struct Batch {
tex: GLuint,
instances: Vec<InstanceData>,
@@ -616,13 +609,6 @@ impl<'a> Drop for RenderApi<'a> {
}
}
-fn get_rect(glyph: &Glyph, x: f32, y: f32) -> Rect<f32> {
- Rect::new(
- Point2D::new(x + glyph.left as f32, y - (glyph.height - glyph.top) as f32),
- Size2D::new(glyph.width as f32, glyph.height as f32)
- )
-}
-
impl ShaderProgram {
pub fn activate(&self) {
unsafe {