Oliver Geyer - 2017-03-05

Hello,

if you create a TGLCanvas using GLSceneViewer- Width and Height eg. 400x400 like this:

  glc:=TGLCanvas.Create(GLSceneViewer1.Width, GLSceneViewer1.Height); {400x400}

Now let us say you want to plot a single pixel to each corner of this canvas.

you would use a code like this:

    PlotPixel(0,0);
    PlotPixel(399,0);
    PlotPixel(399,399);
    PlotPixel(0,399);

but in fact you have to code this, to make it work

    PlotPixel(0,1);
    PlotPixel(399,1);
    PlotPixel(399,400);
    PlotPixel(0,400);

It seems that PlotPixel uses 0 till (Widht-1) for horizontal range
but 1 till Height for vertical range.

is this a bug ?