added slider thing, broke rendering somehow though
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use crate::canvas::canvas_frame::Drawable;
|
||||
use crate::util::vertex::{VertexTypes, ColorVertex3D};
|
||||
use crate::util::vertex::{VertexType, ColorVertex3D};
|
||||
|
||||
///
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Rect {
|
||||
|
||||
pub verts: VertexTypes,
|
||||
pub verts: VertexType,
|
||||
|
||||
position: (f32, f32),
|
||||
size: (f32, f32),
|
||||
@@ -43,14 +43,14 @@ impl Rect {
|
||||
];
|
||||
|
||||
Rect {
|
||||
verts: VertexTypes::ColorType(verts),
|
||||
verts: VertexType::ColorType(verts),
|
||||
position: position,
|
||||
size: size,
|
||||
}
|
||||
}
|
||||
}
|
||||
impl Drawable for Rect {
|
||||
fn get(&self) -> Vec<VertexTypes> {
|
||||
fn get(&self) -> Vec<VertexType> {
|
||||
vec![self.verts.clone()]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user