Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResetOp = Reset{}
ResetOp операція очищує вікно
View Source
var UpdateOp = Update{}
UpdateOp операція, яка не змінює текстуру, але сигналізує, що текстуру потрібно розглядати як готову.
Functions ¶
This section is empty.
Types ¶
type Loop ¶
type Loop struct {
Receiver Receiver
// contains filtered or unexported fields
}
Loop реалізує цикл подій для формування текстури, отриманої через виконання операцій із внутрішньої черги.
func (*Loop) Post ¶
func (eventLoop *Loop) Post(operations OperationList)
Post додає нову операцію у внутрішню чергу.
type MessageQueue ¶
type MessageQueue struct {
// contains filtered or unexported fields
}
MessageQueue — черга повідомлень
func (*MessageQueue) Pull ¶
func (messageQueue *MessageQueue) Pull() Operation
func (*MessageQueue) Push ¶
func (messageQueue *MessageQueue) Push(operation Operation)
type Operation ¶
type Operation interface {
Update(state *State)
}
Operation змінює вхідну текстуру.
Click to show internal directories.
Click to hide internal directories.