Using Texture2DArrays

I want a texture atlas and a 2D one won’t work.

I have my game running fine with a 3D texture where the Z axis is the texture I want to access.

But I want mipmaps too, so I need to use Texture2DArray. The documentation is rather unclear and there are no tuts on the internet showing how to use them. From what I’ve heard, they are pretty much 3D textures.

Could someone point me in the right direction?

The main thing I want to know is how to create one (using glTexImage3D()?)

http://developer.download.nvidia.com/SDK/10.5/opengl/samples.html#simple_texture_array