On Wed, Mar 28, 2012 at 9:38 AM, No Idea <kiithsa...@gmail.com> wrote: > As discussed on IRC yesterday, I propose a major OpenGL refactor > as a project instead. > > The goal of this project would be to separate all OpenGL code > into a separate subsystem consisting of multiple classes. > Maybe even a separate namespace? (Stellarium doesn't seem > to use namespaces - should I just put the code into > a separate directory? - I'd like all "video" code to be in one place) > > This would have an implementation-independent API, > as is common in various game engines, > so that there could be separate implementations for > e.g. GL1, GL2, but, in future, it'd be also easy to add > GL3/4 or GLES. (even a SW renderer or D3D I guess). > > Note that I don't propose any new functionality, just a rewrite > of what's already there. However, it should be easier to > build on the refactored code, add support for e.g VBOs, > and also to look for bugs and optimization opportunities.
Note that there has been some work in that direction - some of the original OpenGL code has been replaced with Qt's OpenGL painting methods. OpenGL ES is already supported due to Fabien's smartphone port. Bogdan ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Stellarium-pubdevel mailing list Stellarium-pubdevel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel