This should be a simple question, as I am pretty new to C++
What I need is to be able to tidy up my code and access parts from other points, to me these are functions, an example of what I imagine such a thing would be like is.
I've put in samples of the code I am using, its using the irrlicht engine for it.
Code://The code snippet function banana(); { //code scene::ISceneManager* smgr = device->getSceneManager(); } int main(); { banana(); scene::IAnimatedMesh* q3levelmesh = smgr->getMesh("room1.dmf"); scene::ISceneNode* q3node = 0; }
cheers.



LinkBack URL
About LinkBacks



