stuff renders now, but we still got no alpha channel on the foreground console.... 🤦
This commit is contained in:
parent
c17cef8bfe
commit
64e4e4f437
4 changed files with 21 additions and 8 deletions
|
|
@ -50,10 +50,16 @@ def main_draw() -> None:
|
|||
"""Render and present the active screen."""
|
||||
if not g.screens:
|
||||
return
|
||||
g.console.clear()
|
||||
g.screens[-1].on_draw(g.console)
|
||||
g.background.clear()
|
||||
g.foreground.clear()
|
||||
g.screens[-1].on_draw(g.background)
|
||||
# g.context.present(g.console)
|
||||
g.sdl_renderer.copy(g.console_render.render(g.console))
|
||||
|
||||
g.sdl_renderer.copy(g.console_render.render(g.background))
|
||||
|
||||
# g.sdl_renderer.copy(g.console_render.render(g.foreground))
|
||||
g.foreground.blit(g.background, fg_alpha=1.0, bg_alpha=0.0)
|
||||
g.sdl_renderer.copy(g.console_render.render(g.background))
|
||||
g.sdl_renderer.present()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue