1
0
Fork 0
Commit graph

59 commits

Author SHA1 Message Date
curt
5b752bfb5f C++ ifying ... 1998-10-17 01:33:52 +00:00
curt
bf5fb5108b C++-ifying. 1998-10-16 23:26:44 +00:00
curt
7e240adff1 Converted to Point3D class. 1998-10-16 00:51:46 +00:00
curt
3e24bc7e23 Added an "auto throttle" 1998-10-02 12:46:43 +00:00
curt
c464527318 Use working() instead of !not_working() for audio. 1998-09-29 14:58:18 +00:00
curt
a09d8f2d62 Autopilot mods. 1998-09-29 02:03:36 +00:00
curt
6b2447c6c4 Check if audio "working()" before doing audio manipulations. 1998-09-26 13:18:35 +00:00
curt
be2f27bd66 Added support for pitch and volume envelopes and tied them to the
throttle setting.
1998-09-25 16:02:07 +00:00
curt
6f91b7db68 Changes for new Astro code. 1998-09-15 04:27:27 +00:00
curt
c4dbcd55b1 Include/fg_callback.hxx
Moved code inline to stop g++ 2.7 from complaining.

Simulator/Time/event.[ch]xx
  Changed return type of fgEVENT::printStat().  void caused g++ 2.7 to
  complain bitterly.

Minor bugfix and changes.

Simulator/Main/GLUTmain.cxx
  Added missing type to idle_state definition - eliminates a warning.

Simulator/Main/fg_init.cxx
  Changes to airport lookup.

Simulator/Main/options.cxx
  Uses fg_gzifstream when loading config file.
1998-09-15 02:09:24 +00:00
curt
723f54c78b Only use GLUT_STENCIL if the instument panel has been requested. 1998-09-09 16:25:39 +00:00
curt
48ea415f69 Added new cockpit code from Friedemann Reinhard
<mpt218@faupt212.physik.uni-erlangen.de>
1998-08-28 18:14:39 +00:00
curt
283a23159a Contributions from Bernie Bright <bbright@c031.aone.net.au>
- use strings for fg_root and airport_id and added methods to return
  them as strings,
- inlined all access methods,
- made the parsing functions private methods,
- deleted some unused functions.
- propogated some of these changes out a bit further.
1998-08-27 17:01:55 +00:00
curt
e33dbca814 Attempting to iron out seg faults and crashes.
Did some shuffling to fix a initialization order problem between view
position, scenery elevation.
1998-08-22 14:49:55 +00:00
curt
3eb6f1d640 Reshuffled some of the code in and around views.[ch]xx 1998-08-20 20:32:31 +00:00
curt
f1b0e32e37 Added GameGLUT support. 1998-08-20 15:10:33 +00:00
curt
b15b1909c6 Master volume from 30% -> 80% 1998-08-12 21:01:47 +00:00
curt
e81eeba64f Output position & orientation when pausing.
Eliminated libtool use.
Added options to specify initial position and orientation.
Changed default fov to 55 degrees.
Added command line option to start in paused or unpaused state.
1998-07-30 23:48:24 +00:00
curt
6d427da8d8 Added a pause command "p"
Fixed some initialization order problems between pui and glut.
Added an --enable/disable-sound option.
1998-07-27 18:41:23 +00:00
curt
009c34bd23 Set near clip plane to 0.5 meters when close to the ground. Also, let the view get a bit closer to the ground before hitting the hard limit. 1998-07-24 21:56:59 +00:00
curt
f6f21702ce Debugging output tweaks.
Cast glGetString to (char *) to avoid compiler errors.
Optimizations to fgGluLookAt() by Norman Vine.
1998-07-24 21:39:08 +00:00
curt
0347fcc173 Clear to adjusted fog color (for sunrise/sunset effects)
Make call to fog sunrise/sunset adjustment method.
Add a stdc++ library bug work around to fg_init.cxx
1998-07-22 21:40:43 +00:00
curt
a6f9590baf Tweaked color buffer clearing defaults. We clear the color buffer if we
are doing textures.  Assumptions:  If we are doing textures we have hardware
support that can clear the color buffer for "free."  If we are doing software
rendering with textures, then the extra clear time gets lost in the noise.
1998-07-20 12:49:44 +00:00
curt
8a7fc0d34e "H" / "h" now control hud brightness as well with off being one of the
states.
Better checking for xmesa/fx 3dfx fullscreen/window support for deciding
  whether or not to build in the feature.
Translucent menu support.
HAVE_AUDIO_SUPPORT -> ENABLE_AUDIO_SUPPORT
Use fork() / wait() for playing mp3 init music in background under unix.
Changed default tile diameter to 5.
1998-07-16 17:33:34 +00:00
curt
4abe562805 Wrote access functions for current fgOPTIONS. 1998-07-13 21:00:09 +00:00
curt
8767a84ffc Clear color buffer if drawing wireframe.
When specifying and airport, start elevation at -1000 and let the system
position you at ground level.
1998-07-13 15:32:37 +00:00
curt
330c78ac73 Added ground collision detection.
Did some serious horsing around to be able to "hug" the ground properly
  and still be able to take off.
Set the near clip plane to 1.0 meters when less than 10 meters above the
  ground.
