LWJGL
May 22, 2012, 15:48:17 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Drawing over the Parent Display (Applet)  (Read 1595 times)
Kilabyte
Newbie
*
Posts: 1


« on: March 30, 2011, 18:20:30 »

I'm attempting to use LWJGL in an applet. I have a Canvas as the display parent (Display.setParent(Canvas)). Is there anyway for me to draw images directly onto the canvas? I basically want to be able to draw my GUI to directly over the LWJGL display. I've tried getting the Graphics from the Canvas and drawing on it but it doesn't seem to work.

Thanks in advance,
               -Kilabyte

Logged
CodeBunny
Nerdus Imperius
*****
Posts: 453



WWW
« Reply #1 on: March 31, 2011, 09:43:44 »

I'm pretty sure you'll have to draw your graphics onto the Display via OpenGL using textured quads. It won't be too hard, and you'll get much better performance.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 961



« Reply #2 on: March 31, 2011, 11:43:24 »

best not to mix Opengl with AWT too much otherwise you'll run into heavyweight vs lightweight issues like the above. A better solution is to use an OpenGL Gui like TWL.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!