Documentation
¶
Index ¶
- Constants
- Variables
- func Run(scene *Scene, config RunConfig) error
- func SetPolygonPoints(n *Node, pts []Vec2)
- type Atlas
- type ClickContext
- type Color
- type DragContext
- type EaseFunc
- type FXAAConfig
- type FontFamily
- type FontFamilyConfig
- type HitRect
- type HitShape
- type MouseButton
- type Node
- type PointerContext
- type RunConfig
- type Scene
- type TestRunner
- type TextAlign
- type TextBlock
- type TextureRegion
- type TweenConfig
- type TweenGroup
- type Vec2
- type Vertex
Constants ¶
View Source
const ( MouseButtonLeft = willow.MouseButtonLeft MouseButtonRight = willow.MouseButtonRight ModShift = willow.ModShift TextAlignLeft = willow.TextAlignLeft TextAlignCenter = willow.TextAlignCenter TextAlignRight = willow.TextAlignRight )
Variables ¶
View Source
var ( WhitePixel = willow.WhitePixel DefaultFXAAConfig = willow.DefaultFXAAConfig )
Functions ¶
func SetPolygonPoints ¶
Types ¶
type Atlas ¶
func NewBatchAtlas ¶
func NewBatchAtlas() *Atlas
type ClickContext ¶
type ClickContext = willow.ClickContext
type Color ¶
func ColorFromHSV ¶
type DragContext ¶
type DragContext = willow.DragContext
type FXAAConfig ¶
type FXAAConfig = willow.FXAAConfig
type FontFamily ¶
type FontFamily = willow.FontFamily
func NewFontFamilyFromFontBundle ¶
func NewFontFamilyFromFontBundle(data []byte) (*FontFamily, error)
func NewFontFamilyFromTTF ¶
func NewFontFamilyFromTTF(config FontFamilyConfig) (*FontFamily, error)
type FontFamilyConfig ¶
type FontFamilyConfig = willow.FontFamilyConfig
type MouseButton ¶
type MouseButton = willow.MouseButton
type Node ¶
func NewContainer ¶
func NewPolygon ¶
func NewSprite ¶
func NewSprite(name string, region TextureRegion) *Node
func NewText ¶
func NewText(name, content string, font *FontFamily) *Node
type PointerContext ¶
type PointerContext = willow.PointerContext
type TestRunner ¶
type TestRunner = willow.TestRunner
func LoadTestScript ¶
func LoadTestScript(data []byte) (*TestRunner, error)
type TextureRegion ¶
type TextureRegion = willow.TextureRegion
type TweenConfig ¶
type TweenConfig = willow.TweenConfig
type TweenGroup ¶
type TweenGroup = willow.TweenGroup
func TweenAlpha ¶
func TweenAlpha(n *Node, alpha float64, config TweenConfig) *TweenGroup
func TweenPosition ¶
func TweenPosition(n *Node, toX, toY float64, config TweenConfig) *TweenGroup
Click to show internal directories.
Click to hide internal directories.