Ejemplo n.º 1
0
/*
 * Function that handles the events that could occur at the menu
 */
void manageMenu() {
    int selectedOption = 1;
    
    while (selectedOption != 0) {
        printMenu();
        printf("\nEnter your option:\n> ");
        scanf("%d", &selectedOption);
        
        switch (selectedOption) {
            case 1:
                startMatrix();
                break;
                
            case 2:
                manageAssignOrGetOption(1);
                break;
                
            case 3:
                manageAssignOrGetOption(0);
                break;
                
            case 4:
                manageMultiplyOption();
                
            default:
                break;
                
            case 9:
                stopMatrix();
                break;
        }
    }
    
    printf("\nBye :D \n");
}
Ejemplo n.º 2
0
void OtherScene::initCamera(Camera3D * camera) {
	Matrix4 startMatrix(0.942188, -0.00602069, 0.335031,  99.698,
						0.0169787, 0.999412,  -0.0297883, 37.7852,
						-0.334655, 0.0337545,  0.941736,  341.313,
						0,       0,       0,       1);
	camera->setTransformation(startMatrix);
}