TImage to TTexture?

BlitzMax Forums/MiniB3D Module/TImage to TTexture?

BLaBZ(Posted 2010) [#1]
How do we make this happen?!

I feel like I've tried just about everything...


ima747(Posted 2010) [#2]
There's no standard path for doing this. I use a custom extension to TTexture that takes a pixmap as input... I think there's some code in the archives, or if you search the forum here for pixmap to texture you'll probably come across an old post of mine where I memorialized some of the code since I kept forgetting it...

You can get the pixmap from an image with lockimage I believe... haven't done anything with d2 in a while...