default window background
This commit is contained in:
+1
-1
@@ -39,9 +39,9 @@ run :: proc(app: ^App) {
|
|||||||
|
|
||||||
rl.SetTargetFPS(60)
|
rl.SetTargetFPS(60)
|
||||||
for !rl.WindowShouldClose() {
|
for !rl.WindowShouldClose() {
|
||||||
rl.ClearBackground(window.background)
|
|
||||||
for i in app.systems[UPDATE] {i()}
|
for i in app.systems[UPDATE] {i()}
|
||||||
rl.BeginDrawing()
|
rl.BeginDrawing()
|
||||||
|
rl.ClearBackground(window.background)
|
||||||
for i in app.systems[DRAW] {i()}
|
for i in app.systems[DRAW] {i()}
|
||||||
rl.EndDrawing()
|
rl.EndDrawing()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ DefaultPlugin :: proc(app: ^App) {
|
|||||||
add_component(
|
add_component(
|
||||||
display,
|
display,
|
||||||
&Window,
|
&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