Documentation ¶
Index ¶
- Variables
- type Command
- type Loop
- type Object
- type Sprite
- func (sprite *Sprite) Draw(time int64, batch *render.SpriteBatch)
- func (sprite *Sprite) GetAlpha() float64
- func (sprite *Sprite) GetColor() mgl32.Vec3
- func (sprite *Sprite) GetEndTime() int64
- func (sprite *Sprite) GetLoad() float64
- func (sprite *Sprite) GetPosition() bmath.Vector2d
- func (sprite *Sprite) GetRotation() float64
- func (sprite *Sprite) GetScale() bmath.Vector2d
- func (sprite *Sprite) GetStartTime() int64
- func (sprite *Sprite) GetZIndex() int64
- func (sprite *Sprite) SetAdditive(on bool)
- func (sprite *Sprite) SetAlpha(alpha float64)
- func (sprite *Sprite) SetColor(color mgl32.Vec3)
- func (sprite *Sprite) SetHFlip(on bool)
- func (sprite *Sprite) SetPosition(vec bmath.Vector2d)
- func (sprite *Sprite) SetRotation(rad float64)
- func (sprite *Sprite) SetScale(vec bmath.Vector2d)
- func (sprite *Sprite) SetVFlip(on bool)
- func (sprite *Sprite) Update(time int64)
- type Storyboard
- func (storyboard *Storyboard) BGFileUsed() bool
- func (storyboard *Storyboard) Draw(time int64, batch *render.SpriteBatch)
- func (storyboard *Storyboard) GetLoad() float64
- func (storyboard *Storyboard) GetProcessedSprites() int
- func (storyboard *Storyboard) GetQueueSprites() int
- func (storyboard *Storyboard) GetTotalSprites() int
- func (storyboard *Storyboard) IsWideScreen() bool
- func (storyboard *Storyboard) Update(time int64)
- type StoryboardLayer
- type Transformations
Constants ¶
This section is empty.
Variables ¶
View Source
var Origin = map[string]bmath.Vector2d{ "0": bmath.NewVec2d(-1, -1), "TopLeft": bmath.NewVec2d(-1, -1), "1": bmath.NewVec2d(0, 0), "Centre": bmath.NewVec2d(0, 0), "2": bmath.NewVec2d(-1, 0), "CentreLeft": bmath.NewVec2d(-1, 0), "3": bmath.NewVec2d(1, -1), "TopRight": bmath.NewVec2d(1, -1), "4": bmath.NewVec2d(0, 1), "BottomCentre": bmath.NewVec2d(0, 1), "5": bmath.NewVec2d(0, -1), "TopCentre": bmath.NewVec2d(0, -1), "7": bmath.NewVec2d(1, 0), "CentreRight": bmath.NewVec2d(1, 0), "8": bmath.NewVec2d(-1, 1), "BottomLeft": bmath.NewVec2d(-1, 1), "9": bmath.NewVec2d(1, 1), "BottomRight": bmath.NewVec2d(1, 1), }
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object interface { Update(time int64) Draw(time int64, batch *render.SpriteBatch) GetLoad() float64 GetStartTime() int64 GetEndTime() int64 GetZIndex() int64 GetPosition() bmath.Vector2d SetPosition(vec bmath.Vector2d) GetScale() bmath.Vector2d SetScale(vec bmath.Vector2d) GetRotation() float64 SetRotation(rad float64) GetColor() mgl32.Vec3 SetColor(color mgl32.Vec3) GetAlpha() float64 SetAlpha(alpha float64) SetHFlip(on bool) SetVFlip(on bool) SetAdditive(on bool) }
type Sprite ¶
type Sprite struct {
// contains filtered or unexported fields
}
func (*Sprite) GetEndTime ¶
func (*Sprite) GetPosition ¶
func (*Sprite) GetRotation ¶
func (*Sprite) GetStartTime ¶
func (*Sprite) SetAdditive ¶
func (*Sprite) SetPosition ¶
func (*Sprite) SetRotation ¶
type Storyboard ¶
type Storyboard struct {
// contains filtered or unexported fields
}
func NewStoryboard ¶
func NewStoryboard(beatMap *beatmap.BeatMap) *Storyboard
func (*Storyboard) BGFileUsed ¶
func (storyboard *Storyboard) BGFileUsed() bool
func (*Storyboard) Draw ¶
func (storyboard *Storyboard) Draw(time int64, batch *render.SpriteBatch)
func (*Storyboard) GetLoad ¶
func (storyboard *Storyboard) GetLoad() float64
func (*Storyboard) GetProcessedSprites ¶
func (storyboard *Storyboard) GetProcessedSprites() int
func (*Storyboard) GetQueueSprites ¶
func (storyboard *Storyboard) GetQueueSprites() int
func (*Storyboard) GetTotalSprites ¶
func (storyboard *Storyboard) GetTotalSprites() int
func (*Storyboard) IsWideScreen ¶
func (storyboard *Storyboard) IsWideScreen() bool
func (*Storyboard) Update ¶
func (storyboard *Storyboard) Update(time int64)
type StoryboardLayer ¶
type StoryboardLayer struct {
// contains filtered or unexported fields
}
func NewStoryboardLayer ¶
func NewStoryboardLayer() *StoryboardLayer
func (*StoryboardLayer) Add ¶
func (layer *StoryboardLayer) Add(object Object)
func (*StoryboardLayer) Draw ¶
func (layer *StoryboardLayer) Draw(time int64, batch *render.SpriteBatch)
func (*StoryboardLayer) FinishLoading ¶
func (layer *StoryboardLayer) FinishLoading()
func (*StoryboardLayer) GetLoad ¶
func (layer *StoryboardLayer) GetLoad() (sum float64)
func (*StoryboardLayer) Update ¶
func (layer *StoryboardLayer) Update(time int64)
type Transformations ¶
type Transformations struct {
// contains filtered or unexported fields
}
func NewTransformations ¶
func NewTransformations(obj Object) *Transformations
func (*Transformations) Add ¶
func (trans *Transformations) Add(command *Command)
func (*Transformations) Finalize ¶
func (trans *Transformations) Finalize()
func (*Transformations) Update ¶
func (trans *Transformations) Update(time int64)
Click to show internal directories.
Click to hide internal directories.