mfranz
eb69ef592e
make it consistent
2006-01-29 20:33:33 +00:00
mfranz
810d7b2297
another signal for listener callback functions:
...
setlistener("/sim/signals/quit", func { print("I'm called on exit.")});
2006-01-29 20:11:10 +00:00
mfranz
129813e0aa
set the /sim/signals/reinit property on reinit, so that aircraft code can
...
attach listeners. Other relevant stuff should go here, too. (/sim/crashed
could be one.)
2006-01-29 16:20:31 +00:00
mfranz
ebe5fc3092
don't set zero width or height
2006-01-29 14:58:52 +00:00
mfranz
267e558bd2
the const-ness wasn't such a good idea :-)
2006-01-28 22:41:20 +00:00
mfranz
dc7cc2015b
restore the uglyness: call the resize callback every frame again, even
...
though the window wasn't resized. I'm just not adventurous enough for
a cleaner solution in the light of the upcoming release. At least the
xsize/ysize properties aren't set each frame any more, so listeners
work now properly.
2006-01-28 16:06:03 +00:00
mfranz
8f9d8cab03
now that the renderer doesn't resize the window for every frame, we need
...
to do it manually here
2006-01-28 13:38:28 +00:00
mfranz
bae5d4e92b
write to /sim/startup/xsize only if the size really changed; likewise for
...
ysize. This is useful for listeners, e.g. the one that will re-position the
FPS dialog.
2006-01-28 10:40:47 +00:00
mfranz
a4bbb31927
Resizing is done when fg_os{,_sdl}.cxx says so, not in every single frame.
...
(This defeats the purpose of the resize callback and makes "listening" to
the xsize useless.)
2006-01-28 00:10:39 +00:00
mfranz
6de1f56f2c
make it const
2006-01-27 22:26:47 +00:00
fredb
7a27d247d4
Ignore generated files
2006-01-27 21:20:58 +00:00
mfranz
ffc8c4d3d0
export scenery click geo coords
2006-01-27 21:14:40 +00:00
mfranz
0b136fa66b
getChild(): add optional "create" flag (like in the c++ version)
2006-01-27 20:43:40 +00:00
mfranz
0d48631e3a
cosmetics: subc isn't really a sub-context here (it was where I copied it
...
from) --> s/subc/c/
2006-01-27 19:59:25 +00:00
mfranz
32968d81f3
we need a way to specify other contexts than _context; idea & OK by Andy
2006-01-27 19:51:25 +00:00
ehofman
0f448cb4ca
Melchior FRANZ:
...
gui colors and material animation use "red", "green", "blue".
Would be nice if these light colors would use the same standard.
2006-01-27 13:54:35 +00:00
mfranz
cabf53537a
allow top level <font> definition that applies to text in the whole dialog
...
and makes the layouter use this font's metrics
2006-01-27 12:57:13 +00:00
ehofman
6c331a55a8
Tie the scene ambient,diffuse end specular red,green and blue components to a property under /rendering/scene
2006-01-27 12:35:15 +00:00
mfranz
54ee68291b
fonts are now delivered by FGFontCache (except for the splash screen,
...
because this comes way before the gui subsystem is ready)
2006-01-27 08:01:31 +00:00
mfranz
f729ec6013
cosmetics
2006-01-26 22:22:37 +00:00
mfranz
e2016f9568
fix FGFontCache and make use of it (this allows to assign bitmap fonts
...
in dialogs)
2006-01-26 21:40:37 +00:00
ehofman
5441622a28
Add support for point sprites.
2006-01-26 09:37:32 +00:00
mfranz
f0996fa47d
create a new context for listener functions to avoid context corruption
...
(caused a crash when a timer triggered a listener) ... Idea and OK by Andy
2006-01-26 00:18:27 +00:00
curt
62607b3376
Updates for newest scenery build.
2006-01-25 02:08:39 +00:00
curt
1729d15cdd
White space updates.
2006-01-24 17:13:48 +00:00
curt
fdd47f4b56
Newest data file format includes range for each transmitter. Load that data
...
and use it instead of our own hard coded defaults.
2006-01-24 17:13:28 +00:00
ehofman
0895721e68
Mathias Frhlich:
...
Incorporating the shared ptr code:
- All scenegraph references from SimGear
- SGMaterial which already had a reference counter uses now that common
infrastructure.
- SGMatModel is now counted.
- SGSoundSample from SimGear
- And the corresponding change for the sound samples in flightgear which fixes
a latent crash if FGBeacon would evern be deleted.
2006-01-24 14:45:13 +00:00
ehofman
907b99a669
Use smooth (aliased) lines and points when available in hardware.
2006-01-21 12:07:40 +00:00
ehofman
ea177f6744
Olaf Flebbe: MSVC fix.
2006-01-21 10:11:08 +00:00
ehofman
480b8c5330
Jim Wilson:
...
This patch fixes configure.ac so that when an alternate prefix location for simgear is specified, configure tests for the header file jpegfactory.hxx in that specific location only.
2006-01-21 10:06:09 +00:00
ehofman
919ccdb96a
Remove a leftover from a previous patch.
2006-01-21 10:03:36 +00:00
ehofman
31e3caa4f6
Sync. w. JSBSim
2006-01-20 17:50:45 +00:00
ehofman
619226e9d0
Integrate a large part of John Wojnaroski's 747 cockpit project.
...
Erik Hofman:
This patch contains an update to net_ctrls.hxx that adds an extra 100 bytes
(or an equivalent of 25 (u)int32_t types) of reserved space. This could be
used to make the protocol forward and backward compatibel within a certain
scope. Be sure to read the instructions at the begining of the header file
when addinf new variables.
2006-01-20 17:19:01 +00:00
ehofman
0b1e386ade
Make sure the path to simgear and plib get added to the include path before anything else.
2006-01-14 10:16:28 +00:00
daveluff
3d5afec340
Fix the crashes on mini-panel and panel-reload with the KLN89, by removing the multiple inheritance and using an empty shell instrument to forward draw commands from the panel to the complex gps subsystem.
2006-01-13 22:07:50 +00:00
fredb
28b5a6d8bd
Remove the filtersjb left over
2006-01-13 14:33:07 +00:00
fredb
17d20cf606
Remove the filtersjb left over
2006-01-13 14:00:13 +00:00
ehofman
f73f2f7254
Hide some user generated files.
2006-01-13 09:50:58 +00:00
ehofman
587fd0937e
Remove a bunch of unneede files.
2006-01-13 09:49:09 +00:00
fredb
d0618685a2
Typo
2006-01-12 21:35:59 +00:00
fredb
bcc8339c4f
Variable 'thrust' used before being initialized
2006-01-12 21:35:32 +00:00
fredb
4303c2b9a6
Redundant loop variable declaration
2006-01-12 21:35:08 +00:00
fredb
5d5a58de80
Don't declare functions that are not implemented
2006-01-12 21:34:36 +00:00
ehofman
932b38a87e
sync. with JSBSim v. 2.0
2006-01-12 15:04:22 +00:00
ehofman
fcfe5d2010
Don't display the menubar in e highres screenshot.
2006-01-11 10:53:04 +00:00
curt
c3cf810562
Another attempt at fixing a cygwin compiler error.
2006-01-10 15:23:10 +00:00
curt
ac5e874523
Fix a compiler warning (member initialization order in constructor.)
2006-01-10 15:06:17 +00:00
curt
311b85a11d
Small change to avoid dangling audio resources.
2006-01-10 14:51:12 +00:00
curt
5329ed10a7
Cygwin fix.
2006-01-10 02:49:52 +00:00
curt
691f096c68
Add an srand() function to nasal (hooked into sg_srandom_time()).
...
This helps avoid the problem of always getting the same random number
sequence every time you run a script.
2006-01-09 15:29:24 +00:00