a question about "Using jPCT in Swing" in wiki

Started by wruiwr, September 19, 2014, 04:09:32 PM

Previous topic - Next topic

wruiwr

Hi,

I tried the example in "Using jPCT in Swing", and I have a question that after I dragged the edge of the window, the window became bigger, but the 3D world rendered did not change its size with the window. So, I wonder how to make the size of the rendered 3D world to change with the window, when dragging the edge of the window. Dose anyone know about some solution about this?

EgonOlsen

There's a resize() method in FrameBuffer that should do the trick.

wruiwr

Hi EgonOlsen!

Thank you for your reply!
But, where should I call resize(), and how to set the width and height according the change of the window? Besides, it's software rendering, so is it possible to use it?