void printRecordingInfo() { char csMessage[256]; getCaptureMessage(csMessage); if (csMessage[0] != 0) drawCenteredMessage(GLUT_BITMAP_TIMES_ROMAN_24, 30, csMessage, 1, 0, 0); sprintf(csMessage, "Capture Formats - Depth: %s | Image: %s | IR: %s | Audio: %s", captureGetDepthFormatName(), captureGetImageFormatName(), captureGetIRFormatName(), captureGetAudioFormatName()); drawCenteredMessage(GLUT_BITMAP_HELVETICA_12, WIN_SIZE_Y - 3, csMessage, 0, 1, 0); }
void printRecordingInfo() { char csMessage[256]; getCaptureMessage(csMessage); if (csMessage[0] != 0) drawCenteredMessage(GLUT_BITMAP_TIMES_ROMAN_24, 30, csMessage, 1, 0, 0); XnUInt32 nWritten; xnOSStrFormat(csMessage, sizeof(csMessage), &nWritten, "Image registration is %s. Capture Formats - Depth: %s | Image: %s | IR: %s", getDevice().getImageRegistrationMode() == openni::IMAGE_REGISTRATION_OFF ? "off " : "on", captureGetDepthFormatName(), captureGetColorFormatName(), captureGetIRFormatName()); drawCenteredMessage(GLUT_BITMAP_HELVETICA_12, WIN_SIZE_Y - 3, csMessage, 0, 1, 0); }