added slider thing, broke rendering somehow though
This commit is contained in:
@@ -2,14 +2,14 @@ use std::sync::Arc;
|
||||
use crate::canvas::*;
|
||||
use crate::canvas::managed::handles::{CanvasFontHandle, CanvasImageHandle, CanvasTextureHandle, Handle};
|
||||
use crate::canvas::canvas_frame::{Drawable};
|
||||
use crate::util::vertex::{VertexTypes, TextureVertex3D, Vertex3D, ColorVertex3D};
|
||||
use crate::util::vertex::{VertexType, TextureVertex3D, Vertex3D, ColorVertex3D};
|
||||
use crate::drawables::sprite::Sprite;
|
||||
|
||||
/// Convex multi verticy polygon
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Polygon {
|
||||
|
||||
pub verts: VertexTypes,
|
||||
pub verts: VertexType,
|
||||
|
||||
position: (f32, f32),
|
||||
size: (f32, f32),
|
||||
@@ -54,14 +54,14 @@ impl Polygon {
|
||||
|
||||
|
||||
Polygon {
|
||||
verts: VertexTypes::ColorType(verts),
|
||||
verts: VertexType::ColorType(verts),
|
||||
position: position,
|
||||
size: size,
|
||||
}
|
||||
}
|
||||
}
|
||||
impl Drawable for Polygon {
|
||||
fn get(&self) -> Vec<VertexTypes> {
|
||||
fn get(&self) -> Vec<VertexType> {
|
||||
vec![self.verts.clone()]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user