Norman Vine write: > > This should be doable using the current hitlist mechanism > and the current PLib code --untested but something like-- oops typo > if (entity_hit && entity_hit -> isAKindOf ( ssgLeaf () ) )
this pseudo code should be ssgEntity *entity_hit = hitlist -> get_entity( active_hit_idx ); if (entity_hit && entity_hit -> isAKindOf ( ssgTypeLeaf () ) ) { ssgState *st = ((ssgLeaf *)entity_hit) -> state; if ( st != NULL && st -> isAKindOf ( ssgTypeSimpleState () ) ) { ssgSimpleState *ss = (ssgSimpleState *) st ; char *tfname = ss -> getTextureFilename () ; /// !!! do something based on texture filename } } HTH Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel