drawPoint method
Draws a single point at the specified coordinates (x, y)
.
x
: The x-coordinate of the point.y
: The y-coordinate of the point.
Implementation
void drawPoint(double x, double y) {
_prepareRenderState(_PrimitiveType.points, texture: Texture.white);
_transfromAndAddVertices(x, y, 0, 0, _encodedColor);
}