Live2DPlayer¶
Player for drawing
Has the same interface as Live2DModel plus methods for drawing. Requires a Live2DDevice to create.
Members¶
Constructors¶
Methods¶
- clear
- load
- loadModel
- clone
- setScale
- getScale
- setMatrix
- render
- setVoiceValue
- setVoiceWeight
- setVoiceMode
- setBlinkingInterval
- setBlinkingSettings
- setBlinkingMode
- setMosaicParam
Live2DPlayer¶
Constructor
Arguments
| Arguments | Default | Description |
|---|---|---|
device |
|
Live2DDevice instance |
Description
Constructor
clear¶
Method
Description
Clears the contents
load¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
filename |
|
loadModel¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
model |
|
Live2DModel instance |
Description
Creates the player from a Live2DModel instance
Inherits the state of the loaded model.
clone¶
Method
Description
Duplicates the player
setScale¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
scale |
|
Description
Sets the display scale
getScale¶
Method
setMatrix¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
m11 |
|
|
m12 |
|
|
m13 |
|
|
m21 |
|
|
m22 |
|
|
m23 |
|
Description
Sets the display matrix
render¶
Method
Description
Renders the model. Drawing happens when called on an OpenGL context
setVoiceValue¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
voice |
|
setVoiceWeight¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
weight |
|
setVoiceMode¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
mode |
|
setBlinkingInterval¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
interal |
|
setBlinkingSettings¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
closing |
|
|
closed |
|
|
opening |
|
setBlinkingMode¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
mode |
|
setMosaicParam¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
x |
|
|
y |
|