GLBasic forum

Main forum => GLBasic - en => Topic started by: djtoon on 2011-Sep-07

Title: glreadbuffer
Post by: djtoon on 2011-Sep-07
anyone has an example of reading the opengl buffer and then saving it as a file?
Title: Re: glreadbuffer
Post by: Kitty Hello on 2011-Sep-07
grabsprite, Savesprite?
Title: Re: glreadbuffer
Post by: djtoon on 2011-Sep-07
well its very slow :(
from what iv seen on other programs
getting the the opengl buffer and then wright the bytes as a pure tga is the fastest
Title: Re: glreadbuffer
Post by: Kitty Hello on 2011-Sep-07
grabsprite is fast (except for rotated screens). savesprite might take a bit, but you have to transfer the opengl buffer to a memory buffer using glReadPixels in any way, so GLBasic provides the fastest possible way with grabsprite and savesprite.
instead of grabsprite, you can use USESCREEN