int main(int argc, char *argv[]) { try { kinect.initialize(); glutInitWindowPosition(100, 100); glutInitWindowSize(WIDTH, HEIGHT); glutInit(&argc, argv); glutCreateWindow(".MQOを読み込んで表示"); glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE); glutDisplayFunc(display); glutIdleFunc(idle); Init(); glutMainLoop(); mqoDeleteModel(model); mqoCleanup(); return 0; } catch ( std::exception& ex ) { std::cout << ex.what() << std::endl; } }
void main() { try { KinectSample kinect; kinect.initialize(); kinect.run(); } catch ( std::exception& ex ) { std::cout << ex.what() << std::endl; } }
int main(int argc, char *argv[]) { kinect.initialize(); glutInitWindowPosition(100, 100); glutInitWindowSize(WIDTH, HEIGHT); glutInit(&argc, argv); glutCreateWindow("バウンディングスフィア"); glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE); glutDisplayFunc(display); glutIdleFunc(idle); glutTimerFunc(10, timer, 0); Init(); glutMainLoop(); return 0; }
int main(int argc, char *argv[]) { try { kinect.initialize(); glutInitWindowPosition(100, 100); glutInitWindowSize(WIDTH, HEIGHT); glutInit(&argc, argv); glutCreateWindow("点を描画"); glutInitDisplayMode(GLUT_RGBA); glutDisplayFunc(display); glutIdleFunc(glut_idle); Init(); glutMainLoop(); return 0; } catch ( std::exception& ex ) { std::cout << ex.what() << std::endl; } }