summaryrefslogtreecommitdiff
path: root/objs/root.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-14 12:32:05 +0200
committerewy <ewy0@protonmail.com>2026-08-14 12:32:05 +0200
commit48215d06a6cc0753a839e58c3403d34f69c250d4 (patch)
tree3c391d8edc2e52818072a48c7e36abefeb3b7671 /objs/root.go
parentbc3f852ea670e206fa3facc736a230f6b9d23920 (diff)
add components in addition to gameobject interfacesHEADmaster
Diffstat (limited to 'objs/root.go')
-rw-r--r--objs/root.go4
1 files changed, 2 insertions, 2 deletions
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 {