paint method

  1. @override
void paint(
  1. DiTreDiConfig config,
  2. DiTreDiController controller,
  3. PaintViewPort viewPort,
  4. Group3D model,
  5. Matrix4 matrix,
  6. int vertexIndex,
  7. Float32List zIndices,
  8. Int32List colors,
  9. Float32List vertices,
)
inherited

Fills the buffer with the Model3D data.

Implementation

@override
void paint(
    DiTreDiConfig config,
    DiTreDiController controller,
    PaintViewPort viewPort,
    Group3D model,
    Matrix4 matrix,
    int vertexIndex,
    Float32List zIndices,
    Int32List colors,
    Float32List vertices) {
  var counter = 0;
  for (var figure in model.figures) {
    figure.paint(
      config,
      controller,
      viewPort,
      figure,
      matrix,
      vertexIndex + counter,
      zIndices,
      colors,
      vertices,
    );
    counter += figure.verticesCount();
  }
}