texture setting 썸네일형 리스트형 [Android Opengl es 2.0 ] Texture Setting. /// // Load texture from resource // private int loadTexture ( InputStream is ,int texId) { /* * Create our texture. This has to be done each time the * surface is created. */ int[] textures = new int[1]; if(texId == 0) GLES20.glGenTextures(1, textures, 0); else textures[0] = texId; int mTextureID = textures[0]; GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextureID); GLES20.glTexParameterf(GLES2.. 더보기 이전 1 다음