| 120 | |
| 121 | |
| 122 | private: |
| 123 | // small helper function which sets the pointer to NULL before actually deleting |
| 124 | // the object it refers to |
| 125 | template<class T> |
| 126 | static inline void deleteHelper( T * * ptr ) |
| 127 | { |
| 128 | T * tmp = *ptr; |
| 129 | *ptr = NULL; |
| 130 | delete tmp; |
| 131 | } |
| 132 | |
| 133 | static float s_framesPerTick; |
| 134 |