Monday, 27 May 2013

Library for generating primitive shapes?

Library for generating primitive shapes?

I'm looking for a library to generate the data for primitive shapes for opengl. I have lights, and I simply wants to draw a sphere to represent the lights transform in the world
I do not want a library that draws it though, I want to control all openGL-related API calls myself (so, freeGLUT is Not what Im looking for), I simply want to generate the vertices, normals, etc for a mesh shape at runtime (a cube, sphere, etc).
Is there any nice, minimal library that can do this task? If not, what is the alghoritm for generating vertices for a sphere-shape?
Thanks

No comments:

Post a Comment