Code example for GL10

Methods: glFrustumfglLoadIdentityglMatrixModeglViewport

    public void onSurfaceChanged(GL10 gl, int w, int h) {
        gl.glViewport(0, 0, w, h);
        * Set our projection matrix. This doesn't have to be done 
        * each time we draw, but usually a new projection needs to 
        * be set when the viewport is resized. 
        float ratio = (float) w / h;
        gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
    private Context mContext;
    private Triangle mTriangle;
    private int mTextureID;
Stop searching for code, let great code find you!  Add Codota to your java IDE