default window background
This commit is contained in:
+1
-1
@@ -39,9 +39,9 @@ run :: proc(app: ^App) {
|
||||
|
||||
rl.SetTargetFPS(60)
|
||||
for !rl.WindowShouldClose() {
|
||||
rl.ClearBackground(window.background)
|
||||
for i in app.systems[UPDATE] {i()}
|
||||
rl.BeginDrawing()
|
||||
rl.ClearBackground(window.background)
|
||||
for i in app.systems[DRAW] {i()}
|
||||
rl.EndDrawing()
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ DefaultPlugin :: proc(app: ^App) {
|
||||
add_component(
|
||||
display,
|
||||
&Window,
|
||||
WindowComponent{width = 800, height = 600, title = "shoal window"},
|
||||
WindowComponent{width = 800, height = 600, title = "shoal window", background = rl.BLACK},
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user