From: Kerry L. B. <ke...@vs...> - 2000-04-18 18:01:28
|
I inherit from GLAnimCanvas, here's my code, adapted from some of the demo source: Class var: TGATextureGrabber textgrab = null; In the init() method: textgrab = new TGATextureGrabber( gl ); After drawing frame: textgrab.grabPixels( GL_BACK, 0, 0, getWidth(), getHeight() ); textgrab.write2File( "screenshot.tga" ); Works great for me. At 04:03 PM 4/17/00 +0100, Anthony Rogers wrote: >yoyoyo hello... > >i take it the TGA exporter only works with the GLCanvas not the Animation >Canvas ??? it come out black if i use the Animation canvas :) > >aNt > > >_______________________________________________ >gl4java-usergroup mailing list >gl4...@li... >http://lists.sourceforge.net/mailman/listinfo/gl4java-usergroup > > |