LWJGL
May 22, 2012, 15:48:17
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.8.3 released!
Home
Help
Search
Login
Register
LWJGL
>
Programming
>
LWJGL Documentation
>
Drawing over the Parent Display (Applet)
Pages: [
1
]
« previous
next »
Print
Author
Topic: Drawing over the Parent Display (Applet) (Read 1595 times)
Kilabyte
Newbie
Posts: 1
Drawing over the Parent Display (Applet)
«
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
Re: Drawing over the Parent Display (Applet)
«
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
Re: Drawing over the Parent Display (Applet)
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...