Is there any way to increase the size of Gosu::Image instances that can be used with texplay? I believe the limit for the size of a Gosu::Image that can be edited in texplay is 1022 x 1022, or something around there. However, TexPlay.create_blank_image can generate larger images. Is this a result of how Gosu::Image#gl_tex_info is implemented, or could this possibly be changed? I would like to be able to edit images that are as large as the ones I can create.
Gosu supports an interface to read and write arbitrarily large images now.
Image#to_blob retrieves the whole image even if it's super large,
Image#update (or so) write a rectangular portion of it back. If Texplay were updated to use this interface instead of
gl_tex_info then there would be no limit on the texture size.
I've been planning to fork Texplay and try and fix this, but plans are plenty :)
When Texplay creates images, it just creates a huge blob of data (string of null/0x00 characters) and passes that into _Gosu_ that creates the actual image (putting that on one or more textures). If Gosu puts that on more than one texture, then Texplay can't edit it.
In a related error, it sometimes creates images which overlap, apparently. Like, the I'll draw a line in one image, and it'll appear in another one as well. I'm still in the process of trying to isolate the error, but it's a rather weird bug.
I get a similar bug sometimes on my project with texplay on small generated pictures. Very random and rare, but it happens.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill