示例#1
0
 public DrawStream(int bufSize) {
   mVertBuf = DrawUtil.alloc(bufSize);
   // 12 is smallest possible vert size.
   // 6/4 is the max ration between indices and verts (for drawing quads)
   // 4 at the end is bytes per index.
   mIndBuf = DrawUtil.alloc(bufSize / 12 * 6 / 4 * 4);
 }