TImage.MidHandle for Mojo2 (BMX)??
BlitzMax Forums/Brucey's Modules/TImage.MidHandle for Mojo2 (BMX)??
| ||
Is there an alternative to load an image and setting it to Midhandle with Mojo2. I see that Mojo1 has this param. With MJ2 you got 3.. | TImage.Filter | The image is filtered | TImage.Mipmap | The image is mipmapped | TImage.Managed | The image is manage |
| ||
I've yet to play with MX2/Mojo2 much, but I believe you have to do it as per this example for now: https://github.com/blitz-research/monkey2/blob/master/modules/mojo/bananas/mojotest/mojotest.monkey2 Specifically, this bit: image=Image.Load( "asset::RedbrushAlpha.png" ) image.Handle=New Vec2f( .5,.5 ) Hopefully a convenient "MidHandle" will see its way in at some point! |
| ||
Thanks BP. Actually this is the BMX port so I don't think there's Vec2f yet (Last I checked). Is it different from image.SetHandle(x,x)? |