Suggestion for BlitzMax

BlitzMax Forums/OpenGL Module/Suggestion for BlitzMax

StuC(Posted 2005) [#1]
G'Day Mark. Some suggestions for enhancements to the BlitzMax language.

Previously, I'd suggested an absolute 'Type' for BlitzMax, where the programmer could declare a type that was laid out in memory as declared - no blitz overhead. This would be huge for interfacing with external APIs in OpenGL and DirectX (and other libraries). Yes, an advanced feature, since the type is unlikely to be automatically garbage collected under the current scheme.

If this is not going to be considered any more, how about providing intrinsic types like 'Vec3f', 'Vec3i', 'Color3f', 'Color3b', etc..

Then if we declared
Local vec_array:Vec3f[100]
we could use this for passing to the vertex buffer functions of OpenGl (or DirectX)...

Also, our code would be more intuitive, being able to access the x, y, z members directly.

Yes, we can declare a float array, but this is just tedious, and creates code that is not very readable.