I have been experimenting with passing Blitz3d handles to User Libs and trying to figure out if it is possible to directly manipulate (DataBanks, Image Buffers, etc). I have started with Banks and Images and have found out the following...
1. A Bank handle passed to a userlib is a pointer to a structure 16 bytes long.
2. The 2nd WORD of this structure appears to be a valid memory handle, and returns a size 8+bytes more than the Bank Size.
3. The 3rd WORD of this structure appears to be the size of the Bank.
I have also passed a handle to an Image and there is a similar underlying structure, however there seems to be more layers of pointers. I assume an Image handle must respresent some form of DirectX7 Surface description but I can't find a C+ declaration to see if there are any similarities.
Has anyone else done any tinkering with these handles? Can you share any of your findings?
Thanks
-Vince
1. A Bank handle passed to a userlib is a pointer to a structure 16 bytes long.
2. The 2nd WORD of this structure appears to be a valid memory handle, and returns a size 8+bytes more than the Bank Size.
3. The 3rd WORD of this structure appears to be the size of the Bank.
I have also passed a handle to an Image and there is a similar underlying structure, however there seems to be more layers of pointers. I assume an Image handle must respresent some form of DirectX7 Surface description but I can't find a C+ declaration to see if there are any similarities.
Has anyone else done any tinkering with these handles? Can you share any of your findings?
Thanks
-Vince