Skip to main content

Crate live2d_cubism_core_sys

Crate live2d_cubism_core_sys 

Source
Expand description

Raw FFI bindings to the Live2D Cubism SDK Core (v5).

These bindings correspond to Live2DCubismCore.h (SDK v5). All functions are unsafe — see the Cubism SDK documentation for usage.

§Memory Alignment

Structs§

csmMoc
Opaque Cubism moc handle.
csmModel
Opaque Cubism model handle.
csmVector2
2-component vector (X, Y).
csmVector4
4-component vector (X, Y, Z, W).

Constants§

ALIGN_OF_MOC
Required alignment for moc memory (bytes).
ALIGN_OF_MODEL
Required alignment for model memory (bytes).
BLEND_ADDITIVE
BLEND_COLOR_DID_CHANGE
BLEND_MULTIPLICATIVE
DRAW_ORDER_DID_CHANGE
IS_DOUBLE_SIDED
IS_INVERTED_MASK
IS_VISIBLE
MOC_VERSION_30
MOC_VERSION_33
MOC_VERSION_40
MOC_VERSION_42
MOC_VERSION_50
MOC_VERSION_53
MOC_VERSION_UNKNOWN
OPACITY_DID_CHANGE
PARAMETER_TYPE_BLEND_SHAPE
PARAMETER_TYPE_NORMAL
RENDER_ORDER_DID_CHANGE
VERTEX_POSITIONS_DID_CHANGE
VISIBILITY_DID_CHANGE

Functions§

csmGetDrawableBlendModes
SDK v5: explicit blend mode per drawable.
csmGetDrawableConstantFlags
csmGetDrawableCount
csmGetDrawableDrawOrders
csmGetDrawableDynamicFlags
csmGetDrawableIds
csmGetDrawableIndexCounts
csmGetDrawableIndices
csmGetDrawableMaskCounts
csmGetDrawableMasks
csmGetDrawableMultiplyColors
csmGetDrawableOpacities
csmGetDrawableParentPartIndices
csmGetDrawableScreenColors
csmGetDrawableTextureIndices
csmGetDrawableVertexCounts
csmGetDrawableVertexPositions
csmGetDrawableVertexUvs
csmGetLatestMocVersion
csmGetLogFunction
csmGetMocVersion
csmGetOffscreenBlendModes
csmGetOffscreenConstantFlags
csmGetOffscreenCount
csmGetOffscreenMaskCounts
csmGetOffscreenMasks
csmGetOffscreenMultiplyColors
csmGetOffscreenOpacities
csmGetOffscreenOwnerIndices
csmGetOffscreenScreenColors
csmGetParameterCount
csmGetParameterDefaultValues
csmGetParameterIds
csmGetParameterKeyCounts
csmGetParameterKeyValues
csmGetParameterMaximumValues
csmGetParameterMinimumValues
csmGetParameterRepeats
csmGetParameterTypes
csmGetParameterValues
csmGetPartCount
csmGetPartIds
csmGetPartOffscreenIndices
csmGetPartOpacities
csmGetPartParentPartIndices
csmGetRenderOrders
SDK v5: model-level render orders (replaces csmGetDrawableRenderOrders).
csmGetSizeofModel
csmGetVersion
csmHasMocConsistency
csmInitializeModelInPlace
csmReadCanvasInfo
csmResetDrawableDynamicFlags
csmReviveMocInPlace
csmSetLogFunction
csmUpdateModel

Type Aliases§

csmFlags
Bitfield flags.
csmLogFunction
Log handler function pointer.
csmMocVersion
Moc file format version.
csmParameterType
Parameter type.
csmVersion
Cubism version identifier.