disabling caching on existing Pictures

3 views
Skip to first unread message

Samuel Gélineau

unread,
Oct 25, 2020, 11:55:17 PM10/25/20
to Haskell Gloss
Hi!

In gloss-1.13, Picture.Bitmap's fields were replaced by an opaque BitmapData value. This breaks a movie-playing application I am working on, because I can no longer override the cacheMe parameter. Would it be possible to re-expose that functionality, perhaps by adding an enableCaching :: Bool -> Picture -> Picture function? Thanks.

Note that I cannot simply set the cacheMe parameter to False when the bitmap is constructed, because I am getting my Picture from the gloss-juicy package, which is always passing True. I think that's a good default, which is why I am asking gloss to allow me to overwrite that default instead of asking gloss-juicy to add a cacheMe parameter to its functions.

Thanks again,
- Samuel Gélineau
Reply all
Reply to author
Forward
0 new messages