diff options
author | Ian C <ianc@noddybox.co.uk> | 2011-01-06 15:48:58 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2011-01-06 15:48:58 +0000 |
commit | 7523d7b685d835aab01f0253ba9530de7b5446d4 (patch) | |
tree | ff14abcc5cc2b73639009a97b9e08e3cc5502cba /config | |
parent | 221f8b42adeb776e10944a5ed3835b8f00434985 (diff) |
Development checkin
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 |