Documentation ¶
Index ¶
- Variables
- func DirOf(i interface{}) string
- func Load(filepath, baseFilename string, files map[string][]byte) *obj.Decoder
- type ActionId
- type ActionOccurrence
- type AnimationId
- type IDrawable
- type INode
- type NodeSpec
- type Sequence
- func (s *Sequence) Add(c float32)
- func (s *Sequence) Counter() float32
- func (s *Sequence) CounterFactor() float32
- func (s *Sequence) CounterLimit() float32
- func (s *Sequence) CurrentStep() int
- func (s *Sequence) IsActiveAnimation(v AnimationId) bool
- func (s *Sequence) PollActions() []*ActionOccurrence
- func (s *Sequence) Reset()
- func (s *Sequence) Running() bool
- func (s *Sequence) Start()
- func (s *Sequence) Stop()
- func (s *Sequence) Stopping() bool
- type SequenceId
- type Step
- type Transform
- type TransformStep
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MeterScaleFactor float32 = 1 / 1.26 GlobalScaleFactor float32 = 0.01 X2 = &Transform{Scale: &math32.Vector3{2, 2, 2}} X3 = &Transform{Scale: &math32.Vector3{3, 3, 3}} X4 = &Transform{Scale: &math32.Vector3{4, 4, 4}} X5 = &Transform{Scale: &math32.Vector3{5, 5, 5}} X6 = &Transform{Scale: &math32.Vector3{6, 6, 6}} X7 = &Transform{Scale: &math32.Vector3{7, 7, 7}} X8 = &Transform{Scale: &math32.Vector3{8, 8, 8}} Xhalf = &Transform{Scale: &math32.Vector3{0.5, 0.5, 0.5}} Xthird = &Transform{Scale: &math32.Vector3{0.333, 0.333, 0.333}} Xquarter = &Transform{Scale: &math32.Vector3{0.25, 0.25, 0.25}} )
Functions ¶
Types ¶
type ActionOccurrence ¶
type INode ¶
type Sequence ¶
type Sequence struct {
// contains filtered or unexported fields
}
func (*Sequence) CounterFactor ¶
func (*Sequence) CounterLimit ¶
func (*Sequence) CurrentStep ¶
func (*Sequence) IsActiveAnimation ¶
func (s *Sequence) IsActiveAnimation(v AnimationId) bool
func (*Sequence) PollActions ¶
func (s *Sequence) PollActions() []*ActionOccurrence
type SequenceId ¶
type SequenceId string
type Step ¶
type Step struct {
// contains filtered or unexported fields
}
func NewStep ¶
func NewStep(startAtCounter float32, safeStart, safeStop bool, animations []AnimationId, actions []ActionId, transformSteps map[*Transform]*TransformStep) *Step
func (*Step) ApplyTransforms ¶
type Transform ¶
func NewTransform ¶
func NewTransform() *Transform
type TransformStep ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.