[Plib-cvs] plib/src/ssg ssg.h,1.165,1.166
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2003-12-14 10:50:20
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv16461 Modified Files: ssg.h Log Message: mergeHNodes: New function that merges hierarchy nodes that are "compatible" (same texture, name etc) getAs_ssgVtxArray and addIndex: Two small "utility" functions I needed for my new features. Index: ssg.h =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssg.h,v retrieving revision 1.165 retrieving revision 1.166 diff -u -d -r1.165 -r1.166 --- ssg.h 12 Dec 2003 17:40:21 -0000 1.165 +++ ssg.h 13 Dec 2003 21:22:42 -0000 1.166 @@ -1472,6 +1472,8 @@ return (getNumColours()<=0) ? _ssgColourWhite : colours->get(i);} + ssgVtxArray *getAs_ssgVtxArray (); + virtual ~ssgVtxTable (void) ; virtual const char *getTypeName(void) ; @@ -1562,6 +1564,7 @@ virtual void pick ( int baseName ) ; void setIndices ( ssgIndexArray *il ) ; + void addIndex ( short i) { indices->add(i); } int getNumIndices () { return indices -> getNum () ; } @@ -1617,6 +1620,8 @@ void removeAllKids (void) ; void replaceKid ( int n, ssgEntity *new_entity ) ; void replaceKid ( ssgEntity *old_entity, ssgEntity *new_entity ) ; + + void mergeHNodes(); virtual ssgEntity *getByName ( char *match ) ; virtual ssgEntity *getByPath ( char *path ) ; |