help with transform_world()
Hi,
I'm trying to figure out how to make a PF_LayerDef, draw into it and then use transform_world() to paste it all over the place at varying sizes.
I can get the basic process to work with composite_rect(), but transform_world() - to get the scaling and rotating to work) is stumping me and I can't find a single bit of code either in the SDK or online that uses it. Basically my blank empty layer stays blank and empty and there's no indication that the command is actually doing anything at all.
Here's where I think my problems lie:
1. mask_world0? If I pass NULL, will it just grab all the pixels? None? Random pixel data?
2. src2dst_matrix? huh? I've set it to true and false and see no difference.
3. matrices? Just to start, I'd like to get an identity matrix working. {{1,0,0}{0,1,0}{0,0,1}} Right?
4. dest_rect? I assume this needs to be the same width as my (potentially) scaled source?
code available upon request to see what I'm doing wrong.
Thanks
-Rich
