diff options
author | HampusM <hampus@hampusmat.com> | 2023-10-23 19:21:42 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-10-23 19:21:42 +0200 |
commit | bd427836bfa6f7228951c18e43058d3e35577702 (patch) | |
tree | 4d7276d7c7ded85362b3f199dbde2e9939481bfc /engine/src/opengl/vertex_array.rs | |
parent | 54c0fd70f82eb1a6814872c78bc22380f438c9d1 (diff) |
refactor(engine): rename vertex buffer to buffer & make generic
Diffstat (limited to 'engine/src/opengl/vertex_array.rs')
-rw-r--r-- | engine/src/opengl/vertex_array.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/opengl/vertex_array.rs b/engine/src/opengl/vertex_array.rs index f255b8a..ba2ded2 100644 --- a/engine/src/opengl/vertex_array.rs +++ b/engine/src/opengl/vertex_array.rs @@ -1,7 +1,7 @@ use std::mem::size_of; +use crate::opengl::buffer::Buffer; use crate::opengl::currently_bound::CurrentlyBound; -use crate::opengl::vertex_buffer::VertexBuffer; use crate::vertex::{Attribute, AttributeComponentType, Vertex}; const VERTEX_STRIDE: usize = size_of::<Vertex>(); @@ -45,7 +45,7 @@ impl VertexArray pub fn configure_attrs( _currently_bound: &CurrentlyBound<Self>, - _vert_buf_curr_bound: &CurrentlyBound<VertexBuffer>, + _vert_buf_curr_bound: &CurrentlyBound<Buffer<Vertex>>, ) { let mut offset = 0; |