Hello,
I was wondering what the best, or prefered, method for creating a JOGL application? Right now I have a Display class that handles creation of the frame and attachment of the GLCanvas, a Renderer class which is the GLEventListener, then I have an Input class which is the mouse, and keyboard listener, I have my own Animator class which creates a thread that calls the Render.display() method. Finally, I have the Main class which calls of these and passes the necissary variables to the constructors. However, it seems like a big pain in the ass to get all these elements talking to one another. It would be easier it would seem to create the Main class as a thread and so have the main game loop in the run() method. Is this bad practice? What is the approach I should be taking here? Thank you in advance.