Decisions
BlitzMax Forums/BlitzMax Programming/Decisions
| ||
I've got a slight decision to make. Because I can't seem to find a way to get at the texture (GL texture) in TGLImageFrame- and I need the texture- I've got two choices: A) I can add my own method to TImageFrame and implement it in TGLImageFrame, or B) Load the texture outside of Blitz's image system (and, of course, away from Max2D). Now, the latter seems like the best option to me, since it wouldn't require people to modify their modules to use what I write, but then there's the problem of people not being able to use what I write with the same methods/functions in Max2D. Brain is a bit (ok, completely) scrambled at the moment, so forgive me if this is utterly confusing. |
| ||
You can load a pixmap, then load the 'image' from the pixmap, giving you both a GL texture and access to the original image. |
| ||
Well, problem solved via:Local frm:TGLImageFrame = TGLImageFrame(Img.frames[frame]) |
| ||
Oh, sorry, I thought you wanted an accessable image, not a GL texture number. Should have read that more closely! |
| ||
No problem- like I said, brain was scrambled at the time, so it's pretty easy to misunderstand whatever I said. |