From: Anthony R. <aN...@to...> - 2000-04-18 18:18:26
|
me try it tonight, thanks for all the input :). i hope its not a MacOS bug, narr it cant be the demo works ok. hummmmmm... ok me try it again :) aNt > From: "Kerry L. Bonin" <ke...@vs...> > Date: Tue, 18 Apr 2000 10:51:20 -0700 > To: Anthony Rogers <aN...@to...>, > <gl4...@li...> > Subject: Re: [gl4java-usergroup] GLCanvas > > 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 >> >> |