Exemplo n.º 1
0
    public Writer(Program program, BoWriter<? super DrawVert> writer) {
      mProgram = program;
      mVertWriter = writer;
      mVao = new Vao(mVbo, null);

      program.init(mDraw);
      writer.attributes(mVao);
    }
Exemplo n.º 2
0
 @Override
 protected void freeObject() {
   mProgram.dispose(mDraw);
   mVao.dispose(mDraw);
 }