From: Max G. <gi...@li...> - 2000-01-30 01:55:53
|
Pontus Lidman wrote: > Can't you just pass gl and glu as parameters to your rendering function? I can and there's even simpler solution (public GLFunc gl; this.gl = super.gl). But I thought that if it is common that people must create workarounds for this, it would be good to change it. So I should have put 'proposal' not 'need' in previous' message subject line. How do other people think? Sven? > The way I did it is I wrote a class that extends java.awt.Graphics that > takes gl and glu as arguments to its constructor, and this new Graphics > object is passed as argument to all my rendering functions. Interesting idea. Does it allow to freely mix GL and AWT drawing (probably drawing AWT on top of GL)? How about refreshing such a window? Bye, Max |