随笔分类 - OpenGL ES Framework
摘要:public class Vertices3 { final GL10 gl; final boolean hasColor; final boolean hasTexCoords; final int vertexSize; final IntBuffer vertices; final int[] tmpBuffer; final ShortBuffer indices; public Vertices3(GL10 gl, int maxVertices, int maxIndices, boolean hasC...
阅读全文
摘要:public class Vertices { private final boolean hasColor; private final boolean hasTexCoords; private final int vertexSize; private final FloatBuffer vertices; private final ShortBuffer indices; private final GL10 gl; public Vertices(GL10 gl, int maxVertices, int maxIndice...
阅读全文
摘要:用法:初始化后,在需要绑定的地方,比如onDrawFrame里边调用Texture.bind()函数。public class Texture { private String fileName; private AssetManager asset; private GL10 gl; private int minFilter; private int magFilter; private int textureId; public Texture(GL10 gl, AssetManager asset, String fil...
阅读全文
浙公网安备 33010602011771号