The idea is to abstract the components of JOGL and LWJGL renderer in a more general OpenGL renderer.
The benefit of doing this are the following ;
- ensure JOGL and LWJGL renderer supports the same features,
- ease the development of these by avoiding a bug to be fixed in one and not in the other,
- allow to easily implement new OpenGL renderer later (I’m thinking of SWT OpenGL which seems to have the benefit to be nearly compilable by GCJ),
- ease the development of new features on the existing renderers.
The trade off is that it will make the calls to OpenGL go through one more abstraction layer (I think this has no footprint since these type of calls should be flattened by all JIT compilers).
What do you think ?
If you agree with this enhancement, I can try to implement it.
I’m not sure this is the right place to post this since it’s a bit more on the internal core than on the use of Xith3D library. Tell me if I should move this post elsewhere.
Thanks.
Vincent
