In this recipe we want to introduce you to a new class,
OpenNI::PlaybackControl. Using this class, you can seek a frame as well as repeat and change the speed of playback easily.
Create a project in Visual Studio 2010 and prepare it for working with OpenNI using the Creating a project in Visual Studio 2010 recipe of Chapter 2, Open NI and C++. After that, configure Visual Studio 2010 to use OpenGL using the Configuring Visual Studio 2010 to use OpenGL recipe of this chapter.
int window_w = 640; int window_h = 480; OniRGB888Pixel* gl_texture; VideoStream depthSensor; Device device; PlaybackControl* ...