Cubism Core API Reference

Updated: 08/17/2023

The Cubism Core API Reference PDF, which is available on this page,

covers the role, usage, and API specifications of the Live2D Cubism Core in the Live2D Cubism SDK for Native.

Target

  • Live2D Cubism SDK for Native users
  • Those considering implementing wrappers to call Core from other languages (Java, Python, etc.)
  • Those who are considering incorporating the software into other programs or platforms, such as game engines

Functional Classification of Core and Framework

The following diagram illustrates the relationship between Application, Core, and Framework and the roles of their functions.

Core is used by both Application and Framework.

What is Core?

Core is a library with APIs necessary to handle models (.moc3 files) created using Cubism 3 or later Editors. The features are described below.

  • The API is written in C.
  • Core does not allocate and destroy memory by itself. Since the required amount of memory is requested by Core, the user must allocate the specified amount and pass it to Core.
  • Drawing functions are not included. The Core’s role is to calculate vertex information according to the model’s parameters, and the user gets the calculated vertex information and information necessary for rendering (UV, opacity, etc.) from the Core.

The above features make the design highly portable and platform-independent.

Japanese Version PDF File

Download: Cubism Core API Reference for Japanese Version (2.85 MB)

[Last updated 08/17/2023 r12]

Update history

Date of update Version number Type Contents
2023/08/17 r12 Add Added information on Cubism 5.
2023/03/10 r11 Add Added description of the function to validate MOC3.
2022/07/07 r10 Add Added description of the function to retrieve parameter types.
Add Added description of the function to retrieve the parent parts of an ArtMesh.
Add A description of versions that can be obtained was updated in “moc3 file version” and “csmGetMocVersion.”
2022/05/19 r9 Add Added explanations related to Multiply Color and Screen Color.
Added explanation related to obtaining information on keys set in parameters.
2021/02/26 r8 Revision Added explanation for the existence of Drawable with 0 in csmGetDrawableIndexCounts.
Revision Added explanation that in some cases valid addresses are not stored in csmGetDrawableIndices.
2019/09/04 r7 Revision Adjusted notation for Cubism Core and Cubism SDK.
2019/08/01 r6 Add Added constant for moc3 file version.
Added snippet with addition of ConstantFlag element.
Added explanation of flags for mask inversion.
Added description of mask inversion function.
Added an Available Version field to individual APIs.
Revision Typographical error correction.
2019/02/12 r5 Add Added information on how to check file version. 
Add Added API description of csmGetLatestMocVersion. 
Add Added API description of csmGetMocVersion. 
Add Added CoreVersion notation to which API for cmGetPartParentPartIndices was added. 
2018/12/20 r4 Add “About moc3 file versions” was added.
Add “Get Parent Part of Part” was added.
Add A description of API of “csmGetPartParentPartIndices” was added.
Revision Corrected typos and omissions. Modified wording to avoid ambiguity.
2018/07/11 r3 Revision Corrected typos and omissions.
Revision Modified wording to avoid ambiguity.
Revision Detailed modification of the drawing method specification regarding the drawing method and access to the mask.
Revision Fixed a mistake in the API list where some arguments were marked with const.
2018/05/18 r2 Revision Typographical error correction.
Add Added information about the characteristics of the information obtained by cmGetDrawableVertexPositions.
2018/03/27 r1 New New

English PDF File

Download : English Cubism Core API Reference(2.71MB)

[Last Update 2023/08/17 r12]

Change log

Update day Version Update Type Content
2023/08/17 r12 Added Added information on Cubism 5.
2023/03/10 r11 Added Added description of the function to validate MOC3.
2022/07/07 r10 Added Added description of the function to get parameter types.
Added Added description of the function to get parent parts of ArtMeshes.
Added Updated obtained versions in “File version of moc3” and “csmGetMocVersion”.
2022/05/19 r9 Added Added explanations related to multiply colors and screen colors.
Added explanations related to obtaining information on keys set in parameters.
2021/03/01 r8 Fixed Added an explanation for the existence of Drawables with a count of 0 in csmGetDrawableIndexCounts.
Fixed Added explanation of the case where csmGetDrawableIndices does not store valid addresses.
2019/09/04 r7 Fixed Adjusted notation of “Cubism Core” and “Cubism SDK”
2019/08/01 r6 Added Added a constant stands for moc3 file version
Added a snippet since the ConstantFlag element has added
Added a description of the Inverted Mask flag
Added a description of the Inverted Mask function
Added an item stands for the available version of each API
Fixed Typo fixes
2019/02/26 r5 Added Added “File version of moc3” 
Added Added “Getting the parent parts of the parts” 
Added Added the API description of csmGetLatestMocVersion
Added Added the API description of csmGetMocVersion
Added Added the API description of csmGetPartParentPartIndices 
2018/07/20 r3 Corrected Corrected errors of snipet
Corrected Corrected vague expression
Corrected Corrected omissions of letter in snipet
Corrected Corrected vague expression
Corrected Corrected mistake that const is included in notation of arguments.
Corrected Added more detailed explanation about rendering method of mask and how to access it
2018/06/14 r2 translation translation to English from Japanese
Was this article helpful?
YesNo
Please let us know what you think about this article.