LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Morgrog on August 07, 2003, 00:15:43

Title: Weird problems when compiling the skeleton opengl code
Post by: Morgrog on August 07, 2003, 00:15:43
I get this error


Exception in thread "main" java.lang.Error: Unresolved compilation problem:
       The method swapBuffers() from the type BaseGL is not visible


Any ideas what causes this?

I can't wait to start coding with this great tool :D
Title: Weird problems when compiling the skeleton opengl code
Post by: Morgrog on August 07, 2003, 02:59:26
I mean using openGL skeleton code (http://www.lwjgl.org/documents/tutorials/opengl/skeleton_code.html) I get the following errors:

Error The method create(DisplayMode, boolean) is undefined for the type Display line 29
Error The constructor GL() is undefined   line 36
Error Return type for the method is missing line 54
Error The method swapBuffers() from the type BaseGL is not visible line 63
Error The method destroy() is undefined for the type Display line 134


What am I doing wrong here?  :roll:
Title: Weird problems when compiling the skeleton opengl code
Post by: bedelf on August 07, 2003, 04:14:29
Pretty sure the skeleton code is outdated, which I think is going to be updated soonish? What version of lwjgl are you using?

Try looking in the lwjgl examples stuff for working code.

edit: the docs in general are pretty scarce. I think it is part of the plan to beef that up a bit for 0.7, which is still just a pre-release. No idea on a timeframe here.
Title: Weird problems when compiling the skeleton opengl code
Post by: Matzon on August 07, 2003, 06:40:12
yeah, documentation is a bit stale :/

I have updated OAL to 0.7, but it hasn't been published yet.
Likewise, OGL should get an update too.

There was a timeframe for 0.7, but it got a bit squashed, since we decided to make 0.7 a really good release - we need to fix som bugs and add some more features (and remove some!). Generally we all feel that 0.7 is going to be a really good release!

As to when... it all depends - can't be more specific, but soon, and as fast as possible :roll:
Title: Weird problems when compiling the skeleton opengl code
Post by: vrm on August 07, 2003, 10:40:01
do't forget glu binding  :wink:
Title: Weird problems when compiling the skeleton opengl code
Post by: Morgrog on August 07, 2003, 12:19:11
I'm using 0.6 and I'm still new to this whole Java thing (eh, we all gotta start sometime;))

Glu binding? *dumbfounded look while drooling*

I tried compiling the examples from chman (http://chman-area.tuxfamily.org/) and had the same errors but maybe those are outdatted too...

The examples are only available if I download the source code right?


I can't wait to try that whole java/gl thing out :)
Title: Weird problems when compiling the skeleton opengl code
Post by: bedelf on August 07, 2003, 12:48:25
The chman stuff is still 0.5 I think? I dunno, I've been doing "other things" lately and really kinda waiting for 0.7 to play around some more.

I think the examples are a part of that media download, or at least the media zip is needed to run them properly, info about that is on the webpage somewhere I think, but I don't remember exactly how it worked. Finding the examples is probably your best bet at the moment, assuming they work. ;)
Title: Weird problems when compiling the skeleton opengl code
Post by: princec on August 07, 2003, 15:27:27
oooh, we're soooo close to getting 0.7 out :)
It's a loads better API now! And 100% secure now too.

Cas :)
Title: Weird problems when compiling the skeleton opengl code
Post by: cfmdobbie on August 07, 2003, 15:37:04
Excellent!  Work faster! :lol:

@Morgrog: While the website isn't always up-to-date, the examples included in the source archive should be the latest and greatest.  Ignore the skeleton OpenGL code and go straight for the source code for the binaries you're using.
Title: Weird problems when compiling the skeleton opengl code
Post by: Morgrog on August 07, 2003, 16:10:19
Cool thanks for the quick answer guys, I'll be checking it out tonight!

I'm getting all excited about 0.7 and I don't even know why (since I didn't start using lwjgl just yet) ;)