Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. //Texture
  2.         int[] textureNames = new int[1];
  3.         GLES20.glGenTextures(1, textureNames, 0);
  4.         GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
  5.         GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureNames[0]);
  6.         GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);
  7.         GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);
  8.         GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_CLAMP_TO_EDGE);
  9.         GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE);
  10.         GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bmp, 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement