Help-trig for sphere z points

BlitzMax Forums/BlitzMax OpenGL Programming/Help-trig for sphere z points

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you want triangle faces you can use this:
glBegin(GL_TRIANGLES)
  ' first triangle
  glVertex3f(0.0,1.0,0.0)
  glVertex3f(1.0,1.0,0.0)
  glVertex3f(1.0,0.0,0.0)
  ' second triangle
 glVertex3f ....
  etc...
glEnd()
If you want quads it's the same except you should use glBegin(GL_QUADS) and have 4 vertices defined per face.