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)
キャンバスの情報を取得する
func (*Core) GetDrawables ¶
Drawablesを取得する すべての情報を集めるので、コストが高い。初回のみ呼び出す想定
func (*Core) GetDynamicFlags ¶
func (c *Core) GetDynamicFlags(modelPtr uintptr) (rs []drawable.DynamicFlag)
動的フラグを取得する
func (*Core) GetParameterValue ¶
パラメータの値を取得する
func (*Core) GetParameters ¶
パラメータの一覧を取得する
func (*Core) GetSortedDrawableIndices ¶
描画順を取得する n番目に描画するDrawableのインデックスは rs[n] で取得できる
func (*Core) GetVertexPositions ¶
頂点を取得する
func (*Core) SetParameterValue ¶
パラメータの値を設定する
func (*Core) SetPartOpacity ¶
パーツの不透明度を設定する
Click to show internal directories.
Click to hide internal directories.