Good topic, Paul. On 2/5/2010 9:02 AM, Paul Martz wrote: > There's the topic of centralization. I've proposed moving all OpenGL > function pointers an related initialization into a single class. Among > other reasons, this would make it easier for future developers to ensure > that they're implementing feature query and initialization consistent > with OSG's best practice. But Robert has expressed disagreement with > this approach (again, see the thread "OpenGL capture/logging in OSG"). > So for now, any type of new system we implement for feature querying and > initialization will need to be cut and pasted across several source files.
I would be in support of _some_ centralization. I feel like maybe we could put generic support code for this system in one place, and somehow call it from wherever it was needed. Could we somehow come up with a template that did the dirty work for us, and just employ the template in a distributed fashion? A basic template could do everything most situation would need, and maybe a more advanced and customizable template with some sort of callback or functor could be employed in situations that needed to go beyond the simple case? > Finally, another thing to consider is replacing our existing feature > query infrastructure with something like GLEW. GLEW is lightweight, > easily extensible, and already handles much of what we need for GL > feature support. But we have discussed this in the past, and if I > remember correctly Robert was opposed to GLEW on the grounds of the new > third party dependency it would require. I'm not wholly opposed to GLEW. http://glew.sourceforge.net/ I agree about more dependencies, but I also dislike re-inventing the wheel. I know GLEW is attaining popular support, and the new OpenGL SuperBible uses it extensively (funny joke!). So, it's not something that's a relative unknown. -- Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com PixelSense Landsat processing now available! http://www.alphapixel.com/demos/ "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

