how to convert java core game to jogl game

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to convert java core game to jogl game

frakc
Hello
I am learning basic game making. I wrote a simple game using just standart java libraries. Now I want to understand how I can make same using JOGL.
sheppared.zip
As I understand i need just rewrite paint and actionPerformed, am i right?
Thank you for any help
Reply | Threaded
Open this post in threaded view
|

Re: how to convert java core game to jogl game

jmaasing
I found this tutorial pretty good (along with a lot of google to find other tutorials) to get started with OpenGL programming.

http://www.arcsynthesis.org/gltut/index.html

In short, OpenGL is an API to draw on the screen. So yes you "only" need to change the drawing-on-the-screen part of your application. However, OpenGL is not a very friendly API, it takes a lot of learning to get going.
Reply | Threaded
Open this post in threaded view
|

Re: how to convert java core game to jogl game

frakc
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: how to convert java core game to jogl game

gouessej
Administrator
Hi

Rather post your questions about JOGL here rather than on StackOverflow. Keep in mind that init(GLEventListener) can be called several times during the life of a drawable, create the objects of your data model in the constructor rather than in this method, put only the things that require a current OpenGL context into it. Don't write glu = new GLU(), rather call GLU.createGLU(GL).
Julien Gouesse | Personal blog | Website