diff --git a/DEV1.1/TP14:BiblioGraph/exemple.c b/DEV1.1/TP14:BiblioGraph/exemple.c new file mode 100644 index 0000000..746e0bf --- /dev/null +++ b/DEV1.1/TP14:BiblioGraph/exemple.c @@ -0,0 +1,12 @@ +#include +#include + +int main() +{ + InitialiserGraphique(); + CreerFenetre(10,10,500,500); + EcrireTexte(10,100,"Hello World !",2); + Touche(); + FermerGraphique(); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/TP14:BiblioGraph/fenetre.c b/DEV1.1/TP14:BiblioGraph/fenetre.c new file mode 100644 index 0000000..f8bbcf5 --- /dev/null +++ b/DEV1.1/TP14:BiblioGraph/fenetre.c @@ -0,0 +1,16 @@ +#include +#include +#include + +int main() +{ + InitialiserGraphique(); + CreerFenetre(10,10,480,270); + int touche; + while(!ToucheEnAttente){} + touche=Touche(); + if(touche==0xff80){ + FermerGraphique(); + } + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/TP14:BiblioGraph/formes.c b/DEV1.1/TP14:BiblioGraph/formes.c new file mode 100644 index 0000000..093b73d --- /dev/null +++ b/DEV1.1/TP14:BiblioGraph/formes.c @@ -0,0 +1,16 @@ +#include +#include +#include + +int main() +{ + InitialiserGraphique(); + CreerFenetre(10,10,480,270); + int touche; + while(!ToucheEnAttente){} + touche=Touche(); + if(touche==0xff80){ + FermerGraphique(); + } + return EXIT_SUCCESS; +} \ No newline at end of file