oal part of LWJGL and joal

correct me if I’m wrong 8)

jogl & lwjgl are totaly differents (way handling windowing etc…)

but the OAL part joal ? is any good to maintain 2 differents API ?

Hmm. Im not sure LWJGl and JOGL are all that different either.

JOAL is designed to be consistant with JOGL in how its organised.

Again, I’d say use what works for you, provide feedback to anyone you can for improvements, and let it work itself out over time.

JK

my main problems with JOGL are :

  • dependency with awt/swing
  • video mode changing with swing on linux doens’t work
  • tried to hide mouse cursor with awt ?
  • gl.glBlabla syntax
  • all those array paremeters in place of directBuffer make me sucious on performance side

I feel back to old gl4java days.

Make sure you post your issues to the JOGL thread, if you will.

On performance I think JOGL is about as good as any other well written OGL binding, but you could always write some benchmarks to learn more.

There won’t be anything in it for performance I shouldn’t think.

Cas :slight_smile:

And gl.glBlah is around the corner for lwjgl too :slight_smile:

  • elias

but we have static classes - with static import, we’re all good :-*

where is static import actualy in Java?
ho it’s for later … grins

Yes, I have tried, it works, 2-3 lines of code.

Daft code though innit?

Cas :slight_smile:

[quote]tried to hide mouse cursor with awt ?
[/quote]
Set your mouse cursor image to an empty image. This worked for me in my GL4Java days.

I think thats what Cas was getting at? Its a bit daft, setting the mouse cursor to an empty image (not that its ever caused me any problems)

Kev

Ok, I’ll bite. What exactly is “daft” about it?

I suppose the nature of making something invisible when you actually want to turn it off. The operating system is still “drawing” the cursor, but actually its not cause its blank.

That, I would think, could be considered daft…

Not to say I don’t use it :smiley:

Kev

Ok, but are you sure you’d ever want to turn the cursor off? You need to still need mouse movements, position, etc. Just because you don’t see it doesn’t mean you want it off.

Well, I suppose it depends on how you’re reading input again. I don’t know input stuff very well, but I assume on most platforms the display of the cursor is seperate from reading the actual move.

Not to mention, in some games, you don’t need mouse input at all.

Kev

That’s a good point… what input are we talking about here? Java Listeners or JNI to libraries (DirectInput)?

I only guessing here, but since LWJGL isn’t bound to AWT in any way, it can’t be Java Listeners. They must have input libraries of some sort (either bound to DirectInput, or something equally as hacky - [read troll for Cas or Matzon])?

Anyone who actually knows this stuff want to comment?

Kev

lot of games hide the mouse cursor , ex : flight simulation
or for display a fancy opengl rendered animated cursor.

Yes setting the mouse icon to empty is an ugly workaround

[quote] I only guessing here, but since LWJGL isn’t bound to AWT in any way, it can’t be Java Listeners.
[/quote]
But I thought we were talking about JOGL?? Ok, I’ve lost track of this train of thought. ;D

I agree, if it’s using JNI to communicate with the cursor that setting the image to an empty is an ugly work around. But if you are using a pure Java mouse listener interface (is this what JOGL (or JInput?) uses?) it’s pretty much your only option and therefore not daft at all.

I think Cas was just being a troll making that comment anyways. So I’ll stop biting at it.