Sign in to follow this  

JOGL getGL issue, Basic

Recommended Posts

Probably a simple resolution to this one. I'm trying to do some slight porting of an app written in Java with JOGL on Linux. I'm working in Eclipse with JOGL setup on Windows. I've managed to get all the import errors worked out, but I'm having a very basic compile error: In my reshape method, the compiler compains that the line final GL gl = gLDrawable.getGL(); (where glDrawable is the GLDrawable passed to reshape) is calling a method undefined for type GLDrawable. A look at the Java docs revelas that indeed getGL is not defined for the interface - however, this is how I got references to the GL and GLU objects on Linux. What's the difference on Windows? Or is my setup just not correct? Mike

Share this post

Link to post
Share on other sites
isnt this the old version of JOGL?
maybe you have installed a new version on win. there are some interface-changes are applied.
i am working with the new version and it should be like this:

public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)

(in the new version, you can get the GL by GLU.getCurrentGL() )

i think, the old version is still availabe for windows...


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this