Added Mersenne Twister pseudo-random number generator ( really usefull and fast for some type of games if you want a deterministic random number generator ).

Reimplemented the tResourceManager, now uses std::list instead of std::map, and added some new methods.
cShapeGroupManager and cShapeGroup now inherits from tResourceManager.
Rolled back eeUint and eeInt, now are fine again ( it was changed for testing ).
This commit is contained in:
spartanj
2010-08-01 18:16:27 -03:00
parent 0a3d6e0728
commit 74e6eacd15
16 changed files with 463 additions and 271 deletions

View File

@@ -11,13 +11,10 @@ cShaderProgramManager::~cShaderProgramManager()
}
void cShaderProgramManager::Reload() {
std::map<std::string, cShaderProgram*>::iterator it;
std::list<cShaderProgram*>::iterator it;
for ( it = mResources.begin(); it != mResources.end(); it++ ) {
cShaderProgram * sp = reinterpret_cast< cShaderProgram* > ( it->second );
sp->Reload();
}
for ( it = mResources.begin(); it != mResources.end(); it++ )
(*it)->Reload();
}
}}