comparison engine/core/util/resource/pool.h @ 654:5d6b1820b953

* Added the ability to change screen modes on the fly. This works both in OpenGL and SDL modes. * Added IEngineChangeListener so the client can update the cameras viewport if the screen mode has been changed. I chose to do it this way because the engine has no way to know which camera it should update. It will be up to the client to do it. * The cursor surface is now correctly freed when exiting. * Added DeviceCaps::getNearestScreenMode() for the client to request a supported screen mode. closes[t:315]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 21 Oct 2010 18:50:50 +0000
parents b84dbc4665b0
children
comparison
equal deleted inserted replaced
653:01acc9fc35ea 654:5d6b1820b953
132 * The location and loader information for the locations is lost. 132 * The location and loader information for the locations is lost.
133 * Only the resource loaders are retained. 133 * Only the resource loaders are retained.
134 */ 134 */
135 virtual void reset(); 135 virtual void reset();
136 136
137 private: 137 protected:
138 class PoolEntry { 138 class PoolEntry {
139 public: 139 public:
140 PoolEntry(): resource(0), location(0), loader(0) {} 140 PoolEntry(): resource(0), location(0), loader(0) {}
141 ~PoolEntry() { 141 ~PoolEntry() {
142 delete location; 142 delete location;