コード例 #1
0
        protected virtual unsafe global::Java.Nio.IntBuffer Decode(global::Java.Nio.IntBuffer p0, global::Java.Nio.IntBuffer p1, global::Java.Nio.IntBuffer p2)
        {
            if (id_decode_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_ == IntPtr.Zero)
            {
                id_decode_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_ = JNIEnv.GetMethodID(class_ref, "decode", "(Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/nio/IntBuffer;");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                global::Java.Nio.IntBuffer __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Java.Nio.IntBuffer> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_decode_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Java.Nio.IntBuffer> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "decode", "(Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;)Ljava/nio/IntBuffer;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
コード例 #2
0
        static IntPtr n_Decode_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_Ljava_nio_IntBuffer_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Org.Jcodec.Common.Dct.IntDCT __this = global::Java.Lang.Object.GetObject <global::Org.Jcodec.Common.Dct.IntDCT> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Java.Nio.IntBuffer           p0     = global::Java.Lang.Object.GetObject <global::Java.Nio.IntBuffer> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Java.Nio.IntBuffer           p1     = global::Java.Lang.Object.GetObject <global::Java.Nio.IntBuffer> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Java.Nio.IntBuffer           p2     = global::Java.Lang.Object.GetObject <global::Java.Nio.IntBuffer> (native_p2, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Decode(p0, p1, p2));

            return(__ret);
        }
コード例 #3
0
 public static unsafe global::Java.Nio.IntBuffer GetFaceNormalIndices(global::JavaGl.Obj.IReadableObj obj)
 {
     if (id_getFaceNormalIndices_Lde_javagl_obj_ReadableObj_ == IntPtr.Zero)
     {
         id_getFaceNormalIndices_Lde_javagl_obj_ReadableObj_ = JNIEnv.GetStaticMethodID(class_ref, "getFaceNormalIndices", "(Lde/javagl/obj/ReadableObj;)Ljava/nio/IntBuffer;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(obj);
         global::Java.Nio.IntBuffer __ret = global::Java.Lang.Object.GetObject <global::Java.Nio.IntBuffer> (JNIEnv.CallStaticObjectMethod(class_ref, id_getFaceNormalIndices_Lde_javagl_obj_ReadableObj_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
 public static unsafe int LoadTextureAsBitmap(global::Java.Nio.IntBuffer data, global::Android.Hardware.Camera.Size size, int usedTexId)
 {
     if (id_loadTextureAsBitmap_Ljava_nio_IntBuffer_Landroid_hardware_Camera_Size_I == IntPtr.Zero)
     {
         id_loadTextureAsBitmap_Ljava_nio_IntBuffer_Landroid_hardware_Camera_Size_I = JNIEnv.GetStaticMethodID(class_ref, "loadTextureAsBitmap", "(Ljava/nio/IntBuffer;Landroid/hardware/Camera$Size;I)I");
     }
     try {
         JValue *__args = stackalloc JValue [3];
         __args [0] = new JValue(data);
         __args [1] = new JValue(size);
         __args [2] = new JValue(usedTexId);
         int __ret = JNIEnv.CallStaticIntMethod(class_ref, id_loadTextureAsBitmap_Ljava_nio_IntBuffer_Landroid_hardware_Camera_Size_I, __args);
         return(__ret);
     } finally {
     }
 }
コード例 #5
0
ファイル: JavaGl.Obj.Objs.cs プロジェクト: Xeanor-V/Terminal
 public static unsafe global::JavaGl.Obj.IObj CreateFromIndexedTriangleData(global::Java.Nio.IntBuffer indices, global::Java.Nio.FloatBuffer vertices, global::Java.Nio.FloatBuffer texCoords, global::Java.Nio.FloatBuffer normals)
 {
     if (id_createFromIndexedTriangleData_Ljava_nio_IntBuffer_Ljava_nio_FloatBuffer_Ljava_nio_FloatBuffer_Ljava_nio_FloatBuffer_ == IntPtr.Zero)
     {
         id_createFromIndexedTriangleData_Ljava_nio_IntBuffer_Ljava_nio_FloatBuffer_Ljava_nio_FloatBuffer_Ljava_nio_FloatBuffer_ = JNIEnv.GetStaticMethodID(class_ref, "createFromIndexedTriangleData", "(Ljava/nio/IntBuffer;Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;)Lde/javagl/obj/Obj;");
     }
     try {
         JValue *__args = stackalloc JValue [4];
         __args [0] = new JValue(indices);
         __args [1] = new JValue(vertices);
         __args [2] = new JValue(texCoords);
         __args [3] = new JValue(normals);
         global::JavaGl.Obj.IObj __ret = global::Java.Lang.Object.GetObject <global::JavaGl.Obj.IObj> (JNIEnv.CallStaticObjectMethod(class_ref, id_createFromIndexedTriangleData_Ljava_nio_IntBuffer_Ljava_nio_FloatBuffer_Ljava_nio_FloatBuffer_Ljava_nio_FloatBuffer_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
コード例 #6
0
 public static unsafe void GetFaceNormalIndices(global::JavaGl.Obj.IReadableObj obj, global::Java.Nio.IntBuffer target)
 {
     if (id_getFaceNormalIndices_Lde_javagl_obj_ReadableObj_Ljava_nio_IntBuffer_ == IntPtr.Zero)
     {
         id_getFaceNormalIndices_Lde_javagl_obj_ReadableObj_Ljava_nio_IntBuffer_ = JNIEnv.GetStaticMethodID(class_ref, "getFaceNormalIndices", "(Lde/javagl/obj/ReadableObj;Ljava/nio/IntBuffer;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(obj);
         __args [1] = new JValue(target);
         JNIEnv.CallStaticVoidMethod(class_ref, id_getFaceNormalIndices_Lde_javagl_obj_ReadableObj_Ljava_nio_IntBuffer_, __args);
     } finally {
     }
 }