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

Function C2J_CreateSamplerPtrArray

engine/modelc/src/jni/Modelimporter_jni.cpp:824–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822 return arr;
823}
824jobjectArray C2J_CreateSamplerPtrArray(JNIEnv* env, TypeInfos* types, const Sampler* const* src, uint32_t src_count) {
825 if (src == 0 || src_count == 0) return 0;
826 jobjectArray arr = env->NewObjectArray(src_count, types->m_SamplerJNI.cls, 0);
827 for (uint32_t i = 0; i < src_count; ++i) {
828 jobject obj = C2J_CreateSampler(env, types, src[i]);
829 env->SetObjectArrayElement(arr, i, obj);
830 env->DeleteLocalRef(obj);
831 }
832 return arr;
833}
834jobjectArray C2J_CreateTextureArray(JNIEnv* env, TypeInfos* types, const Texture* src, uint32_t src_count) {
835 if (src == 0 || src_count == 0) return 0;
836 jobjectArray arr = env->NewObjectArray(src_count, types->m_TextureJNI.cls, 0);

Callers

nothing calls this directly

Calls 1

C2J_CreateSamplerFunction · 0.85

Tested by

no test coverage detected