OpenGL and LWJGL

I’m having trouble learning LWJGL, mainly because there are lots of commands that are used, and appear in the javadoc, but there’s no explanation of what they do. I’m reading the OpenGL specification 1.4, but would like a reference book. Printing 300+ pages isn’t exactly what I want to do. Any recommendations?

Man pages! All the gl commands are listed in unix man pages. Just change gl.command to glCommand. (i.e. gl.color4f becomes glColor4f) Personally, I have Cygwin installed so I can just open a window and type “man glCommand”.

Hum…
Learning lwjgl is learning OpenGL, so I think you should look at OpenGL tutorials…
Try http://nehe.gamedev.net, it’s one of the best site for opengl beginner…

Nehe’s tutorials are in C++, but the opengl syntax is the same…
I’ve ported many of his tutorials to java on my website (http://chman-area.tuxfamily.org), but I haven’t made any update since a little time (sorry for the community)…

Hope it helps !

++
Chman

LWJGL is using the 1.4 specification, right?

Yeah, I think so…

OpenGL superbible, if it doesn’t teach you OpenGL, then it will convert you to C.

Captain-Goatse, from the heart of hell, I stabbeth thee. :wink:

Capt., you’re starting to resemble a Jehova’s Witness. ::slight_smile:

LWJGL follows the OpenGL 1.4 spec. However, you can use it to talk to any previous version of OpenGL as well - I’m currently using it to talk OpenGL 1.1.

Check the boolean values of GL.OpenGL10 through GL.OpenGL14 to see what versions your driver supports - all versions up to and including the supported version will be true.

[quote]Capt., you’re starting to resemble a Jehova’s Witness. ::slight_smile:
[/quote]
I suppose “Captain-Watchtower” does sound slightly better than “Captain-Goatse”. After all, they both seem to be trolls… :wink:

Ok, I’ll stop!

…or…Hay guys I heard ocaml > *…

no really, it was meant to be a joke.

Chman,

just tried some of the tutorials on your site. Thanks very much for the effort you must have put in, but you are still using Display.create and destroy() - I’m afraid they need to be updated to 0.6

It also looks like an error has crept into Nehe38. It has this at line 373

            gl.genTextures(1, shaderTexture);                                    // Get A Free Texture ID

it needs a buffer address:

        IntBuffer textureBuf = ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer();
            gl.genTextures(1, Sys.getDirectBufferAddress(textureBuf));                                    // Get A Free Texture ID
        shaderTexture = textureBuf.get(0);


Runs nicely after that. :slight_smile:

[quote]OpenGL superbible, if it doesn’t teach you OpenGL, then it will convert you to C.
[/quote]
I WILL NEVER CONVERT TO C! YOU HEAR ME? NEVER!!! lol :slight_smile:

[quote]Ok, I’ll stop!

…or…Hay guys I heard ocaml > *…

no really, it was meant to be a joke.
[/quote]
O’Caml? O’Caml has got to be the worst language ever! I hate it, even more than C! >:(

And now for the on-topic part. ;D Is the difference between LWJGL and OpenGL that the underscores in OpenGL are replaced with periods in LWJGL?

O’Caml? O’Caml has got to be the worst language ever! I hate it, even more than C!

You’re right. He should be mentioning Haskell…

JUST KIDDING!!!