From 3a0e4b5192e0e597f9b1dc74cecbf0c7b8a51b45 Mon Sep 17 00:00:00 2001 From: pourchot Date: Wed, 30 Nov 2022 15:31:01 +0100 Subject: [PATCH] 30 Novembre --- DEV1.1/TP14:BiblioGraph/exemple.c | 12 ++++++++++++ DEV1.1/TP14:BiblioGraph/fenetre.c | 16 ++++++++++++++++ DEV1.1/TP14:BiblioGraph/formes.c | 16 ++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 DEV1.1/TP14:BiblioGraph/exemple.c create mode 100644 DEV1.1/TP14:BiblioGraph/fenetre.c create mode 100644 DEV1.1/TP14:BiblioGraph/formes.c 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