GenuineSounds

GL11 AF

Jul 31st, 2011
319
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.     public void bindTexture(final int i) {
  2.         if (i < 0) {
  3.             return;
  4.         } else {
  5.             GL11.glBindTexture(3553 /* GL_TEXTURE_2D */, i);
  6.             final FloatBuffer maxAF = BufferUtils.createFloatBuffer(16);
  7.             maxAF.rewind();
  8.             GL11.glGetFloat(EXTTextureFilterAnisotropic.GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, maxAF);
  9.             GL11.glTexParameterf(3553, EXTTextureFilterAnisotropic.GL_TEXTURE_MAX_ANISOTROPY_EXT, maxAF.get(0));
  10.             return;
  11.         }
  12.     }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment