From: Matthias S. <msw...@an...> - 2000-08-14 10:23:54
|
hello I have another 'problem'. This time I really believe it's my code that sucks ;-) When I try to make screenshot, the only thing I see when I view my tga, is black. I use the tgaTextureGrabber class here is my code (invoked when a certain key is pressed): TGATextureGrabber tg = new TGATextureGrabber(world.gl); tg.grabPixels(world.gl.GL_BACK,10,10,180,160); tg.write2File("d:\\screenshot.tga"); something wrong with it? I thought may be it was my colordepth that was the problem but it remained always black after testing all modes (16,24,32). anyway, isn't there some sample code about this? thanks, matthias Angelfire for your free web-based e-mail. http://www.angelfire.com |