Ok so i am working on this program using PhysX and one of the samples that comes with the library has a while loop that runs in the rendercall back function. like so
int nbActors = gScene->getNbActors();
NxActor** actors = gScene->getActors();
while(nbActors--){
NxActor* actor = *actors++;
///render all the stuff with physics :)
}
What i dont understand is that while loop. whats going on there exactly. from what i would guess its like incrementing through the number of actors and running the loop for each one but im not sure. could some one explaine this use of a while loop and or perhaps the use of the decrementer as something being passed like that.
Thanks