Hello,
Looking for some advice here. I have a hang up with having my code work both with LWJGL and JOGL. However I am completly stuck with creating a generic interface to both. Is there anything really wrong with just creating an interface with all the gl commands I will use? Somehow I have in my head that that won’t work that great seems a waste of having methods that only call one line, but that is the best way to generically call gl methods and have total flexibility.
For example I want an interface called Renderable that has the method render(GLContext), now GLContext will be the interface and will have all the gl methods that I need on it. Then obviously I have an LWJGL or JOGL class that will create an appropriate GLContext. I am probably not making any sense and should just go with LWJGL but anyone have any advice?
