mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Remove PowerScaledCoordinates and rename PowerScaledSphere to Sphere (closes #4)
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
#include <modules/space/rendering/simplespheregeometry.h>
|
||||
|
||||
#include <openspace/documentation/verifier.h>
|
||||
#include <openspace/scene/scenegraphnode.h>
|
||||
#include <openspace/rendering/renderable.h>
|
||||
#include <openspace/util/powerscaledsphere.h>
|
||||
#include <openspace/scene/scenegraphnode.h>
|
||||
#include <openspace/util/sphere.h>
|
||||
|
||||
namespace {
|
||||
constexpr openspace::properties::Property::PropertyInfo RadiusInfo = {
|
||||
@@ -124,7 +124,7 @@ void SimpleSphereGeometry::createSphere() {
|
||||
const glm::vec3 radius = _radius.value();
|
||||
|
||||
delete _sphere;
|
||||
_sphere = new PowerScaledSphere(radius, _segments);
|
||||
_sphere = new Sphere(radius, _segments);
|
||||
_sphere->initialize();
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
namespace openspace {
|
||||
class Renderable;
|
||||
class PowerScaledSphere;
|
||||
class Sphere;
|
||||
} // namespace openspace
|
||||
|
||||
namespace openspace::documentation { struct Documentation; }
|
||||
@@ -57,7 +57,7 @@ private:
|
||||
|
||||
properties::Vec3Property _radius;
|
||||
properties::IntProperty _segments;
|
||||
PowerScaledSphere* _sphere;
|
||||
Sphere* _sphere;
|
||||
};
|
||||
|
||||
} // namespace openspace::planetgeometry
|
||||
|
||||
Reference in New Issue
Block a user