diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/config | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/config/config b/config/config index 08a7a4a..288fdb8 100644 --- a/config/config +++ b/config/config @@ -10,23 +10,43 @@ # -# This defines any textures to load, and the names applied to them. Any image -# format supported by SDL Image should be loadable. +# This defines the GFX driver. If left undefined then the data generated is +# simply dumped to stdout. # -[textures] -example1 = files/file.png -example2 = files/file.png +# Drivers can have their own personal configuration section elsewhere. +# +[gfx] +driver = drivers/sdl-gl.so -# This enables or disables various graphical effects. The defaults for the -# effects are given here. +# Example driver configuration. # -[gfx] -trails = yes +[sdl-gl] +width = 800 +height = 600 +fullscreen = yes -# This defines the bodies that will be placed in the simulation. +# This defines any textures to load, and the names applied to them. Supported +# image formats will depend on the loaded GFX driver. +# +[textures] +example1 = files/file.png +example2 = files/file.png + + +# This defines the bodies that will be placed in the simulation and the +# constants for this universe. +# +# For this simulation the force acting on mass m1 from mass m2 is calculated +# as: +# +# F = G x (m2 / r^2) +# +# This force is a vector, which normalised is the equivalent of one of the +# co-ordinate axes discrete values in a single step of the simulation. # [universe] -body = sun -body = planet +G = 1 +body = sun +body = planet |