*** empty log message ***
authorJon Taylor <taylorj@ggi-project.org>
Sat, 21 Aug 1999 08:53:27 +0000 (08:53 +0000)
committerJon Taylor <taylorj@ggi-project.org>
Sat, 21 Aug 1999 08:53:27 +0000 (08:53 +0000)
progs/ggi/asc-view.c
progs/ggi/gears.c
src/mesa/drivers/ggi/default/linear_15.c
src/mesa/drivers/ggi/default/linear_16.c
src/mesa/drivers/ggi/default/linear_24.c
src/mesa/drivers/ggi/default/linear_32.c
src/mesa/drivers/ggi/default/linear_8.c

index 16f53e550911e083bc9bcf066103172d56801256..d37fba9d9f7b9dc07233cef7c8740962dc5d073e 100644 (file)
@@ -31,8 +31,8 @@ ggi_visual_t vis,vis_mem;
 
 GGIMesaContext ctx;
 
-int screen_x=320,screen_y=200;
-ggi_graphtype bpp=GT_16BIT;
+int screen_x=GGI_AUTO,screen_y=GGI_AUTO;
+ggi_graphtype bpp=GT_AUTO;
 
 //#define ZBUFFER
 
@@ -318,9 +318,32 @@ double Display(GLuint l,int *maxframes)
        return len;
 }
 
+void visible(int vis)
+{
+       if (vis == GLUT_VISIBLE)
+         glutIdleFunc(idle);
+       else
+         glutIdleFunc(NULL);
+}
 
-int main(int argc,char **argv)
+int main(int argc, char *argv[])
 {
+       glutInit(&argc, argv);
+       glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
+       
+       glutInitWindowPosition(0, 0);
+       glutInitWindowSize(300, 300);
+       glutCreateWindow("asc-view");
+       init();
+       
+       glutDisplayFunc(draw);
+       glutReshapeFunc(reshape);
+       glutKeyboardFunc(key);
+       glutSpecialFunc(special);
+       glutVisibilityFunc(visible);
+       
+       glutMainLoop();
+#if 0
        GLuint l;
        char *file;
        int maxframes=0;
@@ -348,6 +371,7 @@ int main(int argc,char **argv)
        ggiClose(vis);
        ggiClose(vis_mem);
        ggiExit();
+#endif
        return 0;
 }
 
index a6b5f7dda1aa495b01ad8f86af96aab3c92debdc..61a8b9f33112ee5357b16c35662533f42f95c860 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: gears.c,v 1.1 1999/08/21 06:27:37 jtaylor Exp $ */
+/* $Id: gears.c,v 1.2 1999/08/21 08:53:27 jtaylor Exp $ */
 
 /*
  * 3-D gear wheels.  This program is in the public domain.
@@ -8,26 +8,6 @@
 
 /* Conversion to GLUT by Mark J. Kilgard */
 
-/*
- * $Log: gears.c,v $
- * Revision 1.1  1999/08/21 06:27:37  jtaylor
- * *** empty log message ***
- *
- * Revision 1.5  1999/07/31 21:51:09  jtaylor
- * *** empty log message ***
- *
- * Revision 3.2  1999/06/03 17:07:36  brianp
- * an extra quad was being drawn in front and back faces
- *
- * Revision 3.1  1998/11/03 02:49:10  brianp
- * added fps output
- *
- * Revision 3.0  1998/02/14 18:42:29  brianp
- * initial rev
- *
- */
-
-
 #include <math.h>
 #include <stdlib.h>
 #include <stdio.h>
index 8eb89f979548b494ca73dcdb139e8891af942f78..05879d10a98a985942d7571cb4ca35e2f47cf48b 100644 (file)
@@ -31,5 +31,5 @@
 #define FB_TYPE uint16
 #define FB_BITS 15
 
-#include "../common/linear.c"
+#include "linear.c"
 
index d7eeef1123ad3f18765a6decb60b05dc4dadd7eb..221891bf20f19676fced72874bd21ba4bd504c22 100644 (file)
@@ -31,5 +31,5 @@
 #define FB_TYPE uint16
 #define FB_BITS 16
 
-#include "../common/linear.c"
+#include "linear.c"
 
index 6058a2a168a18ec8407ddd5420b10c685ca35406..0d315321f02ebae01e878c71e8ea6236f997f05b 100644 (file)
@@ -31,5 +31,5 @@
 #define FB_TYPE uint32
 #define FB_BITS 24
 
-#include "../common/linear.c"
+#include "linear.c"
 
index 13631b4747c4213745c517dc055109c8c4e1388e..d16a923b35993ade18930e5e6d0255bb53a35417 100644 (file)
@@ -31,5 +31,5 @@
 #define FB_TYPE uint32
 #define FB_BITS 32
 
-#include "../common/linear.c"
+#include "linear.c"
 
index 027f21f80d9a52ca0b8a74a7dbaf56754781d46d..19a3ee27e46309bd199c5c86bd2cb98916b271e8 100644 (file)
@@ -31,5 +31,5 @@
 #define FB_TYPE uint8
 #define FB_BITS 8
 
-#include "../common/linear.c"
+#include "linear.c"