Module Format Preference

BlitzMax Forums/BlitzMax Programming/Module Format Preference

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

It's an interface to a DLL which is not normally accessible from BlitzMax. The point of the exercise is to return the exact same thing you get if you use the DLL in any other language. If I change all the return values, existing code for the DLL is horribly broken and everyone has to learn my syntax instead of the engine's syntax. Besides, you need to be able to pass and return the vectors.

In the position example, suppose you want to Get the position vector, add another vector to it and then use it to set the position. That's gonna be a horrible mess in separate coordinates.

Yes, I could make a GetCoordinates method, but I'm not going to, because option number 2 already does exactly that, albeit with a slightly modified syntax and the ability to use all the included vector operations on the return value, like dot, length, and vector maths.

The module will be open source, so if anyone wanted a GetCoordinates method, they can write it themselves. I plan on writing my own functions when it's done too. I'm talking about the pure wrap of the DLL classes.