Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateScreen ¶
func CreateScreen() (tcell.Screen, error)
CreateScreen generates a ready to use screen. The screen has no cursor and doesn't support mouse eventing.
func DrawFilledRectangle ¶
func DrawFilledRectangle(screen tcell.Screen, xStart, yStart, width, height int, style tcell.Style)
DrawFilledRectangle draws a rectangle with the specified style. This removes all runes previously written into the target area of the rectangle.
Types ¶
type Renderer ¶
type Renderer struct { }
Renderer draws the state.GameSession onto a tcell.Screen. While the Renderer can hold state, it's recommended to keep it as state free as possible.
func (*Renderer) Draw ¶
func (renderer *Renderer) Draw(screen tcell.Screen, session *state.GameSession)
Draw renders the passed state.GameSession onto the passed tcell.Screen.
Click to show internal directories.
Click to hide internal directories.