SFML community forums

Help => Graphics => Topic started by: Hey on September 06, 2019, 07:39:47 pm

Title: Drawing points
Post by: Hey on September 06, 2019, 07:39:47 pm
Hello everyone, I am trying to draw around 10,000 points. So instead of calling window.draw(...) 10,000 times I was thinking of putting into a vertex array, and drawing with single draw call.

But how can I increase the point size? I know the OpenGL function that does this, which is glPointSize(...). But is there another way?

Here is a example image: https://imgur.com/Va6GYXK (https://imgur.com/Va6GYXK)
Title: Re: Drawing points
Post by: Paul on September 09, 2019, 09:56:14 am
You can use quads instead of points.
Title: Re: Drawing points
Post by: Nexus on September 11, 2019, 06:43:12 pm
SFML doesn't let you draw bigger points directly.

Multiple options: