Hello Guest

AWTGLCanvas Usage? [SOLVED]

  • 2 Replies
  • 9897 Views
AWTGLCanvas Usage? [SOLVED]
« on: August 09, 2009, 04:21:30 »
In the Applet usage page on the wiki it says to use a AWTGLCanvas and use the specialized loader, and poof, you're done. I just can't figure out how to use this canvas with openGL lwjgl drawing (Using GL11 and Display and such).

If anyone could help me with this, or just tell me where to find the source of the Applet demo, that would be awesome.

EDIT:
Thanks to kappaOne in IRC, this thread is no longer needed. Looking closer at the Gears applet demo made it all clear.
« Last Edit: August 09, 2009, 22:35:02 by Durnus »


Re: AWTGLCanvas Usage?
« Reply #2 on: August 09, 2009, 20:37:23 »
Ok, to be honest I got that info from IRC but forgot to update the post. :-X Thanks for the link anyway, it confirms I have the right version of lwjgl and the examples.

Even looking at that, though, I don't understand how it's supposed to work. It seems like AppletLoaderTest.java is the Applet that's being loaded, but it doesn't run when I try to run it (no constructor, and when I add one it complains validly that openGL isn't initialized) and it doesn't even add a AWTGLCanvas to the layout like the tutorial says to do. What am I missing? How does it all fit together?
« Last Edit: August 09, 2009, 22:34:43 by Durnus »