summaryrefslogtreecommitdiff
path: root/engine/src/renderer/vertex_buffers.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-10-12 21:29:36 +0200
committerHampusM <hampus@hampusmat.com>2023-10-12 21:29:36 +0200
commit341826e9a2b89713fc47ffbc914d18e23c7d9287 (patch)
treeb92b85bd85690d3e6475eac7e8c254700865bded /engine/src/renderer/vertex_buffers.rs
parenta4d66f8272c08c722a0a3fa6843ccf61e05d2928 (diff)
feat(engine): add vertex coloring
Diffstat (limited to 'engine/src/renderer/vertex_buffers.rs')
-rw-r--r--engine/src/renderer/vertex_buffers.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/src/renderer/vertex_buffers.rs b/engine/src/renderer/vertex_buffers.rs
index bb988d9..e7cba91 100644
--- a/engine/src/renderer/vertex_buffers.rs
+++ b/engine/src/renderer/vertex_buffers.rs
@@ -1,5 +1,7 @@
use std::mem::size_of_val;
+use crate::vertex::Vertex;
+
#[derive(Debug)]
pub struct VertexBuffers<const CNT: usize>
{
@@ -23,7 +25,7 @@ impl<const CNT: usize> VertexBuffers<CNT>
pub fn store(
&self,
buffer_index: usize,
- vertices: &[f32],
+ vertices: &[Vertex],
usage: BufferUsage,
) -> Option<()>
{