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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -