Single point line (two verteces on top of each other) = NO POINT DRAWN ?

5 views
Skip to first unread message

Skybuck Flying

unread,
Apr 30, 2022, 11:44:34 AMApr 30
to
Code is currently:

with TOpenGLAPIVersion110 do
begin
// render ray
glLineWidth( 1 );
glBegin(GL_LINES);

// begin of ray is dark gray
glColor3f( 0.25, 0.25, 0.25 );
glVertex2f( mRay.Start.X, mRay.Start.Y);

glColor3f( 0.75, 0.75, 0.75 );
glVertex2f( mRay.Stop.X, mRay.Stop.Y);

glEnd();
end;

When x,y,z coordinates of Ray.Start is equal to those of Ray.Stop OpenGL does not draw a "point".

Why is this ?

Are the end points of lines "not inclusive" ?

Bye,
Skybuck.
Reply all
Reply to author
Forward
0 new messages