I found 6 different ways to draw a basic circle in modern OpenGL (using the Qt framework).
- the discard statement of the fragment shader
- the stencil buffer
- the QPainter
- the triangle-fan primitve
- mapping a texture which contains an image of a circle to a quad
- point sprites
Edit:They are intended to be used as particle like objects in simulation application e.g. game of life, moving organisms ect. also beeing compatible with a colision detection.
- I would like to know, which is the 'best' way to draw a circle?
- What method has the best performance?
- Are there other reasons then performance to choose between those?
- Are there even better ways to draw circles given 3.?