| 
 | 
| 
		 À tout cela on ajoute un main.cpp :  
	
		
			
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 
			 | 
			
#include <iostream>
#include "apptest.h"
using namespace std;
const unsigned int WIDTH = 800;
const unsigned int HEIGHT = 600;
int main(int argc, char** argv){
	AppTest app(WIDTH, HEIGHT, 1, 1000, 70, "test SDLOpenGl_app");
	
	Vecteur position(-5, 0, 9);
	double theta = 0;
	double phi = 3*M_PI/4;
	double rouli = M_PI/2;
	app.setCamera(position, theta, phi, rouli);
	
	app.executer();
	return 0;
}
			 | 
 
	
 
		Voilà pour le main.cpp.  
 | 
| 
 |