-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from Live2D/develop
Update to Cubism 4 SDK for Native beta2
- Loading branch information
Showing
10 changed files
with
128 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
end_of_line = lf | ||
# TODO: Specify character set | ||
charset = unset | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{c,cpp,h,hpp}] | ||
charset = utf-8-bom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Explicitly declare files as LF | ||
*.cpp text eol=lf | ||
*.hpp text eol=lf | ||
*.txt text eol=lf | ||
*.md text eol=lf | ||
.editorconfig text eol=lf | ||
.gitattributes text eol=lf | ||
*.gitignore text eol=lf | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,117 +1,103 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
# includeパスの追加 | ||
include_directories(src) | ||
include_directories(../Core/include) | ||
|
||
|
||
# 各プラットフォーム共通ファイル | ||
# 各プラットフォーム共通ファイル | ||
set(commonfiles | ||
|
||
src/Effect/CubismBreath.cpp | ||
src/Effect/CubismEyeBlink.cpp | ||
src/Effect/CubismPose.cpp | ||
|
||
src/Id/CubismId.cpp | ||
src/Id/CubismIdManager.cpp | ||
|
||
src/Math/CubismMath.cpp | ||
src/Math/CubismMatrix44.cpp | ||
src/Math/CubismModelMatrix.cpp | ||
src/Math/CubismTargetPoint.cpp | ||
src/Math/CubismVector2.cpp | ||
src/Math/CubismViewMatrix.cpp | ||
|
||
src/Model/CubismModel.cpp | ||
src/Model/CubismModelUserData.cpp | ||
src/Model/CubismModelUserDataJson.cpp | ||
src/Model/CubismUserModel.cpp | ||
src/Model/CubismMoc.cpp | ||
|
||
src/Motion/CubismExpressionMotion.cpp | ||
src/Motion/CubismMotion.cpp | ||
src/Motion/CubismMotionJson.cpp | ||
src/Motion/CubismMotionManager.cpp | ||
src/Motion/CubismMotionQueueEntry.cpp | ||
src/Motion/CubismMotionQueueManager.cpp | ||
src/Motion/ACubismMotion.cpp | ||
|
||
src/Physics/CubismPhysicsJson.cpp | ||
src/Physics/CubismPhysics.cpp | ||
|
||
src/Rendering/CubismRenderer.cpp | ||
|
||
src/Type/csmRectF.cpp | ||
src/Type/csmString.cpp | ||
|
||
src/Utils/CubismDebug.cpp | ||
src/Utils/CubismJson.cpp | ||
src/Utils/CubismString.cpp | ||
|
||
src/CubismDefaultParameterId.cpp | ||
src/CubismFramework.cpp | ||
src/CubismModelSettingJson.cpp | ||
src/CubismCdiJson.cpp | ||
|
||
) | ||
|
||
if (${FRAMEWORK_SOURCE} MATCHES "D3D9" ) | ||
|
||
# ここにプロジェクトに追加するソースファイルを追加 DirectX9 | ||
|
||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories("${FRAMEWORK_DX9_INCLUDE_PATH}") | ||
|
||
set(Framework | ||
|
||
${commonfiles} | ||
|
||
src/Rendering/D3D9/CubismRenderer_D3D9.cpp | ||
src/Rendering/D3D9/CubismRenderState_D3D9.cpp | ||
src/Rendering/D3D9/CubismShader_D3D9.cpp | ||
src/Rendering/D3D9/CubismOffscreenSurface_D3D9.cpp | ||
src/CubismCdiJson.cpp) | ||
|
||
) | ||
if(${FRAMEWORK_SOURCE} MATCHES "D3D9") | ||
# ここにプロジェクトに追加するソースファイルを追加 DirectX9 | ||
|
||
elseif (${FRAMEWORK_SOURCE} MATCHES "D3D11" ) | ||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories(${FRAMEWORK_DX9_INCLUDE_PATH}) | ||
|
||
# ここにプロジェクトに追加するソースファイルを追加 DirectX11 | ||
set(Framework | ||
|
||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories("${FRAMEWORK_DX11_INCLUDE_PATH}") | ||
${commonfiles} | ||
|
||
set(Framework | ||
|
||
${commonfiles} | ||
|
||
src/Rendering/D3D11/CubismOffscreenSurface_D3D11.cpp | ||
src/Rendering/D3D11/CubismRenderer_D3D11.cpp | ||
src/Rendering/D3D11/CubismRenderState_D3D11.cpp | ||
src/Rendering/D3D11/CubismShader_D3D11.cpp | ||
src/Rendering/D3D9/CubismRenderer_D3D9.cpp | ||
src/Rendering/D3D9/CubismRenderState_D3D9.cpp | ||
src/Rendering/D3D9/CubismShader_D3D9.cpp | ||
src/Rendering/D3D9/CubismOffscreenSurface_D3D9.cpp) | ||
|
||
) | ||
elseif(${FRAMEWORK_SOURCE} MATCHES "D3D11") | ||
# ここにプロジェクトに追加するソースファイルを追加 DirectX11 | ||
|
||
else () | ||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories(${FRAMEWORK_DX11_INCLUDE_PATH}) | ||
|
||
# ここにプロジェクトに追加するソースファイルを追加 OpenGL | ||
set(Framework | ||
|
||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories("${FRAMEWORK_GLFW_PATH}") | ||
include_directories("${FRAMEWORK_GLEW_PATH}") | ||
${commonfiles} | ||
|
||
# プリプロセッサ定義の追加 | ||
add_definitions(${FRAMEWORK_DEFINITIOINS}) | ||
src/Rendering/D3D11/CubismOffscreenSurface_D3D11.cpp | ||
src/Rendering/D3D11/CubismRenderer_D3D11.cpp | ||
src/Rendering/D3D11/CubismRenderState_D3D11.cpp | ||
src/Rendering/D3D11/CubismShader_D3D11.cpp) | ||
else() | ||
# ここにプロジェクトに追加するソースファイルを追加 OpenGL | ||
|
||
set(Framework | ||
# アプリケーション側で設定したgl系のincludeパスをセットする | ||
include_directories(${FRAMEWORK_GLFW_PATH}) | ||
include_directories(${FRAMEWORK_GLEW_PATH}) | ||
|
||
${commonfiles} | ||
# プリプロセッサ定義の追加 | ||
add_definitions(${FRAMEWORK_DEFINITIOINS}) | ||
|
||
src/Rendering/OpenGL/CubismRenderer_OpenGLES2.cpp | ||
src/Rendering/OpenGL/CubismOffscreenSurface_OpenGLES2.cpp | ||
set(Framework | ||
|
||
) | ||
${commonfiles} | ||
|
||
endif () | ||
src/Rendering/OpenGL/CubismRenderer_OpenGLES2.cpp | ||
src/Rendering/OpenGL/CubismOffscreenSurface_OpenGLES2.cpp) | ||
endif() | ||
|
||
# staticライブラリとして追加 | ||
add_library (Framework STATIC ${Framework}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Cubism Native Framework | ||
# Cubism Native Framework | ||
|
||
Live2D Cubism 4 Editorで出力したモデルをアプリケーションで利用するためのフレームワークです。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters