Definition at line 38 of file testOglImageCacheStore.h. 00038 { 00039 BOOST_REQUIRE(store); 00040 00041 OGLIMAGE* img = oglSys.OglImage(GL_RGB, 0, 0); 00042 BOOST_CHECK(!store->GetImage(1)); 00043 BOOST_REQUIRE(img); 00044 store->Add(img, 1); 00045 BOOST_CHECK_EQUAL(store->GetImage(1), img); 00046 00047 for(int i=2; i < 100; i++) { 00048 store->Add(oglSys.OglImage(GL_RGB, 0, 0), i); 00049 } 00050 BOOST_CHECK_EQUAL(store->GetImage(1), img); 00051 }
|