MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / seek

Function seek

Samples/NiViewer/NiViewer.cpp:179–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void seek(int nDiff)
180{
181 if (!isPlayerOn())
182 {
183 displayMessage("Seeking is only supported in playback mode!");
184 return;
185 }
186
187 seekFrame(nDiff);
188
189 // now step the last one (that way, if seek is not supported, as in sensor, at least one frame
190 // will be read).
191 g_bPause = false;
192 g_bStep = true;
193}
194
195void init_opengl()
196{

Callers

nothing calls this directly

Calls 3

isPlayerOnFunction · 0.85
displayMessageFunction · 0.85
seekFrameFunction · 0.85

Tested by

no test coverage detected