随笔分类 -  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... 阅读全文
posted @ 2012-01-09 14:02 LiLiNiuNiu 阅读(256) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2012-01-08 21:41 LiLiNiuNiu 阅读(480) 评论(0) 推荐(0)
摘要:用法:初始化后,在需要绑定的地方,比如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... 阅读全文
posted @ 2011-12-18 15:11 LiLiNiuNiu 阅读(563) 评论(0) 推荐(0)