16 lines
389 B
Go
16 lines
389 B
Go
package gui
|
|
|
|
import (
|
|
"tuxpa.in/t/erm/app/darktile/gui/render"
|
|
)
|
|
|
|
// Draw renders the terminal GUI to the ebtien window. Required to implement the ebiten interface.
|
|
func (g *GUI) Draw(screen *ebiten.Image) {
|
|
render.New(screen, g.terminal, g.fontManager, g.popupMessages, g.opacity, g.enableLigatures, g.cursorImage).
|
|
Draw()
|
|
|
|
if g.screenshotRequested {
|
|
g.takeScreenshot(screen)
|
|
}
|
|
}
|