, , , , . , , - ( XML JSON).
:
VAO , , , , .. , VBO VAO, . , , , VAO, VBOs, VBO.
(, ) . VAO (, , ). ? , - . , , . , , , . composite .
, , ..
( ) ? .
. , . , ( , ..) .
, , . , . , , VAO . singleton .
:
ModelHandle footman = resMan->getModel("footman.model");
footman->setLocation(x,y,z);
footman->draw();
getModel ( "footman.model" ) ,
MeshHandle resMan->getMesh("footman1.mesh");
. getMesh . , , , VAO, . VAO, . VAO.
, - , . , node, .
- . :
- singleton
?
- , ,
, ,
? singleton
, :
ResourceHandle h1 = Singleton<ResourceMan>::instance->getResource("foo");
ResourceMan myPrivateManager;
ResourceHandle h2 = myPrivateManager.getResource("bar");
VAO - , . ,
- .
, , . , . (.. ) VAO, VAO . ? , .
, , . VAO, , , , .
:
http://www.gamedev.net/page/resources/_/technical/game-programming/a-resource-manager-for-game-assets-r3807
http://www.gamedev.net/page/resources/_/technical/game-programming/a-simple-fast-resource-manager-using-c-and-stl-r2503
:
http://www.gameenginebook.com/