Documentation
¶
Index ¶
- Variables
- func GreenFill(t screen.Texture)
- func WhiteFill(t screen.Texture)
- type FigureRect
- type FigureT
- type Loop
- type Operation
- func MakeBgRectOp(state *State, x0, y0, x1, y1 float32) Operation
- func MakeFigureOp(state *State, x, y float32) Operation
- func MakeGreenFillOp(state *State) Operation
- func MakeMoveOp(state *State, x, y float32) Operation
- func MakeResetOp(state *State) Operation
- func MakeWhiteFillOp(state *State) Operation
- type OperationFunc
- type OperationList
- type Receiver
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateOp = updateOp{}
UpdateOp операція, яка не змінює текстуру, але сигналізує, що текстуру потрібно розглядати як готову.
Functions ¶
Types ¶
type Loop ¶
type Loop struct { Receiver Receiver // contains filtered or unexported fields }
Loop реалізує цикл подій для формування текстури отриманої через виконання операцій отриманих з внутрішньої черги.
func (*Loop) Start ¶
Start запускає цикл подій. Цей метод потрібно запустити до того, як викликати на ньому будь-які інші методи.
func (*Loop) StopAndWait ¶
func (l *Loop) StopAndWait()
StopAndWait сигналізує про необхідність завершити цикл та блокується до моменту його повної зупинки.
type Operation ¶
type Operation interface { // Do виконує зміну операції, повертаючи true, якщо текстура вважається готовою для відображення. Do(t screen.Texture) (ready bool) }
Operation змінює вхідну текстуру.
func MakeBgRectOp ¶
func MakeFigureOp ¶
func MakeGreenFillOp ¶
func MakeMoveOp ¶
func MakeResetOp ¶
func MakeWhiteFillOp ¶
type OperationFunc ¶
OperationFunc використовується для перетворення функції оновлення текстури в Operation.
Click to show internal directories.
Click to hide internal directories.