Display.Graphics Question

Started by qcrist, September 02, 2011, 11:36:05 PM

Previous topic - Next topic

qcrist

Is there any way to access the graphics pane of the Display class?

EgonOlsen

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?

qcrist

I want to access the graphics of the display window. Is that possible?

ex:
Graphics g = Display.getGraphics();
g.drawRect(0,0,100,100);

EgonOlsen

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.