| 367 | } |
| 368 | |
| 369 | void createStream(Generator& generator, XnProductionNodeType type) |
| 370 | { |
| 371 | EnumerationErrors errors; |
| 372 | XnStatus nRetVal = g_Context.CreateAnyProductionTree(type, NULL, generator, &errors); |
| 373 | if (nRetVal == XN_STATUS_NO_NODE_PRESENT) |
| 374 | { |
| 375 | XnChar strError[1024]; |
| 376 | errors.ToString(strError, 1024); |
| 377 | displayMessage("%s", strError); |
| 378 | return; |
| 379 | } |
| 380 | else if (nRetVal != XN_STATUS_OK) |
| 381 | { |
| 382 | displayMessage("Open failed: %s", xnGetStatusString(nRetVal)); |
| 383 | return; |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | void toggleStream(Generator& generator, XnProductionNodeType type, bool* bIsOn) |
| 388 | { |
no test coverage detected