From: salazar (jsalaz3@almez.pntic.mec.es)
Date: Wed 17 May 2000 - 01:29:53 IDT
Why don' t work the time?
How can I repair it ?
#include <time.h>
#include <stdio.h>
#include <vga.h>
#include <vgagl.h>
#include <vgamouse.h>
long tiempo;
main(){
vga_init();
vga_setmousesupport(1);
vga_setmode(80);
gl_setcontextvga(80);
gl_clearscreen(2);
tiempo=clock()+5000000;
while( tiempo > clock() ) {
raton();
}
mouse_close();
vga_setmode(0);
exit(0);
}
raton(){
int x,y;
mouse_waitforupdate(); // Crea problemas al retardo, pero en el
//programa de "verdad" no puedo usar
// mouse_update.
x = mouse_getx();
y = mouse_gety();
gl_line(x,y,x+5,y+6,14);
gl_line(x, y+1,x+2,y+1,14);
gl_line(x, y+2,x+4,y+2,14);
gl_line(x, y+3,x+6,y+3,14);
}
Thank's
Perdonad las pocas explicaciones, pero tengo "problemas" con el ingles.
jsalaz3@almez.pntic.mec.es
This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST