LWJGL Game Init and Main Loop

got the sample loop working on my gaming machine at home…so laptop will never do it. Time to code at home. :slight_smile:

[quote]got the sample loop working on my gaming machine at home…so laptop will never do it. Time to code at home. :slight_smile:
[/quote]
How very true! My laptop has been repurposed to playing Battlestar Galactica DVDs while I work on my desktop machine - I ran into too many display driver bugs to make it worthwhile persisting with.

Re: Display.sync() - is that the right place for it? Isn’t it more of a Window function than a Display function?

Another thought - is there any mileage in having a setFrameRate(int) method in initialization, then collapse the synchronization code into the Window.update() call? This would change the function of the update method even further away from the concept of “update”, I suppose.

Regardless, what’s the short-term release schedule? Is there going to be an interim (i.e. non-1.0) release for this (slight) API change?

We are, er, looking at totally deleting the Window class and merging its functionality with Display…

Cas :slight_smile:

Sounds good. I often searched in the javadoc in the display class only to find out that the thing I need is over at the window class and vice versa. So +1 :slight_smile:

A good answer! I was pondering the same thing last night. I await the next release with interest!

hi this is so great!!

I have a basic game setup with eclipse and lwjgl09 cvs build now, your game class worked with no problems:)

LWJGL is easier then i thought, I looked at a opengl faq (i also have some opengl ebooks that im going to look at) with examples for c/c++ and learned how to draw quads, I used GL_QUADS setting. I want to make a 2d platform so can i use a texture on my quad? is that the way to go? or is there some other technique to draw the textures as sprites?

could you give me an example of render code to render 1 image/texture? ( as a 2d image )

I understood how to load a texture from nehes tutorial, but he is using awt to load…is there another method? so that i dont need to use awt because i want the opportunity to compile the game to native…

My advice is to use AWT first and get it working to learn the ropes. Then when you know what you’re doing, start removing it all and replacing it with your own code.

Cas :slight_smile: