Vibration of the object being drawn glPointSize(1)

Hi,

I’m starting an adventure with GLFW, I have not found anything on the subject in the OpenGL documentation, please explain the
if I draw an object using glPointSize( 2 ) is all right
if the parameter is one glPointSize( 1 ) the drawn objects start to vibrate slightly.

where is my mistake?
source code - testPoint

Best regards,

  • Rafał

Note that this is an OpenGL/graphics question rather than a GLFW one, so you may also want to ask on other more general forums if you don’t get a satisfactory answer here. Note that GL_POINTS are legacy OpenGL.

I’m not sure what you mean by vibrating slightly, does this occur with movement of the point, and are you certain your inputs to glOrtho or glVertex2i do not correspond to the observed movement? Note that the larger point size could simply be masking the effect.

Does your answer mean that you now understand the source of your problem and do not have any more questions?

Have you checked that your x, y values are not changing in a way which would cause what you see?