fix: add type annotation to resolve ambiguous transform matrix type in main.rs

This commit is contained in:
2025-09-15 15:46:30 +02:00
parent 70f6812fb4
commit 179da91770

View File

@@ -301,7 +301,7 @@ fn main() {
// == // Issue the necessary gl:: commands to draw your scene here
simple_shader.activate();
// build and send the transform matrix (start from identity)
let mut transform = glm::identity();
let mut transform: glm::Mat4 = glm::identity();
// modify element (0,0) here; change indices to test a, b, c, d, e, f, etc.
transform[(0,0)] = elapsed.sin();
gl::UniformMatrix4fv(transform_loc, 1, gl::FALSE, transform.as_ptr());