gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_STENCIL_BUFFER_BIT);
// check if we need to highlight pixels which are inside the polygon
if (this.insideOutsideTest) {
// push the current color
gl.glPushAttrib(GL2.GL_CURRENT_BIT);
gl.glPointSize(3);
gl.glBegin(GL.GL_POINTS);
for (int y = 0; y < this.canvas.getHeight(); y++) {
for (int x = 0; x < this.canvas.getWidth(); x++) {
if (this.shapes[selectedShapeIndex].isInside(x, y))