Did some serious horsing around getting the initial airplane position to be
  correct based on rendered terrain elevation.
Added a little cheat/hack that will prevent the view position from ever
  dropping below the terrain, even when the flight model doesn't quite
  put you as high as you'd like.
1998-07-12 03:14:42 +00:00
curt
0099b307bc polar3d.h renamed to polar3d.hxx
vector.h renamed to vector.hxx
updated audio support so it waits to create audio classes (and tie up
  /dev/dsp) until the mpg123 player is finished.
1998-07-08 14:45:07 +00:00
curt
f17b1af1e3 Added an enable/disable splash screen option.
Added an enable/disable intro music option.
Added an enable/disable instrument panel option.
Added an enable/disable mouse pointer option.
Added using namespace std for compilers that support this.
1998-07-06 21:34:17 +00:00
curt
72819bbe85 Added support for switching between fullscreen and window mode for
Mesa/3dfx/glide.

Added a basic splash screen.  Restructured the main loop and top level
initialization routines to do this.

Hacked in some support for playing a startup mp3 sound file while rest
of sim initializes.  Currently only works in Unix using the mpg123 player.
Waits for the mpg123 player to finish before initializing internal
sound drivers.
1998-07-06 02:42:02 +00:00
curt
2be63aa0fb Add my own version of gluLookAt() (which is nearly identical to the
Mesa/glu version.)  But, by calculating the Model View matrix our selves
we can save this matrix without having to read it back in from the video
card.  This hopefully allows us to save a few cpu cycles when rendering
out the fragments because we can just use glLoadMatrixd() with the
precalculated matrix for each tile rather than doing a push(), translate(),
pop() for every fragment.

Panel status defaults to off for now until it gets a bit more developed.

Extract OpenGL driver info on initialization.
1998-07-04 00:52:22 +00:00
curt
353ec70f8c Replaced "extern displayInstruments" with a entry in fgOPTIONS.
Don't change the view port when displaying the panel.
1998-06-27 16:54:32 +00:00
curt
e461053c78 Refined conditional audio support compilation.
Moved texture parameter setup calls to ../Scenery/materials.cxx
#include <string.h> before various STL includes.
Make HUD default state be enabled.
1998-06-17 21:35:10 +00:00
curt
cc0925be18 Tweaked fog command line options. 1998-06-13 00:40:32 +00:00
curt
28ceab0457 Pui -> PUI, Gui -> GUI. 1998-06-12 14:27:25 +00:00
curt
9ebfc12526 Added support for Pui/Gui.
Converted fog to GL_FOG_EXP2.
Link to static simulator parts.
Update runfg.bat to try to be a little smarter.
1998-06-12 00:57:38 +00:00
curt
b4e53ba51d Minor sound/startup position tweaks. 1998-06-08 17:57:04 +00:00
curt
c8a5e3ebb6 A bit of fiddling with audio ... 1998-06-05 18:18:40 +00:00
curt
88ceb3dbb8 Tweaking sound library usage. 1998-06-03 22:01:06 +00:00
curt
476d5e73b2 Updated to compile in audio support if OSS available.
Updated for new version of Steve's audio library.
STL includes don't use .h
Small view optimizations.
1998-06-03 00:47:11 +00:00
curt
a6c2da9e4e Added Linux audio support.
avoid glClear( COLOR_BUFFER_BIT ) when not using it to set the sky color.
map stl tweaks.
1998-06-01 17:54:40 +00:00
curt
d6f20aa8be Tweaked material properties & lighting a bit in GLUTmain.cxx.
Read airport list into a "map" STL for dynamic list sizing and fast tree
based lookups.
1998-05-29 20:37:19 +00:00
curt
dcaf622ce7 Modifications to use the new fgEVENT_MGR class. 1998-05-22 21:28:52 +00:00
curt
081b63cfbb Tweaked smooth shaded texture lighting properties.
Converted fgLIGHT to a C++ class.
1998-05-20 20:51:33 +00:00
curt
65cc9a9e66 C++ - ified views.[ch]xx
Shuffled some additional view parameters into the fgVIEW class.
Changed tile-radius to tile-diameter because it is a much better
  name.
Added a WORLD_TO_EYE transformation to views.cxx.  This allows us
 to transform world space to eye space for view frustum culling.
1998-05-16 13:08:34 +00:00
curt
c57071acfd Added a keyboard binding to dynamically adjust field of view.
Added a command line option to specify fov.
Adjusted terrain color.
Root path info moved to fgOPTIONS.
Added ability to parse options out of a config file.
1998-05-13 18:29:56 +00:00
curt
1904751726 For flat shading use "glHint (GL_FOG_HINT, GL_FASTEST )" 1998-05-11 18:18:15 +00:00
curt
58eb9b9089 Added "D" key binding to set autopilot heading.
Made frame rate calculation average out over last 10 frames.
Borland C++ floating point exception workaround.
Added a --tile-radius=n option.
1998-05-07 23:14:14 +00:00
curt
ae19eec252 Added an averaged global frame rate counter.
Added an option to control tile radius.
1998-05-06 03:16:23 +00:00
curt
448bdb83de Added an option to enable/disable full-screen mode. 1998-05-03 00:47:31 +00:00