MCPcopy Create free account
hub / github.com/axmolengine/axmol / LoadAssets

Method LoadAssets

tests/live2d-tests/Source/LAppModel.cpp:111–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void LAppModel::LoadAssets(const csmChar* dir, const csmChar* fileName)
112{
113 _modelHomeDir = dir;
114
115 if (_debugMode)LAppPal::PrintLog("[APP]load model setting: %s", fileName);
116
117 csmSizeInt size;
118 const csmString path = csmString(dir) + fileName;
119
120 csmByte* buffer = CreateBuffer(path.GetRawString(), &size);
121 ICubismModelSetting* setting = new CubismModelSettingJson(buffer, size);
122 DeleteBuffer(buffer, path.GetRawString());
123
124 SetupModel(setting);
125
126 CreateRenderer();
127
128 SetupTextures();
129}
130
131
132void LAppModel::SetupModel(ICubismModelSetting* setting)

Callers 1

ChangeSceneMethod · 0.80

Calls 4

csmStringClass · 0.85
CreateBufferFunction · 0.85
DeleteBufferFunction · 0.85
GetRawStringMethod · 0.45

Tested by

no test coverage detected