00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef VERY_SIMPLE_GL_H_INCLUDED
00020 #define VERY_SIMPLE_GL_H_INCLUDED
00021
00042 #include <vector>
00043 #include "quickcg.h"
00044
00045 using namespace QuickCG;
00046 using namespace std;
00047 #include "vsgl_types.h";
00048 #include "oggettografico.h"
00049 #include "rettangolo.h"
00050 #include "cerchio.h"
00051 #include "linea.h"
00052 #include "sprite.h"
00053
00054 extern int mouseX;
00055 extern int mouseY;
00056 extern bool mouseTD;
00057 extern bool mouseTS;
00058
00059
00075 void inizializza_grafica(int larghezza, int altezza, int fullscreen, const char* titolo);
00076
00083 void disegna_punto(int x, int y, const Colore& c);
00084
00092 Colore crea_colore(int r, int g, int b);
00093
00102 void scrivi(int x, int y, const char *s, const Colore& c = BIANCO);
00103
00110 void aggiorna_schermo();
00111
00116 void pausa();
00117
00125 void pulisci_schermo(const Colore& c = NESSUN_COLORE);
00126
00133 void imposta_colore_sfondo(const Colore& c = NERO);
00150 int crea_rettangolo(int x, int y, int larghezza, int altezza, const Colore& c = BIANCO);
00151
00166 int crea_cerchio(int x, int y, int r, const Colore& c = BIANCO);
00167
00182 int crea_linea(int x1, int y1, int x2, int y2, const Colore& c = BIANCO);
00183
00197 int crea_sprite(int x, int y, const string& filename);
00198
00208 void disegna_oggetto(int indice_oggetto);
00209
00216 void disegna_oggetti();
00217
00229 void muovi_oggetto(int x, int y, int indice_oggetto);
00230
00236 void ritardo(int millisecondi);
00237
00243 void leggi_mouse();
00244
00251 int fatto();
00252
00267 void leggi_stringa(char* input, const char* messaggio, int cancella, int x, int y, const Colore& c = NERO);
00268
00269
00270 #endif // VERY_SIMPLE_GL_H_INCLUDED