From be2b986a8466783f40b8627bbe6a3debbe147964 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 8 Oct 2023 17:32:26 +0200 Subject: feat(engine): add Debug derives --- engine/src/lib.rs | 1 + engine/src/object.rs | 1 + engine/src/renderer/mod.rs | 1 + engine/src/renderer/vertex_array.rs | 2 ++ engine/src/renderer/vertex_buffers.rs | 2 ++ 5 files changed, 7 insertions(+) (limited to 'engine') diff --git a/engine/src/lib.rs b/engine/src/lib.rs index 28cd2da..ebb635f 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -12,6 +12,7 @@ mod shader; pub mod object; pub mod vector; +#[derive(Debug)] pub struct Engine { window: Window, diff --git a/engine/src/object.rs b/engine/src/object.rs index ff84127..d1ac859 100644 --- a/engine/src/object.rs +++ b/engine/src/object.rs @@ -1,6 +1,7 @@ use crate::renderer::Renderable; use crate::shader::{Kind as ShaderKind, Program as ShaderProgram, Shader}; +#[derive(Debug)] pub struct Object { renderable: Renderable, diff --git a/engine/src/renderer/mod.rs b/engine/src/renderer/mod.rs index 3c42f93..a339ea8 100644 --- a/engine/src/renderer/mod.rs +++ b/engine/src/renderer/mod.rs @@ -50,6 +50,7 @@ pub fn render<'renderable>(renderables: impl IntoIterator { buffers: [gl::types::GLuint; CNT], @@ -57,6 +58,7 @@ impl Drop for VertexBuffers } } +#[derive(Debug)] #[allow(dead_code)] pub enum BufferUsage { -- cgit v1.2.3-18-g5258