core

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 NewCore

func NewCore(lib uintptr) (c *Core, err error)

func (*Core) GetCanvasInfo

func (c *Core) GetCanvasInfo(modelPtr uintptr) (size drawable.Vector2, origin drawable.Vector2, pixelsPerUnit float32)

キャンバスの情報を取得する

func (*Core) GetDrawables

func (c *Core) GetDrawables(modelPtr uintptr) (ds []drawable.Drawable)

Drawablesを取得する すべての情報を集めるので、コストが高い。初回のみ呼び出す想定

func (*Core) GetDynamicFlags

func (c *Core) GetDynamicFlags(modelPtr uintptr) (rs []drawable.DynamicFlag)

動的フラグを取得する

func (*Core) GetOpacities

func (c *Core) GetOpacities(modelPtr uintptr) (rs []float32)

透明度を取得する

func (*Core) GetParameterValue

func (c *Core) GetParameterValue(modelPtr uintptr, id string) float32

パラメータの値を取得する

func (*Core) GetParameters

func (c *Core) GetParameters(modelPtr uintptr) (parameters []parameter.Parameter)

パラメータの一覧を取得する

func (*Core) GetPartIds

func (c *Core) GetPartIds(modelPtr uintptr) (ids []string)

パーツのIDを取得する

func (*Core) GetSortedDrawableIndices

func (c *Core) GetSortedDrawableIndices(modelPtr uintptr) (rs []int)

描画順を取得する n番目に描画するDrawableのインデックスは rs[n] で取得できる

func (*Core) GetVersion

func (c *Core) GetVersion() string

バージョンを取得する

func (*Core) GetVertexPositions

func (c *Core) GetVertexPositions(modelPtr uintptr) (vps [][]drawable.Vector2)

頂点を取得する

func (*Core) LoadMoc

func (c *Core) LoadMoc(path string) (moc moc.Moc, err error)

moc3をロードしてmoc.Mocを返す

func (*Core) SetParameterValue

func (c *Core) SetParameterValue(modelPtr uintptr, id string, value float32)

パラメータの値を設定する

func (*Core) SetPartOpacity

func (c *Core) SetPartOpacity(modelPtr uintptr, id string, value float32)

パーツの不透明度を設定する

func (*Core) Update

func (c *Core) Update(modelPtr uintptr)

モデルを更新する

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL