Sorta Just Starting JoGL

I’ve got it properly installed and what not but cannot seem to get up and running (as in using the API).

I figured I’d learn C to better myself w/ OpenGL so can anyone tell me a good C compiler for Windows?

I’ve played around with the NeHe conversion code but it’s well dependent on GLDisplay which is annoying b/c that’s not part of the API. Isn’t there a way to draw those images w/o GLDisplay?

Thanks

If you want to use JOGL then I would not bother trying to use a C compiler…simply write the opengl code in JOGL and use Netbeans for your compiler. THe JOGL code is almost exactly like the OpenGL code with very minor differences so you can use the Redbook to understand OpenGL but write it in Java.

Also, I agree that the NeHe code uses the old JOGL api and that sucks that it has not been updated but I would highly suggest you download the JOGL DEMOS and use those to start learning…they are very good.

I have the redbook and I cannot seem to be able to translate the code to Java at all… I feel like a total noob to be honest and I do know Java in fact… That’s why I wanted to learn C so I can have a better understanding of the code.

Also is the JOGL Demos up to date w/ current JOGL version?

The demos should be updated, yes…last I checked I think they were.

As for converting from OpenGL to JOGL you just probably need to example to start with and so I would suggest starting with a JOGL demo. Basically the main differences are that JOGL calls look almost exactly like the OpenGL calls but since you create a GL instance you have to prefix each call with that instance…so OpenGL’s glTranslated() would be converted in JOGL to something like gl.glTranslated()

This is not the best example, per se, but you can download the files I created for a demo (see this post: http://www.java-gaming.org/index.php/topic,18866.msg148832.html#msg148832) and create a netbeans project with them…Note that I don’t use an ‘Animator()’ object in my scene to decrease my cpu usage and I use a GLJPanel instead of a faster GLCanvas so there are some things that are more complicated which is why I would suggest using the demos.

Alright will do, I’ll get started on that tomorrow.

Thanks :smiley: