matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
494 stars 71 forks source link

Sphere shape lacks member methods for radius ,sections and rings. #40

Closed sasmaster closed 10 years ago

sasmaster commented 10 years ago

Hi Guys.I have been playing with the lib and testing shapes notices that Sphere parametarization is possible to setup only through constructor.Is it possible also to have public member method ?

Thanks,.

matus-chochlik commented 10 years ago

Done in 02b714c81dbdaf544f76c445dc44b402d7b7d06c

But generally if you need to generate several sets of vertex attributes for spheres (or any other shape) with various parameters, I'd recommend to always create a new shape generator instance.