-void Context::ResetProgramMatrices()
-{
- const ProgramContainer::iterator endp = mProgramCache.end();
- for ( ProgramContainer::iterator itp = mProgramCache.begin(); itp != endp; ++itp )
- {
- (*itp).second->SetProjectionMatrix( NULL );
- (*itp).second->SetViewMatrix( NULL );
- }
-}
-
-Program* Context::GetCachedProgram( std::size_t hash ) const
-{
- std::map< std::size_t, Program* >::const_iterator iter = mProgramCache.find(hash);
-
- if (iter != mProgramCache.end())
- {
- return iter->second;
- }
- return NULL;
-}
-
-void Context::CacheProgram( std::size_t hash, Program* pointer )
-{
- mProgramCache[ hash ] = pointer;
-}
-