summaryrefslogtreecommitdiff
path: root/engine/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-10-22 19:29:11 +0200
committerHampusM <hampus@hampusmat.com>2023-10-22 19:29:11 +0200
commit54c0fd70f82eb1a6814872c78bc22380f438c9d1 (patch)
tree7b0b67b52daa7ce18432c7b83caa862234a3255c /engine/src/lib.rs
parent30394c16ccdcdb145352e245a7a8893cef28e82d (diff)
feat(engine): add translating & scaling objects
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r--engine/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index db6ab94..dbbd407 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -7,8 +7,10 @@ use glfw::{Window, WindowBuilder};
use crate::object::{Id as ObjectId, Object};
use crate::vector::Vec2;
+mod matrix;
mod opengl;
mod renderer;
+mod transform;
pub mod color;
pub mod object;
@@ -91,7 +93,7 @@ impl Engine
while !self.window.should_close() {
func(self);
- crate::renderer::render(self.objects.values().map(Object::renderable));
+ crate::renderer::render(self.objects.values());
self.window
.swap_buffers()