checking out the java glxgears source… i see that all of the opengl functions and constants are prefixed with either gl. or GL.
for reasons such as portability and just personal esthetic preferences, i’m interested in means by which to use jogl as you would use opengl within your standard C type environment, or that is plane glFunction GL_CONSTANT syntax.
i’ve been informed that it should be possible to link to the jogl library “staticly” so that the constants should not require a GL. prefix or otherwise.
and i see that the gl. prefixes in the gears demo are really member selectors for the class responsible for ‘canvas’ type targets. that is “drawables” / contexts etc.
so it should be possible to use global wrapping functions to wrap the current rendering context so that functions can be used without the ever present virtually redundant prefix.
basicly i would prefer the opengl syntax look like native opengl as much as possible.
and my general query is… is there a better way to go about this?
and if not has anyone already produced a wrapper library for doing this for the functions?
my apologies if this suggestion offends anyone’s sensibilities.
sincerely,
michael