java - Selection of Open GL2 ES image fragment -
i have library render opengl image on glsurfaceview. library include method takes rectangle argument. how can instrument select fragment (portion) of opengl image ? code render image using library:
public void ondrawframe(gl10 gl) { if (mloaded != true && mwidth != 0 && mheight != 0) { mcontextcreated = true; cloudjni.init(); cloudjni.open(mfile); cloudjni.createrenderer(mwidth, mheight); mloaded = true; } if (mcontextcreated == true) { if (!cloudjni.renderframe()) { gles20.glclearcolor(0.0f, 1.0f, 0.0f, 0.0f); gles20.glclear(gles20.gl_color_buffer_bit); } } }
Comments
Post a Comment