예제 #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);
    }
예제 #2
0
 @Override
 protected void freeObject() {
   mProgram.dispose(mDraw);
   mVao.dispose(mDraw);
 }