From 48215d06a6cc0753a839e58c3403d34f69c250d4 Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 14 Aug 2026 12:32:05 +0200 Subject: add components in addition to gameobject interfaces --- objs/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'objs/root.go') diff --git a/objs/root.go b/objs/root.go index 44309ac..92f3804 100644 --- a/objs/root.go +++ b/objs/root.go @@ -11,8 +11,8 @@ type Root struct { } func (root *Root) Render(r *sdl.Renderer) { - r.SetDrawColor(0, 0, 0, 255) - r.Clear() + root.Safe(r.SetDrawColor(0, 0, 0, 255)) + root.Safe(r.Clear()) } func NewRoot(window *sdl.Window, children ...ecs.IsGameObject) ecs.IsGameObject { -- cgit v1.3.1