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!
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!