Beispiel #1
0
        public bool InitMeshGL()
        {
            mKeyframeTexture_GL_ID  = RenderUtils.loadTextureFromByteBuffer(mKeyframeTextureByteBuffer, mKeyframeTextureDims[0], mKeyframeTextureDims[1]);
            mIconBusyTexture_GL_ID  = RenderUtils.loadTextureFromByteBuffer(mIconBusyTextureByteBuffer, mIconBusyTextureDims[0], mIconBusyTextureDims[1]);
            mIconPlayTexture_GL_ID  = RenderUtils.loadTextureFromByteBuffer(mIconPlayTextureByteBuffer, mIconPlayTextureDims[0], mIconPlayTextureDims[1]);
            mIconErrorTexture_GL_ID = RenderUtils.loadTextureFromByteBuffer(mIconErrorTextureByteBuffer, mIconErrorTextureDims[0], mIconErrorTextureDims[1]);

            mKeyframe_Program_GL_ID = RenderUtils.createProgramFromShaderSrc(VERTEX_SHADER, KEYFRAME_FRAGMENT_SHADER);
            mVideo_Program_GL_ID    = RenderUtils.createProgramFromShaderSrc(VERTEX_SHADER, VIDEO_FRAGMENT_SHADER);

            mVideoTexture_GL_ID = RenderUtils.createVideoTexture();

            bool canFullscreen = true;

            if (mPikkartVideoPlayer != null)
            {
                if (mPikkartVideoPlayer.setupSurfaceTexture(mVideoTexture_GL_ID))
                {
                    canFullscreen = false;
                }
                mPikkartVideoPlayer.load(mMovieUrl, canFullscreen, mAutostart, mSeekPosition);
            }

            _glLoaded = true;
            return(true);
        }
 public bool InitMeshGL()
 {
     mTexture_GL_ID = RenderUtils.loadTextureFromByteBuffer(texture, textureDims[0], textureDims[1]);
     mProgram_GL_ID = RenderUtils.createProgramFromShaderSrc(MESH_VERTEX_SHADER, MESH_FRAGMENT_SHADER);
     _glLoaded      = true;
     return(true);
 }