setD method

  1. @override
RlRenderBatchD setD(
  1. RlRenderBatchD o
)
override

Copies the fields of o into this instance and returns this.

Implementation

@override
RlRenderBatchD setD(RlRenderBatchD o) {
  bufferCount = o.bufferCount;
  currentBuffer = o.currentBuffer;
  vertexBuffer = o.vertexBuffer.map((e) => e.clone()).toList();
  draws = o.draws.map((e) => e.clone()).toList();
  drawCounter = o.drawCounter;
  currentDepth = o.currentDepth;
  return this;
}