1
0
Fork 0

Precomputed random numbers API

Use updated pre-compute API for random numbers

By Marc Eberhard
This commit is contained in:
James Turner 2021-05-25 12:57:07 +01:00
parent 695d41a1eb
commit 34b8fbc58e
23 changed files with 23 additions and 22 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
.* .*
*~
Makefile Makefile
Debug/ Debug/
Build Build

View file

@ -23,7 +23,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/scene/model/modellib.hxx> #include <simgear/scene/model/modellib.hxx>

View file

@ -28,7 +28,7 @@
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <cmath> #include <cmath>
#include <Main/util.hxx> #include <Main/util.hxx>

View file

@ -33,7 +33,7 @@
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/scene/util/SGNodeMasks.hxx> #include <simgear/scene/util/SGNodeMasks.hxx>
#include <Scenery/scenery.hxx> #include <Scenery/scenery.hxx>

View file

@ -36,7 +36,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <simgear/timing/lowleveltime.h> #include <simgear/timing/lowleveltime.h>

View file

@ -25,7 +25,7 @@
#endif #endif
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <Scenery/scenery.hxx> #include <Scenery/scenery.hxx>
#include <deque> #include <deque>

View file

@ -9,7 +9,7 @@
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>

View file

@ -10,7 +10,7 @@
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/sound/sample_group.hxx> #include <simgear/sound/sample_group.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>

View file

@ -28,7 +28,7 @@
#include "Airports/runways.hxx" #include "Airports/runways.hxx"
#include "Autopilot/route_mgr.hxx" #include "Autopilot/route_mgr.hxx"
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/structure/exception.hxx> #include <simgear/structure/exception.hxx>

View file

@ -10,7 +10,7 @@
#include <simgear/props/props.hxx> #include <simgear/props/props.hxx>
#include <simgear/structure/subsystem_mgr.hxx> #include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include "gyro.hxx" #include "gyro.hxx"

View file

@ -27,7 +27,7 @@
#include <stdio.h> // snprintf #include <stdio.h> // snprintf
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <simgear/sound/sample_group.hxx> #include <simgear/sound/sample_group.hxx>

View file

@ -26,7 +26,7 @@
#include <stdio.h> // snprintf #include <stdio.h> // snprintf
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>
#include <simgear/sound/sample_group.hxx> #include <simgear/sound/sample_group.hxx>

View file

@ -68,7 +68,7 @@
#include <simgear/math/SGLimits.hxx> #include <simgear/math/SGLimits.hxx>
#include <simgear/math/SGGeometryFwd.hxx> #include <simgear/math/SGGeometryFwd.hxx>
#include <simgear/math/SGGeodesy.hxx> #include <simgear/math/SGGeodesy.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/math/SGLineSegment.hxx> #include <simgear/math/SGLineSegment.hxx>
#include <simgear/math/SGIntersect.hxx> #include <simgear/math/SGIntersect.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>

View file

@ -29,7 +29,7 @@
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/structure/exception.hxx> #include <simgear/structure/exception.hxx>

View file

@ -12,7 +12,7 @@
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <Main/fg_props.hxx> #include <Main/fg_props.hxx>
#include <Navaids/navlist.hxx> #include <Navaids/navlist.hxx>

View file

@ -14,7 +14,7 @@
#include <simgear/debug/ErrorReportingCallback.hxx> #include <simgear/debug/ErrorReportingCallback.hxx>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <simgear/io/iostreams/sgstream.hxx> #include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/props/props.hxx> #include <simgear/props/props.hxx>
#include <simgear/props/props_io.hxx> #include <simgear/props/props_io.hxx>
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>

View file

@ -11,7 +11,7 @@
#include <simgear/sg_inlines.h> #include <simgear/sg_inlines.h>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/io/iostreams/sgstream.hxx> #include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/scene/material/mat.hxx> #include <simgear/scene/material/mat.hxx>
#include <simgear/scene/material/matlib.hxx> #include <simgear/scene/material/matlib.hxx>

View file

@ -39,7 +39,7 @@
#include <simgear/emesary/notifications.hxx> #include <simgear/emesary/notifications.hxx>
#include <simgear/io/raw_socket.hxx> #include <simgear/io/raw_socket.hxx>
#include <simgear/math/SGMath.hxx> #include <simgear/math/SGMath.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/misc/strutils.hxx> #include <simgear/misc/strutils.hxx>
#include <simgear/nasal/NasalEmesaryInterface.hxx> #include <simgear/nasal/NasalEmesaryInterface.hxx>
#include <simgear/props/AtomicChangeListener.hxx> #include <simgear/props/AtomicChangeListener.hxx>

View file

@ -44,7 +44,7 @@
#include <simgear/io/HTTPClient.hxx> #include <simgear/io/HTTPClient.hxx>
#include <simgear/io/HTTPFileRequest.hxx> #include <simgear/io/HTTPFileRequest.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/props/props_io.hxx> #include <simgear/props/props_io.hxx>
#include <simgear/io/iostreams/sgstream.hxx> #include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>

View file

@ -36,7 +36,7 @@
#include <memory> #include <memory>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/misc/sg_dir.hxx> #include <simgear/misc/sg_dir.hxx>
#include <simgear/misc/stdint.hxx> #include <simgear/misc/stdint.hxx>
#include <simgear/misc/strutils.hxx> #include <simgear/misc/strutils.hxx>

View file

@ -37,7 +37,7 @@
#include <simgear/debug/ErrorReportingCallback.hxx> #include <simgear/debug/ErrorReportingCallback.hxx>
#include <simgear/io/iostreams/sgstream.hxx> #include <simgear/io/iostreams/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx> #include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/misc/SimpleMarkdown.hxx> #include <simgear/misc/SimpleMarkdown.hxx>
#include <simgear/misc/sg_dir.hxx> #include <simgear/misc/sg_dir.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>

View file

@ -81,7 +81,7 @@
#include <simgear/props/props.hxx> #include <simgear/props/props.hxx>
#include <simgear/timing/sg_time.hxx> #include <simgear/timing/sg_time.hxx>
#include <simgear/ephemeris/ephemeris.hxx> #include <simgear/ephemeris/ephemeris.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <Time/light.hxx> #include <Time/light.hxx>
#include <Time/light.hxx> #include <Time/light.hxx>

View file

@ -43,7 +43,7 @@
#include <simgear/compiler.h> #include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx> #include <simgear/debug/logstream.hxx>
#include <simgear/math/sg_random.h> #include <simgear/math/sg_random.hxx>
#include <simgear/misc/sg_path.hxx> #include <simgear/misc/sg_path.hxx>
#include <simgear/misc/sg_dir.hxx> #include <simgear/misc/sg_dir.hxx>
#include <simgear/scene/util/SGReaderWriterOptions.hxx> #include <simgear/scene/util/SGReaderWriterOptions.hxx>