]> git.mxchange.org Git - flightgear.git/blobdiff - Main/GLUTkey.c
Add xgl wrappers for debugging.
[flightgear.git] / Main / GLUTkey.c
index 838cc9aa5b8edbf7be3731b80016e54ed9ee03a9..66f139b75b3fbeb6c0ab93bab86e30cd11108502 100644 (file)
 #endif
 
 #include <GL/glut.h>
+#include "../XGL/xgl.h"
 #include <stdio.h>
 
 #include "GLUTkey.h"
 #include "views.h"
 
-#include "../constants.h"
+#include "../Include/constants.h"
 
 #include "../Aircraft/aircraft.h"
 #include "../Weather/weather.h"
@@ -45,9 +46,9 @@ extern int show_hud;             /* HUD state */
 
 /* Handle keyboard events */
 void GLUTkey(unsigned char k, int x, int y) {
-    struct CONTROLS *c;
-    struct VIEW *v;
-    struct WEATHER *w;
+    struct fgCONTROLS *c;
+    struct fgVIEW *v;
+    struct fgWEATHER *w;
 
     c = &current_aircraft.controls;
     v = &current_view;
@@ -87,7 +88,7 @@ void GLUTkey(unsigned char k, int x, int y) {
            return;
        case 90: /* Z key */
            w->visibility /= 1.10;
-           glFogf(GL_FOG_END, w->visibility);
+           xglFogf(GL_FOG_END, w->visibility);
            printf("Fog density = %.4f\n", w->visibility);
            return;
        }
@@ -131,7 +132,7 @@ void GLUTkey(unsigned char k, int x, int y) {
            return;
        case 122: /* z key */
            w->visibility *= 1.10;
-           glFogf(GL_FOG_END, w->visibility);
+           xglFogf(GL_FOG_END, w->visibility);
            printf("Fog density = %.4f\n", w->visibility);
            return;
        case 27: /* ESC */
@@ -144,8 +145,8 @@ void GLUTkey(unsigned char k, int x, int y) {
 
 /* Handle "special" keyboard events */
 void GLUTspecialkey(int k, int x, int y) {
-    struct CONTROLS *c;
-    struct VIEW *v;
+    struct fgCONTROLS *c;
+    struct fgVIEW *v;
 
     c = &current_aircraft.controls;
     v = &current_view;
@@ -224,9 +225,17 @@ void GLUTspecialkey(int k, int x, int y) {
 
 
 /* $Log$
-/* Revision 1.21  1997/08/27 21:32:23  curt
-/* Restructured view calculation code.  Added stars.
+/* Revision 1.23  1997/12/15 23:54:44  curt
+/* Add xgl wrappers for debugging.
+/* Generate terrain normals on the fly.
 /*
+ * Revision 1.22  1997/12/10 22:37:45  curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
+ * Revision 1.21  1997/08/27 21:32:23  curt
+ * Restructured view calculation code.  Added stars.
+ *
  * Revision 1.20  1997/08/27 03:30:13  curt
  * Changed naming scheme of basic shared structures.
  *