www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: qcrist on September 02, 2011, 11:36:05 pm

Title: Display.Graphics Question
Post by: qcrist on September 02, 2011, 11:36:05 pm
Is there any way to access the graphics pane of the Display class?
Title: Re: Display.Graphics & Frame buffer Question
Post by: EgonOlsen on September 02, 2011, 11:40:16 pm
You can use the AWTGL renderer that renders into an AWT canvas...or use jogl-support that does something similar but with jogl instead. I'm not sure what you mean with that graphics pane question...what do you want to do exactly?
Title: Re: Display.Graphics Question
Post by: qcrist on September 02, 2011, 11:41:57 pm
I want to access the graphics of the display window. Is that possible?

ex:
Graphics g = Display.getGraphics();
g.drawRect(0,0,100,100);
Title: Re: Display.Graphics Question
Post by: EgonOlsen on September 02, 2011, 11:46:55 pm
No. It's native GL. There is no Graphics context. There is one for the AWTGL canvas, but i don't think that you can use Java2D methods on that either.
Title: Re: Display.Graphics Question
Post by: qcrist on September 02, 2011, 11:47:31 pm
k, thanks