diff options
Diffstat (limited to 'stockton-render/src/draw/draw_buffers.rs')
-rw-r--r-- | stockton-render/src/draw/draw_buffers.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/stockton-render/src/draw/draw_buffers.rs b/stockton-render/src/draw/draw_buffers.rs index faf9c4e..a6e0996 100644 --- a/stockton-render/src/draw/draw_buffers.rs +++ b/stockton-render/src/draw/draw_buffers.rs @@ -15,13 +15,14 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -use crate::{ - draw::{buffer::StagedBuffer, UVPoint}, - error::CreationError, - types::*, -}; +use crate::{draw::buffer::StagedBuffer, error::CreationError, types::*}; use hal::buffer::Usage; use std::mem::ManuallyDrop; +use stockton_types::{Vector2, Vector3}; + +/// Represents a point of a triangle, including UV and texture information. +#[derive(Debug, Clone, Copy)] +pub struct UVPoint(pub Vector3, pub i32, pub Vector2); /// Initial size of vertex buffer. TODO: Way of overriding this pub const INITIAL_VERT_SIZE: u64 = 3 * 3000; |