diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
commit | dfb74318dae09b3430acf533374dc7004df65c65 (patch) | |
tree | 4e18f70dd7b34d29039d8f93bd5d1578712f5a88 /stockton-render/src/draw/draw_buffers.rs | |
parent | 2a0d97911052cf3631523cb4573aae69a3816e85 (diff) |
feat(render): 2D drawing on top of 3D scene
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; |