Java 开放式GL2 ES图像片段的选择

Java 开放式GL2 ES图像片段的选择,java,android,android-ndk,java-native-interface,opengl-es-2.0,Java,Android,Android Ndk,Java Native Interface,Opengl Es 2.0,我有一个用于在GLSurfaceView上渲染OpenGL图像的so库。该库包含一个以矩形为参数的方法。我如何为OpenGL图像的选择片段(部分)制作仪器? 使用此库渲染图像的代码: public void onDrawFrame(GL10 gl) { if (mLoaded != true && mWidth != 0 && mHeight != 0) { mContextCreated = true; CloudJNI.

我有一个用于在GLSurfaceView上渲染OpenGL图像的so库。该库包含一个以矩形为参数的方法。我如何为OpenGL图像的选择片段(部分)制作仪器? 使用此库渲染图像的代码:

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);
        }
    }
}

1) 更清楚地说明“如何为OpenGL图像的选定片段(部分)制作工具”的含义。仪器什么?单词fragment在OpenGL 2中有一组含义。如果库是开源的,请为OpenGL图像的选择区域提供一个链接。不,库不是开源的。