erm/app/darktile/gui/draw.go

16 lines
389 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
package gui
import (
2023-01-16 02:11:07 +00:00
"tuxpa.in/t/erm/app/darktile/gui/render"
2021-07-30 22:29:20 +00:00
)
// Draw renders the terminal GUI to the ebtien window. Required to implement the ebiten interface.
func (g *GUI) Draw(screen *ebiten.Image) {
2023-01-16 02:11:07 +00:00
render.New(screen, g.terminal, g.fontManager, g.popupMessages, g.opacity, g.enableLigatures, g.cursorImage).
Draw()
2021-07-30 22:29:20 +00:00
if g.screenshotRequested {
g.takeScreenshot(screen)
2021-07-30 22:29:20 +00:00
}
}