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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -