Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compositor ¶
type Compositor struct {
// contains filtered or unexported fields
}
func NewCompositor ¶
func NewCompositor(rect image.Rectangle, numLayers int) *Compositor
func (*Compositor) Bounds ¶
func (c *Compositor) Bounds() image.Rectangle
func (*Compositor) Clear ¶
func (c *Compositor) Clear()
func (*Compositor) Draw ¶
func (c *Compositor) Draw(screen *ebiten.Image, opts *ebiten.DrawImageOptions)
type ImageNode ¶
type ImageNode struct {
Image *ebiten.Image
}
func (*ImageNode) Draw ¶
func (n *ImageNode) Draw(compositor *Compositor, opts *ebiten.DrawImageOptions)
type Node ¶
type Node interface {
Draw(compositor *Compositor, opts *ebiten.DrawImageOptions)
}
func ImageWithAnimation ¶
func ImageWithFrame ¶
func ImageWithOrigin ¶
type OptionsNode ¶
func (*OptionsNode) Draw ¶
func (n *OptionsNode) Draw(compositor *Compositor, opts *ebiten.DrawImageOptions)
type TextAnchor ¶
type TextAnchor int
const ( TextAnchorLeft TextAnchor = 0b0000 TextAnchorCenter TextAnchor = 0b0001 TextAnchorRight TextAnchor = 0b0010 TextAnchorTop TextAnchor = 0b1000 TextAnchorMiddle TextAnchor = 0b0100 TextAnchorBottom TextAnchor = 0b0000 )
type TextNode ¶
type TextNode struct { Anchor TextAnchor Face font.Face Text string }
func (*TextNode) Draw ¶
func (n *TextNode) Draw(compositor *Compositor, opts *ebiten.DrawImageOptions)
Click to show internal directories.
Click to hide internal directories.