]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sky/sphere.cxx
Oops, a couple more sky tweaks.
[simgear.git] / simgear / sky / sphere.cxx
index 21e25be41ac3e6e5c5f7754e502e28cc4c10af47..88cbf9b79e7708c938df0698903e78315f206e63 100644 (file)
@@ -30,8 +30,9 @@
 
 #include STL_IOSTREAM
 
+#include <plib/sg.h>
 #include <plib/ssg.h>
-#include <simgear/constants.h>
+
 
 // return a sphere object as an ssgBranch
 ssgBranch *ssgMakeSphere( ssgSimpleState *state, ssgColourArray *cl,
@@ -47,8 +48,8 @@ ssgBranch *ssgMakeSphere( ssgSimpleState *state, ssgColourArray *cl,
     sgVec2 vec2;
     sgVec3 vec3;
 
-    drho = FG_PI / (float) stacks;
-    dtheta = 2.0 * FG_PI / (float) slices;
+    drho = SG_PI / (float) stacks;
+    dtheta = 2.0 * SG_PI / (float) slices;
 
     /* texturing: s goes from 0.0/0.25/0.5/0.75/1.0 at +y/+x/-y/-x/+y
        axis t goes from -1.0/+1.0 at z = -radius/+radius (linear along