I've written my .X importer proggie, but I've comeup with a few problems I could do with a hand with.
1) At the mo I hold all the shape data in a static type:
Which of course is fine as long as it isnt a big object..
But, is it possible to use variable allocated space - when I read the file and find out the number of arrays I need to hold the data, can these be allocated/increased at runtime ?.
2) How can I pass a pointer to the object type, over to the function ? At the mo its hard coded - so it knows what object type to use.
Some advice please ;)
1) At the mo I hold all the shape data in a static type:
Type obj_data Global num_of_verts:Int Global num_of_faces:Int Field face1:Int[80] Field face2:Int[80] Field face3:Int[80] Field vertx:Float[50] Field verty:Float[50] Field vertz:Float[50] End Type
Which of course is fine as long as it isnt a big object..
But, is it possible to use variable allocated space - when I read the file and find out the number of arrays I need to hold the data, can these be allocated/increased at runtime ?.
2) How can I pass a pointer to the object type, over to the function ? At the mo its hard coded - so it knows what object type to use.
Some advice please ;)