Login  Register

Re: Why does JOGL use Instances of GLContext / GL* instead of exposing a Static API?

Posted by jmaasing on Mar 12, 2015; 12:20pm
URL: https://forum.jogamp.org/Why-does-JOGL-use-Instances-of-GLContext-GL-instead-of-exposing-a-Static-API-tp4034144p4034145.html

This: "In JOGL, we do track certain states" is enough motivation to do it the JOGL-way. Even if OpenGL was stateless (which it isn't) JOGL can still be stateful and should use the Java/OO-way of keeping state, i.e. instance a class.
Using TLS to simulate OO in an OO-language is just silly