⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrixtrackinggl.java

📁 android 例子中的确良ApiDemos。很有代表意义
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
    }    public void glDrawTexxOES(int x, int y, int z, int width, int height) {        mgl11Ext.glDrawTexxOES(x, y, z, width, height);    }    public void glDrawTexxvOES(int[] coords, int offset) {        mgl11Ext.glDrawTexxvOES(coords, offset);    }    public void glDrawTexxvOES(IntBuffer coords) {        mgl11Ext.glDrawTexxvOES(coords);    }    public int glQueryMatrixxOES(int[] mantissa, int mantissaOffset,        int[] exponent, int exponentOffset) {        return mgl10Ext.glQueryMatrixxOES(mantissa, mantissaOffset,            exponent, exponentOffset);    }    public int glQueryMatrixxOES(IntBuffer mantissa, IntBuffer exponent) {        return mgl10Ext.glQueryMatrixxOES(mantissa, exponent);    }    // Unsupported GL11 methods    public void glBindBuffer(int target, int buffer) {        throw new UnsupportedOperationException();    }    public void glBufferData(int target, int size, Buffer data, int usage) {        throw new UnsupportedOperationException();    }    public void glBufferSubData(int target, int offset, int size, Buffer data) {        throw new UnsupportedOperationException();    }    public void glColor4ub(byte red, byte green, byte blue, byte alpha) {        throw new UnsupportedOperationException();    }    public void glDeleteBuffers(int n, int[] buffers, int offset) {        throw new UnsupportedOperationException();    }    public void glDeleteBuffers(int n, IntBuffer buffers) {        throw new UnsupportedOperationException();    }    public void glGenBuffers(int n, int[] buffers, int offset) {        throw new UnsupportedOperationException();    }    public void glGenBuffers(int n, IntBuffer buffers) {        throw new UnsupportedOperationException();    }    public void glGetBooleanv(int pname, boolean[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetBooleanv(int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetBufferParameteriv(int target, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetBufferParameteriv(int target, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetClipPlanef(int pname, float[] eqn, int offset) {        throw new UnsupportedOperationException();    }    public void glGetClipPlanef(int pname, FloatBuffer eqn) {        throw new UnsupportedOperationException();    }    public void glGetClipPlanex(int pname, int[] eqn, int offset) {        throw new UnsupportedOperationException();    }    public void glGetClipPlanex(int pname, IntBuffer eqn) {        throw new UnsupportedOperationException();    }    public void glGetFixedv(int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetFixedv(int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetFloatv(int pname, float[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetFloatv(int pname, FloatBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetLightfv(int light, int pname, float[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetLightfv(int light, int pname, FloatBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetLightxv(int light, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetLightxv(int light, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetMaterialfv(int face, int pname, float[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetMaterialfv(int face, int pname, FloatBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetMaterialxv(int face, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetMaterialxv(int face, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetTexEnviv(int env, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetTexEnviv(int env, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetTexEnvxv(int env, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetTexEnvxv(int env, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetTexParameterfv(int target, int pname, float[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetTexParameterfv(int target, int pname, FloatBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetTexParameteriv(int target, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetTexParameteriv(int target, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glGetTexParameterxv(int target, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glGetTexParameterxv(int target, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public boolean glIsBuffer(int buffer) {        throw new UnsupportedOperationException();    }    public boolean glIsEnabled(int cap) {        throw new UnsupportedOperationException();    }    public boolean glIsTexture(int texture) {        throw new UnsupportedOperationException();    }    public void glPointParameterf(int pname, float param) {        throw new UnsupportedOperationException();    }    public void glPointParameterfv(int pname, float[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glPointParameterfv(int pname, FloatBuffer params) {        throw new UnsupportedOperationException();    }    public void glPointParameterx(int pname, int param) {        throw new UnsupportedOperationException();    }    public void glPointParameterxv(int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glPointParameterxv(int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glPointSizePointerOES(int type, int stride, Buffer pointer) {        throw new UnsupportedOperationException();    }    public void glTexEnvi(int target, int pname, int param) {        throw new UnsupportedOperationException();    }    public void glTexEnviv(int target, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glTexEnviv(int target, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glTexParameterfv(int target, int pname, float[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glTexParameterfv(int target, int pname, FloatBuffer params) {        throw new UnsupportedOperationException();    }    public void glTexParameteri(int target, int pname, int param) {        throw new UnsupportedOperationException();    }    public void glTexParameterxv(int target, int pname, int[] params, int offset) {        throw new UnsupportedOperationException();    }    public void glTexParameterxv(int target, int pname, IntBuffer params) {        throw new UnsupportedOperationException();    }    public void glColorPointer(int size, int type, int stride, int offset) {        throw new UnsupportedOperationException();    }    public void glDrawElements(int mode, int count, int type, int offset) {        throw new UnsupportedOperationException();    }    public void glGetPointerv(int pname, Buffer[] params) {        throw new UnsupportedOperationException();    }    public void glNormalPointer(int type, int stride, int offset) {        throw new UnsupportedOperationException();    }    public void glTexCoordPointer(int size, int type, int stride, int offset) {        throw new UnsupportedOperationException();    }    public void glVertexPointer(int size, int type, int stride, int offset) {        throw new UnsupportedOperationException();    }    public void glCurrentPaletteMatrixOES(int matrixpaletteindex) {        throw new UnsupportedOperationException();    }    public void glLoadPaletteFromModelViewMatrixOES() {        throw new UnsupportedOperationException();    }    public void glMatrixIndexPointerOES(int size, int type, int stride,            Buffer pointer) {        throw new UnsupportedOperationException();    }    public void glMatrixIndexPointerOES(int size, int type, int stride,            int offset) {        throw new UnsupportedOperationException();    }    public void glWeightPointerOES(int size, int type, int stride,            Buffer pointer) {        throw new UnsupportedOperationException();    }    public void glWeightPointerOES(int size, int type, int stride, int offset) {        throw new UnsupportedOperationException();    }    /**     * Get the current matrix     */    public void getMatrix(float[] m, int offset) {        mCurrent.getMatrix(m, offset);    }    /**     * Get the current matrix mode     */    public int getMatrixMode() {        return mMatrixMode;    }    private void check() {        int oesMode;        switch (mMatrixMode) {        case GL_MODELVIEW:            oesMode = GL11.GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES;            break;        case GL_PROJECTION:            oesMode = GL11.GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES;            break;        case GL_TEXTURE:            oesMode = GL11.GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES;            break;        default:            throw new IllegalArgumentException("Unknown matrix mode");        }        if ( mByteBuffer == null) {            mCheckA = new float[16];            mCheckB = new float[16];            mByteBuffer = ByteBuffer.allocateDirect(64);            mByteBuffer.order(ByteOrder.nativeOrder());            mFloatBuffer = mByteBuffer.asFloatBuffer();        }        mgl.glGetIntegerv(oesMode, mByteBuffer.asIntBuffer());        for(int i = 0; i < 16; i++) {            mCheckB[i] = mFloatBuffer.get(i);        }        mCurrent.getMatrix(mCheckA, 0);        boolean fail = false;        for(int i = 0; i < 16; i++) {            if (mCheckA[i] != mCheckB[i]) {                Log.d("GLMatWrap", "i:" + i + " a:" + mCheckA[i]                + " a:" + mCheckB[i]);                fail = true;            }        }        if (fail) {            throw new IllegalArgumentException("Matrix math difference.");        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -