The method createGLCanvas is undefined for the type GLDrawableFactory

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

The method createGLCanvas is undefined for the type GLDrawableFactory

Hot-Chip
Hello, i have a little problem with jogl. I receive the error-message thats written in my topic subject for this line:

GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas( glCaps );

I installed/set up my jogl by changing the CLASSPATH and PATH variables. Is it possible that this problem occurs because i set up jogl in the wrong way? Importing Classes works fine with this line for example:

Import javax.media.opengl.*;

I'm using Jogl version 1.1.1.
Maybe it's a common problem and you can help me. :)

English isn't my motherlanguage, so if something seems to be wired i try to explain it in another way.

greetings

EDIT: I just tried the gears-demo and it's working fine, so I think I set up everything properly.

 
Reply | Threaded
Open this post in threaded view
|

Re: The method createGLCanvas is undefined for the type GLDrawableFactory

Sven Gothel
Administrator
On Sunday, July 04, 2010 19:54:21 Hot-Chip [via jogamp] wrote:
>
> Hello, i have a little problem with jogl. I receive the error-message thats
> written in my topic subject for this line:
>
> GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas( glCaps );
>

I don't know to which version of JOGL you are referring to,
but the current one is completly platform/os windowing toolkit agnostic.

The current GLDrawableFactory can only create a GLDrawable
based on a NativeWindow, which includes the capabilities and maybe on or offscreen.

http://jogamp.org/git/?p=jogl.git;a=blob;f=src/jogl/classes/javax/media/opengl/GLDrawableFactory.java;h=81c7d4b4a37633f72f7973b94f98f3daf62f8a06;hb=HEAD#l195


> I installed/set up my jogl by changing the CLASSPATH and PATH variables. Is
> it possible that this problem occurs because i set up jogl in the wrong way?
> Importing Classes works fine with this line for example:
>
> Import javax.media.opengl.*;
>
> Maybe it's a common problem and you can help me. :)

It's your use of the API, ie what you try to use doesn't exist (any more - maybe).

>
> English isn't my motherlanguage, so if something seems to be wired i try to
> explain it in another way.

Your english is just fine, np.

Please check the current API,
the jogl-demos and maybe you want to have a look at Michael's JOGL -> JOGL2 conversion guide,
looks at his blog.

~Sven

>
> greetings