Concept of groups

View previous topic View next topic Go down

Concept of groups

Post  david4482 on Sat Jan 24, 2009 10:12 am

Hello only spent a few hours with api so far but just wondering if grouping SIO2objects for convenience of transformation had been considered?

I created my own group class in similar way to sio2_resource works but just for SIO2objects. Is this a good way to work, how are other people applying transformations to a bunch of objects (through lower level)? What about groups in Blender should they not be recognized in exporter?

P.s Great work on engine and blender integration.

#import "sio2_vector.h"
typedef struct
{

unsigned int n_object;
void **_SIO2object;

} Group;


Group *groupInit( void );

Group *groupFree( Group *_Group );

void groupAdd( Group *_Group, void *_ptr );

void groupDel( Group *_Group, void *_ptr );

void groupRotate( Group *_Group, vec3 *_ptr );
... etc group transformations

#endif

david4482

Posts : 7
Join date : 2009-01-24

View user profile

Back to top Go down

Re: Concept of groups

Post  sio2interactive on Sat Jan 24, 2009 4:34 pm

That sounds really good can you please send me a test project demonstrating your addition to the API, so I can review it and probably include that in the next revision (which should be out shortly)...

Cheers,
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Concept of groups

Post  david4482 on Sun Jan 25, 2009 5:38 am

Sure sio2interactive@gmail.com right. Sent zip, beginnings of a game I am working on.

david4482

Posts : 7
Join date : 2009-01-24

View user profile

Back to top Go down

Re: Concept of groups

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum