summaryrefslogtreecommitdiff
path: root/engine/src/opengl
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-11-20 22:00:34 +0100
committerHampusM <hampus@hampusmat.com>2023-11-20 22:00:34 +0100
commitb0315b7ebc16fcbae6c3098db6c824f9057d2a71 (patch)
treec7473fbdbcc59aff933790892ee015a6f05d8565 /engine/src/opengl
parenta65c8abcae46b382b2e1bb7cc5d13768325083b4 (diff)
feat(engine): add materials
Diffstat (limited to 'engine/src/opengl')
-rw-r--r--engine/src/opengl/shader.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/engine/src/opengl/shader.rs b/engine/src/opengl/shader.rs
index 4bf56aa..9bed09b 100644
--- a/engine/src/opengl/shader.rs
+++ b/engine/src/opengl/shader.rs
@@ -205,16 +205,6 @@ impl Program
}
}
- pub fn set_uniform_1uiv(&self, _: &CurrentlyBound<Self>, name: &CStr, num: u32)
- {
- let uniform_location =
- unsafe { gl::GetUniformLocation(self.program, name.as_ptr().cast()) };
-
- unsafe {
- gl::Uniform1uiv(uniform_location, 1, &num);
- }
- }
-
fn get_info_log(&self) -> String
{
let mut buf = vec![gl::types::GLchar::default(); 512];