Cuda newbie: Converting Device Buffer to OpenGL Texture

As the title says, I have an buffer on the device, and I would like to convert it to an OpenGL texture.

Is my only option to map an OpenGL pixel buffer and copy the buffer on the device to the pixel buffer?

Also what kind of buffers can cudaGLMapBufferObject map? I know it can map pixel buffers, but what else?