Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateOperation = updateOperation{}
UpdateOperation is an operation that does not change the texture, but signals that it should be considered ready.
Functions ¶
func GreenFill ¶
GreenFill fills the texture with green color. Can be used as a PainterOperation using OperationFunc(GreenFill).
func ResetScreen ¶
Types ¶
type BgRectangle ¶
type BgRectangle struct {
X1, Y1, X2, Y2 int
}
type Loop ¶
type Loop struct { Receiver Receiver MsgQueue messageQueue // contains filtered or unexported fields }
Loop implements an event loop to create a texture obtained by executing PainterOperations received from an internal queue.
func (*Loop) Post ¶
func (l *Loop) Post(op PainterOperation)
type OperationFunc ¶
OperationFunc is used to convert a texture update function to a PainterOperation.
type PainterOperation ¶
type PainterOperationList ¶
type PainterOperationList []PainterOperation
PainterOperationList groups a list of operations into one.
Click to show internal directories.
Click to hide internal directories.