摘要: 1 public class MyRenderer implements Renderer 2 { 3 FloatBuffer verticesBuffer; 4 private final int VERTEX_SIZE = (2 + 2) * 4; 5 private AssetManager asset; 6 private int textureID; 7 8 public MyRenderer(Context context) 9 {10 asset = context.getAssets();11 ... 阅读全文
posted @ 2011-12-17 15:59 LiLiNiuNiu 阅读(565) 评论(0) 推荐(0) 编辑
摘要: public class MyRenderer implements Renderer { FloatBuffer verticesBuffer; private final int VERTEX_SIZE = (2 + 4) * 4; @Override public void onDrawFrame(GL10 gl) { gl.glViewport(0, 0, 320, 480); gl.glClear(GL10.GL_COLOR_BUFFER_BIT); gl.glMatrixMode(GL10.GL_PROJEC... 阅读全文
posted @ 2011-12-17 13:39 LiLiNiuNiu 阅读(2173) 评论(0) 推荐(0) 编辑
摘要: 1 public class MyRenderer implements Renderer 2 { 3 FloatBuffer verticesBuffer; 4 5 @Override 6 public void onDrawFrame(GL10 gl) 7 { 8 gl.glViewport(0, 0, 320, 480); 9 gl.glClear(GL10.GL_COLOR_BUFFER_BIT);10 gl.glMatrixMode(GL10.GL_PROJECTION);11 g... 阅读全文
posted @ 2011-12-17 13:30 LiLiNiuNiu 阅读(827) 评论(0) 推荐(0) 编辑