Code example for IntBuffer

Methods: get

0
            LogHelper.w("no mips in texture data. Interrupting."); 
        } 
         
        IntBuffer textureBuf = NpByteBuffer.allocateDirectNativeInt(1);
 
        gl.glGenTextures(1, textureBuf);
 
        int textureID = textureBuf.get(0);
 
        if (textureID == 0) {
            LogHelper.i("Generated TextureID == 0"); 
            return 0; 
        } 
 
        LogHelper.i("textureID == " + textureID);
         
        gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);
 
        gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, 
                           mHeader.getMagFilter());
        gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER,