www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: qcrist on September 02, 2011, 11:36:05 pm
-
Is there any way to access the graphics pane of the Display class?
-
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?
-
I want to access the graphics of the display window. Is that possible?
ex:
Graphics g = Display.getGraphics();
g.drawRect(0,0,100,100);
-
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.
-
k, thanks