Documentation
¶
Index ¶
- type Core
- func (c *Core) GetCanvasInfo(modelPtr uintptr) (size drawable.Vector2, origin drawable.Vector2, pixelsPerUnit float32)
- func (c *Core) GetDrawables(modelPtr uintptr) (ds []drawable.Drawable)
- func (c *Core) GetDynamicFlags(modelPtr uintptr) (rs []drawable.DynamicFlag)
- func (c *Core) GetOpacities(modelPtr uintptr) (rs []float32)
- func (c *Core) GetParameterValue(modelPtr uintptr, id string) float32
- func (c *Core) GetParameters(modelPtr uintptr) (parameters []parameter.Parameter)
- func (c *Core) GetPartIds(modelPtr uintptr) (ids []string)
- func (c *Core) GetSortedDrawableIndices(modelPtr uintptr) (rs []int)
- func (c *Core) GetVersion() string
- func (c *Core) GetVertexPositions(modelPtr uintptr) (vps [][]drawable.Vector2)
- func (c *Core) LoadMoc(path string) (moc moc.Moc, err error)
- func (c *Core) SetParameterValue(modelPtr uintptr, id string, value float32)
- func (c *Core) SetPartOpacity(modelPtr uintptr, id string, value float32)
- func (c *Core) Update(modelPtr uintptr)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func (*Core) GetCanvasInfo ¶
func (c *Core) GetCanvasInfo(modelPtr uintptr) (size drawable.Vector2, origin drawable.Vector2, pixelsPerUnit float32)
Get the canvas info
func (*Core) GetDrawables ¶
Get Drawables Since all the information is gathered, the cost is high. It is expected to be called only once initially
func (*Core) GetDynamicFlags ¶
func (c *Core) GetDynamicFlags(modelPtr uintptr) (rs []drawable.DynamicFlag)
Get dynamic flags
func (*Core) GetOpacities ¶
Get opacities
func (*Core) GetParameterValue ¶
Get parameter value
func (*Core) GetParameters ¶
Get parameters
func (*Core) GetPartIds ¶
Get the part IDs
func (*Core) GetSortedDrawableIndices ¶
Get the drawing order The index of the n-th drawable to be drawn can be obtained with rs[n].
func (*Core) GetVertexPositions ¶
Get vertex positions
func (*Core) SetParameterValue ¶
Set parameter value
func (*Core) SetPartOpacity ¶
Set the part's opacity
Click to show internal directories.
Click to hide internal directories.