drawPoint method

void drawPoint(
  1. double x,
  2. double y
)

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);
}