diff options
author | HampusM <hampus@hampusmat.com> | 2023-10-15 00:06:07 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-10-15 00:06:07 +0200 |
commit | da329909f93597970afd169cee28ece3bee7127b (patch) | |
tree | b8ce428d458ab5e3e699334877253b10a62c8fe2 /engine/src/opengl/mod.rs | |
parent | 46f27f31e425f5eba494f499bd7a6ac8f8713c2a (diff) |
feat(engine): add logging OpenGL debug messages
Diffstat (limited to 'engine/src/opengl/mod.rs')
-rw-r--r-- | engine/src/opengl/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/opengl/mod.rs b/engine/src/opengl/mod.rs index a58e72e..ce375f5 100644 --- a/engine/src/opengl/mod.rs +++ b/engine/src/opengl/mod.rs @@ -8,6 +8,11 @@ pub mod shader; pub mod vertex_array; pub mod vertex_buffer; +mod util; + +#[cfg(feature = "debug")] +pub mod debug; + pub fn set_viewport(position: &Vec2<u32>, size: &WindowSize) { unsafe { |