Hi!
I've just found this library and got interested about it. I've browsed some of
the examples and the javadoc. Now I didn't see anything about networking.
I'm supposed to use J2SE's network APIs? I got the idea that I just use lwjgl
for a game. I belive I'm wrong.
So to a larger question. Could someone familiar with lwjgl describe to a general
frame for a game build with lwjgl?
Thanks!
O.
LWJGL only provides what j2se does not already provide. That is, LWJGL has OpenGL, OpenAL and input (you can do input through AWT but we'd like to avoid that). Networking is already there in j2se, so you'll have to use it.
- elias
Ok, then could you explain to me this sentence from the lwjgl intro:
"A sub-requirement of the LWJGL is that it be freed Java programmers from
the requirement to ship a whole JRE with their games."
Wont I have to ship the JRE with my game if I use say java.net or java.io
packages? It talks about GNU's gcj there, but I'm under the impression that
it isn't a complete implementation.
O.
Sort of true. You see, if it weren't for SUN license restrictions you could the JRE down to about 2.5 megs compressed. It has been done, but it's illegal to distribute it with your game. LWJGL is simply awaiting a development from SUN where the JRE is either modular or where you're allowed to distribute a cut down jre.
- elias
Thanks for answering. I think I know now where I stand with this. I have
a game in mind and I think I'll use lwjgl in it. To give it a try. It will my
initiation into opengl. ;)
O.
The intro talks about a Math class, but I can't find it anywhere. Is it a private
class?
O.
Try this for a v.v.simple intro to the game loop/frame/whatever, I found it useful starting out:
http://java-game-lib.sourceforge.net/documents/tutorials/opengl/skeleton_code.html
Thanks! That was very interesting read.
O.
Quote from: "Odeamus"The intro talks about a Math class, but I can't find it anywhere. Is it a private class?
That's a documentation error - the Math class was removed recently and doesn't appear in the latest releases.