MCPcopy Create free account
hub / github.com/defold/defold / CreateModels

Function CreateModels

engine/modelc/src/modelimporter_jni.cpp:293–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static void CreateModels(JNIEnv* env, dmModelImporter::jni::TypeInfos* types, const dmModelImporter::Scene* scene, const dmArray<jobject>& materials, dmArray<jobject>& models)
294{
295 uint32_t count = scene->m_Models.Size();
296 models.SetCapacity(count);
297 models.SetSize(count);
298
299 for (uint32_t i = 0; i < count; ++i)
300 {
301 const Model* model = &scene->m_Models[i];
302 models[model->m_Index] = CreateModel(env, types, materials, model);
303 }
304}
305
306// **************************************************
307// Animations

Callers 1

CreateJavaSceneFunction · 0.85

Calls 4

CreateModelFunction · 0.85
SizeMethod · 0.45
SetCapacityMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected