Not all methods can be used

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Not all methods can be used

Thomas1983
Hi,
i´m beginner with jogl, i set up an eclipse project and draw a simple line on the screen which works fine. So it seems the lib has been set up correctly without any missing dll or sth. But by going on further i need some function e.g. in the GL packacke i cant us just like GL.getString(GL_...). Making an static import didnt work. In the package explorer of eclipse the methods are shown and i can attach the source but it doesnt help. How can I use these gl.... methods?
Reply | Threaded
Open this post in threaded view
|

Re: Not all methods can be used

Wade Walker
Administrator
This sounds more like a problem with your Eclipse setup or your project code. If you already have a working JOGL project that draws a line, you should be able to import and use anything from JOGL. Are you sure you're not trying to import something that doesn't exist in JOGL? Perhaps you're looking at wrong/old documentation on the web.
Reply | Threaded
Open this post in threaded view
|

Re: Not all methods can be used

gouessej
Administrator
In reply to this post by Thomas1983
Hello

Wade is probably right. You're probably trying to use a non static method as a static method. JOGL doesn't work that way, it's explained in this article:
https://jogamp.org/wiki/index.php?title=Why_Instance_Design

Please look at our API documentation:
https://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/index.html?overview-summary.html

Please look at my rudimentary example:
https://jogamp.org/wiki/index.php/Rudimentary_standalone_example_using_the_fixed_pipeline_by_Julien_Gouesse
Julien Gouesse | Personal blog | Website