Question about types and pointers...

BlitzMax Forums/BlitzMax Beginners Area/Question about types and pointers...

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.

But what if you don't know what it is until you load it? Let's say I have a type that describes mesh data and another that describes a light. When I actually load the object, I find out what type it is and go to the appropriate loading code, which fills in the obj field. It seems I can't do that without an unknown type or some kind of variable pointer.

I realize I could just create extended types with node as the base, but it would be nice if it could be more generic than that. I already have a nice system in 3dsMax that will easily write out any struct data with minimal effort on my part. I was hoping to be able to create something equivalent in Blitz Max.

Nuts!