From 54c0fd70f82eb1a6814872c78bc22380f438c9d1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 22 Oct 2023 19:29:11 +0200 Subject: feat(engine): add translating & scaling objects --- engine/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/src/lib.rs') 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() -- cgit v1.2.3-18-g5258