I dove into the Python API ref with a guess. And the guess was… Clearing the texture stage would have a name probably like “clearTexture.”
Guess what? I was RIGHT!!! “Whoot!!”
Forgive me, but Panda’s Python API Ref is tough to read, so I consider it a win if I’m able to dig in there and get some useful function or method out; that’s why I’m “tickled pink” right now.
I’m use to well written API explanations like this:
Function - getDir(arg1, arg2);
This function returns the direction of an object. getDir takes two arguments. Arg1 must be the object name (string value). Arg2 is true or false (1 or 0). getDir will return the opposite direction of facing if Arg2 is 1 (true).
“Ghod”, I still can’t believe I had the balls to go into the Python API Ref.
I have a good idea about how to make sure resources are dumped and cleaned out when they are not needed for the game. I just remembered P3D has a third call besides, detachNode() and reparentTo(). That third call will free up resources, of course after all tasks are stopped and all references are severed.
What I need to know in order to go about doing this is… Does P3D have a function for truly restarting an application or will you the programmer have to “hard nose” code it? Because if it’s the latter, then resources really can’t be completely liquidated because you’ll need them again once you reset the game by resetting variables and recreating the first instances and so on; unless Panda “re-pulls” the data.
If P3D had a function for restarting the game and refreshing resources, which is the former, then completely dispatching resources the way I would like to would not be a problem.
First engine I’ve worked with that has no reset app, so this will be new to me.