Original Post
Lets say i have 3 classes
Engine, Sound and Model
engine.h
class Engine
InitEngine(); //Load all resources into engine Lists
vector pSoundList;
vector pModelList;
sound.h
class Sound
filename
Load
...
model.h
class Model
vector PointerToSoundResource;
...
main.cpp
//include
Engine GameSystem;
main() {
GameSystem.InitEngine();
}
PointerToSoundResource should point to Sound items already loaded into memory in the GameSystem Object. But how would the class Model get access? though this of course will not work, it gets my point across. in model.h''s class body, GameSystem.pSoundList[0] , except, there is no GameSystem object in scope even though GameSystem is made in global scope=/
}