Hey everyone, I have recently decided to get into LWJGL as opposed to using Java2D, however have some questions about the basic game structure for games using LWJGL for rendering.
Right now with Java2D I have a Main class that is used to create the window (JApplet or JFrame) and then a Game class that extended JPanel and was added to the JFrame or JApplet. Now in the Game class I had a paint method that would draw to the JPanel and when drawing other objects, I would call their paint method and pass it the Graphics object in order to paint them to the JPanel.
What is a similar structure in LWJGL? For example, I dont understand what to pass to the Objects being rendered in order to have them all render to the same display and all of that.
Any advice, tips or suggestions are appreciated!
(Also I was looking at the lesson posted by bobjob and I like the set up for it, as I prefer to use Applets, however I dont see how you could extend that to use entities etc as the GLHandle is in another class and all of the Objects would be handled in a different class).