writeInto method

  1. @override
void writeInto(
  1. RlRenderBatchC p
)
override

Writes all fields directly into the native struct reference p. For nested structs, use writeInto as well.

Implementation

@override
void writeInto(RlRenderBatchC p) {
  p.bufferCount = bufferCount;
  p.currentBuffer = currentBuffer;
  p.drawCounter = drawCounter;
  p.currentDepth = currentDepth;
  for (var i = 0; i < vertexBuffers.length; i++) {
    vertexBuffers[i].writeInto((p.vertexBuffer + i).ref);
  }
  for (var i = 0; i < draws.length; i++) {
    draws[i].writeInto((p.draws + i).ref);
  }
}