vrm
Junior Devvie  
where I should sign ?
|
 |
«
Posted
2003-06-24 06:23:09 » |
|
correct me if I'm wrong  jogl & lwjgl are totaly differents (way handling windowing etc..) but the OAL part joal ? is any good to maintain 2 differents API ?
|
|
|
|
Jeff
|
 |
«
Reply #1 - Posted
2003-06-24 21:47:04 » |
|
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
|
|
|
|
vrm
Junior Devvie  
where I should sign ?
|
 |
«
Reply #2 - Posted
2003-06-25 05:19:36 » |
|
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.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Jeff
|
 |
«
Reply #3 - Posted
2003-06-25 06:42:39 » |
|
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.
|
|
|
|
princec
|
 |
«
Reply #4 - Posted
2003-06-25 07:20:38 » |
|
There won't be anything in it for performance I shouldn't think. Cas 
|
|
|
|
elias
|
 |
«
Reply #5 - Posted
2003-06-25 08:14:47 » |
|
And gl.glBlah is around the corner for lwjgl too :-)
- elias
|
|
|
|
Matzon
|
 |
«
Reply #6 - Posted
2003-06-25 08:29:40 » |
|
but we have static classes - with static import, we're all good 
|
|
|
|
vrm
Junior Devvie  
where I should sign ?
|
 |
«
Reply #7 - Posted
2003-06-25 08:36:34 » |
|
where is static import actualy in Java? ho it's for later .. *grins*
|
|
|
|
abies
|
 |
«
Reply #8 - Posted
2003-06-25 08:38:14 » |
|
- tried to hide mouse cursor with awt ?
Yes, I have tried, it works, 2-3 lines of code.
|
Artur Biesiadowski
|
|
|
princec
|
 |
«
Reply #9 - Posted
2003-06-25 09:11:23 » |
|
Daft code though innit? Cas 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Mojomonkey
|
 |
«
Reply #10 - Posted
2003-06-25 10:17:59 » |
|
tried to hide mouse cursor with awt ? Set your mouse cursor image to an empty image. This worked for me in my GL4Java days.
|
Don't send a man to do a monkey's work.
|
|
|
kevglass
|
 |
«
Reply #11 - Posted
2003-06-25 10:49:57 » |
|
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
|
|
|
|
Mojomonkey
|
 |
«
Reply #12 - Posted
2003-06-25 11:28:36 » |
|
Ok, I'll bite. What exactly is "daft" about it?
|
Don't send a man to do a monkey's work.
|
|
|
kevglass
|
 |
«
Reply #13 - Posted
2003-06-25 11:42:45 » |
|
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  Kev
|
|
|
|
Mojomonkey
|
 |
«
Reply #14 - Posted
2003-06-25 11:52:22 » |
|
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.
|
Don't send a man to do a monkey's work.
|
|
|
kevglass
|
 |
«
Reply #15 - Posted
2003-06-25 12:00:04 » |
|
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
|
|
|
|
Mojomonkey
|
 |
«
Reply #16 - Posted
2003-06-25 12:02:26 » |
|
That's a good point.. what input are we talking about here? Java Listeners or JNI to libraries (DirectInput)?
|
Don't send a man to do a monkey's work.
|
|
|
kevglass
|
 |
«
Reply #17 - Posted
2003-06-25 12:06:05 » |
|
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
|
|
|
|
vrm
Junior Devvie  
where I should sign ?
|
 |
«
Reply #18 - Posted
2003-06-25 12:09:13 » |
|
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
|
|
|
|
Mojomonkey
|
 |
«
Reply #19 - Posted
2003-06-25 12:22:13 » |
|
I only guessing here, but since LWJGL isn't bound to AWT in any way, it can't be Java Listeners. But I thought we were talking about JOGL?? Ok, I've lost track of this train of thought.  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.
|
Don't send a man to do a monkey's work.
|
|
|
elias
|
 |
«
Reply #20 - Posted
2003-06-25 12:33:10 » |
|
Set the cursor image to empty is not a work around at all. In fact, on linux, that's the only way of 'hiding' the cursor.
- elias
|
|
|
|
nickdotjava
Junior Devvie  
I have fallen to the dark side. I'm using DX9
|
 |
«
Reply #21 - Posted
2003-06-25 13:38:27 » |
|
And gl.glBlah is around the corner for lwjgl too :-)
- elias Please, no. This is one type of redundancy that is not needed. Why add 2 extra letters to every GL command?
|
-Nick
"Oh ya, that's trivial. I should have it done in an hour."
|
|
|
Matzon
|
 |
«
Reply #22 - Posted
2003-06-25 14:22:36 » |
|
Why add 2 extra letters to every GL command? Because with static import in 1.5, you can just do: glBlah thus 95% of all your c code has readily usable! - only the Buffer stuff has to be handled.
|
|
|
|
vrm
Junior Devvie  
where I should sign ?
|
 |
«
Reply #23 - Posted
2003-06-25 14:54:15 » |
|
perhaps we can wait 1.5 beta first ? 
|
|
|
|
oNyx
|
 |
«
Reply #24 - Posted
2003-06-25 15:16:18 » |
|
Set the cursor image to empty is not a work around at all. In fact, on linux, that's the only way of 'hiding' the cursor.
- elias There should be a shorthandle anyways imo. This *line* is just painfull and doesnt look that logical at all: setCursor(Toolkit.getDefaultToolkit().createCustomCursor(new BufferedImage(1,1,BufferedImage.TYPE_INT_ARGB),new Point(0,0),"")); Summin like this would be better: setCursor(Cursor.getPredefinedCursor(Cursor.NO_CURSOR)); I always wondered why there isn't a "no draw" cursor and the NO_CURSOR was one of the things I just tried before I checked my books.
|
|
|
|
Jeff
|
 |
«
Reply #25 - Posted
2003-06-25 15:43:48 » |
|
So I may have lost the thread of logic too...
But JInput uses DirectInput on Win32. You don't even need a Frame to use it (it has its own secret, invisible message pump.)
JK
|
|
|
|
Captain-Goatse
Junior Devvie  
I suck at teh 2D. XBOX IS BIG LOL!111
|
 |
«
Reply #26 - Posted
2003-06-25 15:47:24 » |
|
Because with static import in 1.5, you can just do: glBlah
thus 95% of all your c code has readily usable! - only the Buffer stuff has to be handled.
So yeah like going from Java to C.... sounds like all I ever wanted. Oh shit, the mid form of these two already exists, C++4life, maaaaan.
|
|
|
|
nickdotjava
Junior Devvie  
I have fallen to the dark side. I'm using DX9
|
 |
«
Reply #27 - Posted
2003-06-25 17:15:58 » |
|
So yeah like going from Java to C.... sounds like all I ever wanted. Oh shit, the mid form of these two already exists, C++4life, maaaaan.
I started in C++, moved to Java, and have never looked back. 
|
-Nick
"Oh ya, that's trivial. I should have it done in an hour."
|
|
|
kevglass
|
 |
«
Reply #28 - Posted
2003-06-25 17:35:41 » |
|
Horse for courses, if I wanted to write the next best selling first person shooter I guess I'd go for C++.
Kev
|
|
|
|
princec
|
 |
«
Reply #29 - Posted
2003-06-26 09:57:34 » |
|
I'm pretty confident of being able to do it in Java. And sooner  Cas 
|
|
|
|
|