Documentation
¶
Index ¶
- type Cubism
- type Drawable
- type Model
- func (m *Model) DisableAutoBlink()
- func (m *Model) EnableAutoBlink()
- func (m *Model) GetCore() core.Core
- func (m *Model) GetDrawable(id string) (d Drawable, err error)
- func (m *Model) GetDrawables() []Drawable
- func (m *Model) GetHitAreas() []model.HitArea
- func (m *Model) GetMoc() moc.Moc
- func (m *Model) GetMotionGroupNames() (names []string)
- func (m *Model) GetMotions(groupName string) []motion.Motion
- func (m *Model) GetOpacity() float32
- func (m *Model) GetParameterValue(id string) float32
- func (m *Model) GetParameters() []parameter.Parameter
- func (m *Model) GetSortedIndices() []int
- func (m *Model) GetTextures() []string
- func (m *Model) GetVersion() int
- func (m *Model) PlayMotion(groupName string, index int, loop bool) (id int)
- func (m *Model) SetParameterValue(id string, value float32)
- func (m *Model) StopMotion(id int)
- func (m *Model) Update(delta float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cubism ¶
type Cubism struct { // A function to load audio files LoadSound func(fp string) (s sound.Sound, err error) // contains filtered or unexported fields }
The main body of cubism-go
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
A model struct
func (*Model) GetDrawable ¶
Get the Drawable with the specified ID
func (*Model) GetMotionGroupNames ¶
Get the list of motion group names
func (*Model) GetMotions ¶
Get the list of motions in the group
func (*Model) GetParameterValue ¶
Get the value of the parameter
func (*Model) GetParameters ¶
Get the list of parameters
func (*Model) GetSortedIndices ¶
Get the sorted drawing order indices
func (*Model) PlayMotion ¶
Play a motion
func (*Model) SetParameterValue ¶
Set the value of the parameter
Click to show internal directories.
Click to hide internal directories.