Esempio n. 1
0
//        E/AndroidRuntime( 1880): java.lang.UnsatisfiedLinkError: No implementation found for void HybridGLES3JNIActivity.NDK.GLES3JNILib.init() (tried
//E/AndroidRuntime( 1880):        at HybridGLES3JNIActivity.NDK.GLES3JNILib.init(Native Method)
//E/AndroidRuntime( 1880):        at HybridGLES3JNIActivity.Activities.GLES3JNIView_Renderer.onSurfaceCreated(GLES3JNIView_Renderer.java:39)
//E/AndroidRuntime( 1880):        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1539)
//E/AndroidRuntime( 1880):        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1278)



        static void init(JNIEnv env, jobject obj)
        {
            ConsoleExtensions.tracei("enter init, call createES3Renderer");

            g_renderer = RendererES3.createES3Renderer();
            // here we are storing a pointer in native heap. why is oculus sending it back to java world??

            //resize =
        }
//        E/AndroidRuntime( 1880): java.lang.UnsatisfiedLinkError: No implementation found for void HybridGLES3JNIActivity.NDK.GLES3JNILib.init() (tried
//E/AndroidRuntime( 1880):        at HybridGLES3JNIActivity.NDK.GLES3JNILib.init(Native Method)
//E/AndroidRuntime( 1880):        at HybridGLES3JNIActivity.Activities.GLES3JNIView_Renderer.onSurfaceCreated(GLES3JNIView_Renderer.java:39)
//E/AndroidRuntime( 1880):        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1539)
//E/AndroidRuntime( 1880):        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1278)

     

        static void init(JNIEnv env, jobject obj)
        {
            ConsoleExtensions.tracei("enter init, call createES3Renderer");

            g_renderer = RendererES3.createES3Renderer();
            // here we are storing a pointer in native heap. why is oculus sending it back to java world??

            //resize =
        }
Esempio n. 3
0
        public static RendererES3 createES3Renderer()
        {
            var renderer = new RendererES3();

            if (!renderer.init())
            {
                //stdlib_h.free(renderer);
                return(null);
            }
            return(renderer);
        }
        public static RendererES3 createES3Renderer()
        {
            var renderer = new RendererES3();

            if (!renderer.init())
            {
                //stdlib_h.free(renderer);
                return null;
            }
            return renderer;
        }