paint method
void
paint(
- DiTreDiConfig config,
- DiTreDiController controller,
- PaintViewPort viewPort,
- Group3D model,
- Matrix4 matrix,
- int vertexIndex,
- Float32List zIndices,
- Int32List colors,
- 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();
}
}