C-code for rendering the depth stream from kinect