]> git.mxchange.org Git - flightgear.git/commitdiff
Ctrl-R now reverses default polygon winding so I can see if a hole in the
authorcurt <curt>
Tue, 20 Oct 1998 14:58:57 +0000 (14:58 +0000)
committercurt <curt>
Tue, 20 Oct 1998 14:58:57 +0000 (14:58 +0000)
terrain is a result of improper winding, or if it is just an empty hole.

Main/GLUTkey.cxx

index ebc72535e5ec2770e06f511cf70a70faeed8092e..357bcab0c0d31d84f1c10cebf27766758985ad73 100644 (file)
@@ -75,6 +75,7 @@ void GLUTkey(unsigned char k, int x, int y) {
     fgVIEW *v;
     struct fgWEATHER *w;
     float fov, tmp;
+    static bool winding_ccw = true;
 
     c = current_aircraft.controls;
     f = current_aircraft.flight;
@@ -94,6 +95,15 @@ void GLUTkey(unsigned char k, int x, int y) {
        case 8: // Ctrl-H key
            fgAPToggleHeading();
            return;
+       case 18: // Ctrl-R key
+           // temporary
+           winding_ccw = !winding_ccw;
+           if ( winding_ccw ) {
+               glFrontFace ( GL_CCW );
+           } else {
+               glFrontFace ( GL_CW );
+           }
+           return;
        case 19: // Ctrl-S key
            fgAPToggleAutoThrottle();
            return;
@@ -381,6 +391,10 @@ void GLUTspecialkey(int k, int x, int y) {
 
 
 // $Log$
+// Revision 1.29  1998/10/20 14:58:57  curt
+// Ctrl-R now reverses default polygon winding so I can see if a hole in the
+// terrain is a result of improper winding, or if it is just an empty hole.
+//
 // Revision 1.28  1998/10/17 01:34:20  curt
 // C++ ifying ...
 //