LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: tal3ntfr3i on April 28, 2006, 15:23:11

Title: OpenGL 2.0 support?
Post by: tal3ntfr3i on April 28, 2006, 15:23:11
Hi there,

im new to lwjgl and other bindings of opengl.
1. My Question: Do lwjgl support all the features of OpenGL 2.0. Just wondering because on nehe some examples do not have a lwjgl-code.

2. Do jogl and lwjgl support the same features of opengl? There is jogl code for example in lesson 36, but no lwjgl.

Thanks in advance

tal3ntfr3i
Title: hmmmmmm...
Post by: Fool Running on April 28, 2006, 16:51:58
1. LWJGL does fully support OpenGL 2.0. My guess is that no one has ported the newer NeHe tutorials yet.

2. I would think they both should have the same features (someone can correct me on this) as they both are OpenGL bindings.
Title: OpenGL 2.0 support?
Post by: darkprophet on April 28, 2006, 21:58:01
JOGL has 1 class for all the GL calls, this means it can do a fall back onto the ARB extensions if present and if your card doesn't support the core function (i.e, if you have a Raedon 9200, those support VBOs through the extension, but it doesn't support 1.5, so you dont get the core stuff which is the same as the ARB anyway).

But for that little hassle, you get a cleaner interface IMHO, sound and input too in 1 binding...

DP
Title: OpenGL 2.0 support?
Post by: tal3ntfr3i on April 29, 2006, 14:28:45
Ok thx a lot.

I got another question with "txture loading". Do not want to open another thread.

If i try to compile the code for lesson 5 (textures)on nehe i got an exception sounds like

C:\proggies\lwjgl\src\Lesson06.java:231: ilGenImages(java.nio.IntBuffer) in org.lwjgl.devil.IL cannot be applied to (int,java.nio.IntBuffer)
       IL.ilGenImages(1, image);

if I only give the method 1 parameter(2 arent supported in this version)the texture will not displayed.
How to handle this?

Thx

tal3ntfr3i
Title: Solution to compilation problem
Post by: nicolas_bol2 on May 16, 2006, 20:12:58
I ran into this issue to:

Replace :

IL.ilGenImages(1, image);

by

IL.ilGenImages(image);

It worked for me.
Title: OpenGL 2.0 support?
Post by: darkprophet on May 16, 2006, 23:13:37
There are certain things that have been changed with LWJGL to go with the java convention of things.

The number of ID's to generate equals that to the remaning() of your direct NIO buffer; this makes perfect sense. As your telling it "i want to fill the buffer" by supplying it with a big buffer...

This is true not just for DevIL, but for all of LWJGL.

DP