A couple more runway tweaks ...
This commit is contained in:
parent
e41db26287
commit
0688c54540
3 changed files with 27 additions and 18 deletions
|
@ -73,10 +73,10 @@ void GLUTkey(unsigned char k, int x, int y) {
|
|||
} else {
|
||||
switch (k) {
|
||||
case 50: /* numeric keypad 2 */
|
||||
fgElevMove(-0.02);
|
||||
fgElevMove(-0.05);
|
||||
return;
|
||||
case 56: /* numeric keypad 8 */
|
||||
fgElevMove(0.02);
|
||||
fgElevMove(0.05);
|
||||
return;
|
||||
case 49: /* numeric keypad 1 */
|
||||
fgElevTrimMove(-0.001);
|
||||
|
@ -85,16 +85,16 @@ void GLUTkey(unsigned char k, int x, int y) {
|
|||
fgElevTrimMove(0.001);
|
||||
return;
|
||||
case 52: /* numeric keypad 4 */
|
||||
fgAileronMove(-0.02);
|
||||
fgAileronMove(-0.05);
|
||||
return;
|
||||
case 54: /* numeric keypad 6 */
|
||||
fgAileronMove(0.02);
|
||||
fgAileronMove(0.05);
|
||||
return;
|
||||
case 48: /* numeric keypad Ins */
|
||||
fgRudderMove(-0.02);
|
||||
fgRudderMove(-0.05);
|
||||
return;
|
||||
case 13: /* numeric keypad Enter */
|
||||
fgRudderMove(0.02);
|
||||
fgRudderMove(0.05);
|
||||
return;
|
||||
case 53: /* numeric keypad 5 */
|
||||
fgAileronSet(0.0);
|
||||
|
@ -135,16 +135,16 @@ void GLUTspecialkey(int k, int x, int y) {
|
|||
|
||||
switch (k) {
|
||||
case GLUT_KEY_UP:
|
||||
fgElevMove(0.02);
|
||||
fgElevMove(0.05);
|
||||
return;
|
||||
case GLUT_KEY_DOWN:
|
||||
fgElevMove(-0.02);
|
||||
fgElevMove(-0.05);
|
||||
return;
|
||||
case GLUT_KEY_LEFT:
|
||||
fgAileronMove(-0.02);
|
||||
fgAileronMove(-0.05);
|
||||
return;
|
||||
case GLUT_KEY_RIGHT:
|
||||
fgAileronMove(0.02);
|
||||
fgAileronMove(0.05);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -152,9 +152,12 @@ void GLUTspecialkey(int k, int x, int y) {
|
|||
|
||||
|
||||
/* $Log$
|
||||
/* Revision 1.10 1997/06/18 02:21:23 curt
|
||||
/* Hacked in a runway
|
||||
/* Revision 1.11 1997/06/18 04:10:31 curt
|
||||
/* 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
|
||||
* A tiny bit more view tweaking.
|
||||
*
|
||||
|
|
|
@ -292,7 +292,7 @@ GLint fgRunwayHack(double width, double length) {
|
|||
static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
|
||||
static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 };
|
||||
int i;
|
||||
int num_lines = 8;
|
||||
int num_lines = 16;
|
||||
float line_len, line_width_2, cur_pos;
|
||||
|
||||
runway = glGenLists(1);
|
||||
|
@ -534,9 +534,12 @@ int main( int argc, char *argv[] ) {
|
|||
|
||||
|
||||
/* $Log$
|
||||
/* Revision 1.18 1997/06/18 02:21:24 curt
|
||||
/* Hacked in a runway
|
||||
/* Revision 1.19 1997/06/18 04:10:31 curt
|
||||
/* 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
|
||||
* Timer interval stuff now uses gettimeofday() instead of ftime()
|
||||
*
|
||||
|
|
|
@ -46,7 +46,7 @@ GLint mesh2GL(struct mesh *m) {
|
|||
int i, j, istep, jstep, iend, jend;
|
||||
float temp;
|
||||
|
||||
istep = jstep = 16; /* Detail level 1 -- 1200 ... */
|
||||
istep = jstep = 25; /* Detail level 1 -- 1200 ... */
|
||||
|
||||
mesh = glGenLists(1);
|
||||
glNewList(mesh, GL_COMPILE);
|
||||
|
@ -108,9 +108,12 @@ GLint mesh2GL(struct mesh *m) {
|
|||
|
||||
|
||||
/* $Log$
|
||||
/* Revision 1.19 1997/06/18 02:21:24 curt
|
||||
/* Hacked in a runway
|
||||
/* Revision 1.20 1997/06/18 04:10:32 curt
|
||||
/* 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
|
||||
* More timer related tweaks with respect to view direction changes.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue