--- Irrlicht.old/include/irrArray.h 2005-03-28 10:28:48.000000000 +0200 +++ water/include/irrArray.h 2005-04-08 18:47:43.000000000 +0200 @@ -454,6 +454,37 @@ bool free_when_destroyed; bool is_sorted; }; +// This lets you access a dynamic array as a two dimensional +// array. It'll be interpreted as an array of rows (it's like indexing +// into a standard C++ 2D array). +template +class array2D +{ +public: + array2D(T* d, u32 r, u32 c) + :data(d), + rows(r), + columns(c) + { + } + + T& operator ()(u32 r, u32 c) + { + //if(r