@@ -17,7 +17,7 @@ struct SPlanet {
17
17
float Images ;
18
18
};
19
19
20
- // - Mercury - Venus - Earth - Mars - Jupiter - Saturn - Uranus - Neptune - Pluto
20
+ // - Mercury - Venus - Earth - Mars - Jupiter - Saturn - Uranus - Neptune - Pluto
21
21
stacxpr const double PLANET_MASSES [::ssg::PLANET_COUNT] = { 0 .330f , 4 .87f , 5 .97f , 0 .642f , 1899 , 568 , 86 .8f , 102 , 0 .0125f };
22
22
stacxpr const double PLANET_SCALES [::ssg::PLANET_COUNT] = { 4879 , 12104 , 12756 , 6792 , 142984 , 120536 , 51118 , 49528 , 2390 };
23
23
stacxpr const double PLANET_DAY [::ssg::PLANET_COUNT] = { 4222 .6f , 2802 .0f , 23 .9f , 24 .7f , 9 .9f , 10 .7f , 17 .2f , 16 .1f , 153 .3f };
@@ -28,15 +28,14 @@ stacxpr const double PLANET_ORBITALPERIOD [::ssg::PLANET_COUNT] = { 88.0f ,
28
28
stacxpr const double PLANET_ORBITALVELOCITY [::ssg::PLANET_COUNT] = { 47 .9f , 35 .0f , 29 .8f , 24 .1f , 13 .1f , 9 .7f , 6 .8f , 5 .4f , 4 .7f };
29
29
stacxpr const double PLANET_ORBITALINCLINATION [::ssg::PLANET_COUNT] = { 7.0 , 3 .4f , 0 .0f , 1 .9f , 1 .3f , 2 .5f , 0 .8f , 1 .8f , 17 .2f };
30
30
stacxpr const double PLANET_ORBITALECCENTRICITY [::ssg::PLANET_COUNT] = { 0 .205f , 0 .007f , 0 .017f , 0 .094f , 0 .049f , 0 .057f , 0 .046f , 0 .011f , 0 .244f };
31
- stacxpr const char * PLANET_IMAGE [::ssg::PLANET_COUNT] = { " mercury_color.png" , " venus_color.png" , " earth_color.png" , " mars_color.png" , " jupiter_color.png" , " saturn_color.png" , " uranus_color.png" , " neptune_color.png" , " pluto_color.png" };
31
+ stacxpr const char * PLANET_IMAGE [::ssg::PLANET_COUNT] = { " mercury_color.png" , " venus_color.png" , " earth_color.png" , " mars_color.png" , " jupiter_color.png" , " saturn_color.png" , " uranus_color.png" , " neptune_color.png" , " pluto_color.png" };
32
32
33
33
int ssg::solarSystemSetup (::ssg::SSolarSystemGame & solarSystem, const ::gpk::vcc & filename) {
34
34
solarSystem.Geometries .resize (1 );
35
- ::gpk::SParamsSphere params = {};
36
- params.Stacks = 16 ;
37
- params.Slices = 16 ;
35
+ ::gpk::SParamsSphere params = {};
36
+ params.CellCount = {16 , 16 };
38
37
params.Radius = 1 ;
39
- params.Center = {};
38
+ params.Origin = {};
40
39
::gpk::geometryBuildSphere (solarSystem.Geometries[0 ], params);
41
40
// ::gpk::geometryBuildFromSTL();
42
41
0 commit comments