1
0
Fork 0

A couple more runway tweaks ...

This commit is contained in:
curt 1997-06-18 04:10:31 +00:00
parent e41db26287
commit 0688c54540
3 changed files with 27 additions and 18 deletions

View file

@ -73,10 +73,10 @@ void GLUTkey(unsigned char k, int x, int y) {
} else { } else {
switch (k) { switch (k) {
case 50: /* numeric keypad 2 */ case 50: /* numeric keypad 2 */
fgElevMove(-0.02); fgElevMove(-0.05);
return; return;
case 56: /* numeric keypad 8 */ case 56: /* numeric keypad 8 */
fgElevMove(0.02); fgElevMove(0.05);
return; return;
case 49: /* numeric keypad 1 */ case 49: /* numeric keypad 1 */
fgElevTrimMove(-0.001); fgElevTrimMove(-0.001);
@ -85,16 +85,16 @@ void GLUTkey(unsigned char k, int x, int y) {
fgElevTrimMove(0.001); fgElevTrimMove(0.001);
return; return;
case 52: /* numeric keypad 4 */ case 52: /* numeric keypad 4 */
fgAileronMove(-0.02); fgAileronMove(-0.05);
return; return;
case 54: /* numeric keypad 6 */ case 54: /* numeric keypad 6 */
fgAileronMove(0.02); fgAileronMove(0.05);
return; return;
case 48: /* numeric keypad Ins */ case 48: /* numeric keypad Ins */
fgRudderMove(-0.02); fgRudderMove(-0.05);
return; return;
case 13: /* numeric keypad Enter */ case 13: /* numeric keypad Enter */
fgRudderMove(0.02); fgRudderMove(0.05);
return; return;
case 53: /* numeric keypad 5 */ case 53: /* numeric keypad 5 */
fgAileronSet(0.0); fgAileronSet(0.0);
@ -135,16 +135,16 @@ void GLUTspecialkey(int k, int x, int y) {
switch (k) { switch (k) {
case GLUT_KEY_UP: case GLUT_KEY_UP:
fgElevMove(0.02); fgElevMove(0.05);
return; return;
case GLUT_KEY_DOWN: case GLUT_KEY_DOWN:
fgElevMove(-0.02); fgElevMove(-0.05);
return; return;
case GLUT_KEY_LEFT: case GLUT_KEY_LEFT:
fgAileronMove(-0.02); fgAileronMove(-0.05);
return; return;
case GLUT_KEY_RIGHT: case GLUT_KEY_RIGHT:
fgAileronMove(0.02); fgAileronMove(0.05);
return; return;
} }
@ -152,9 +152,12 @@ void GLUTspecialkey(int k, int x, int y) {
/* $Log$ /* $Log$
/* Revision 1.10 1997/06/18 02:21:23 curt /* Revision 1.11 1997/06/18 04:10:31 curt
/* Hacked in a runway /* A couple more runway tweaks ...
/* /*
* Revision 1.10 1997/06/18 02:21:23 curt
* Hacked in a runway
*
* Revision 1.9 1997/06/02 03:40:06 curt * Revision 1.9 1997/06/02 03:40:06 curt
* A tiny bit more view tweaking. * A tiny bit more view tweaking.
* *

View file

@ -292,7 +292,7 @@ GLint fgRunwayHack(double width, double length) {
static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 }; static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 }; static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 };
int i; int i;
int num_lines = 8; int num_lines = 16;
float line_len, line_width_2, cur_pos; float line_len, line_width_2, cur_pos;
runway = glGenLists(1); runway = glGenLists(1);
@ -534,9 +534,12 @@ int main( int argc, char *argv[] ) {
/* $Log$ /* $Log$
/* Revision 1.18 1997/06/18 02:21:24 curt /* Revision 1.19 1997/06/18 04:10:31 curt
/* Hacked in a runway /* A couple more runway tweaks ...
/* /*
* Revision 1.18 1997/06/18 02:21:24 curt
* Hacked in a runway
*
* Revision 1.17 1997/06/17 16:51:58 curt * Revision 1.17 1997/06/17 16:51:58 curt
* Timer interval stuff now uses gettimeofday() instead of ftime() * Timer interval stuff now uses gettimeofday() instead of ftime()
* *

View file

@ -46,7 +46,7 @@ GLint mesh2GL(struct mesh *m) {
int i, j, istep, jstep, iend, jend; int i, j, istep, jstep, iend, jend;
float temp; float temp;
istep = jstep = 16; /* Detail level 1 -- 1200 ... */ istep = jstep = 25; /* Detail level 1 -- 1200 ... */
mesh = glGenLists(1); mesh = glGenLists(1);
glNewList(mesh, GL_COMPILE); glNewList(mesh, GL_COMPILE);
@ -108,9 +108,12 @@ GLint mesh2GL(struct mesh *m) {
/* $Log$ /* $Log$
/* Revision 1.19 1997/06/18 02:21:24 curt /* Revision 1.20 1997/06/18 04:10:32 curt
/* Hacked in a runway /* A couple more runway tweaks ...
/* /*
* Revision 1.19 1997/06/18 02:21:24 curt
* Hacked in a runway
*
* Revision 1.18 1997/06/17 04:19:17 curt * Revision 1.18 1997/06/17 04:19:17 curt
* More timer related tweaks with respect to view direction changes. * More timer related tweaks with respect to view direction changes.
* *