mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Created classes for PlanetGeometry
Added SimpleSphereGeometry Created infrastructure for added other geometries
This commit is contained in:
@@ -27,10 +27,8 @@
|
||||
|
||||
// open space includes
|
||||
#include <openspace/rendering/renderable.h>
|
||||
#include <openspace/util/powerscaledsphere.h>
|
||||
#include <openspace/properties/scalarproperty.h>
|
||||
|
||||
#include <openspace/properties/stringproperty.h>
|
||||
#include <openspace/properties/vectorproperty.h>
|
||||
|
||||
// ghoul includes
|
||||
#include <ghoul/opengl/programobject.h>
|
||||
@@ -38,6 +36,10 @@
|
||||
|
||||
namespace openspace {
|
||||
|
||||
namespace planetgeometry {
|
||||
class PlanetGeometry;
|
||||
}
|
||||
|
||||
class RenderablePlanet : public Renderable {
|
||||
public:
|
||||
RenderablePlanet(const ghoul::Dictionary& dictionary);
|
||||
@@ -53,17 +55,14 @@ public:
|
||||
void update() override;
|
||||
|
||||
protected:
|
||||
void createSphere();
|
||||
void loadTexture();
|
||||
|
||||
private:
|
||||
properties::Vec2Property _radius;
|
||||
properties::IntProperty _segments;
|
||||
properties::StringProperty _colorTexturePath;
|
||||
|
||||
ghoul::opengl::ProgramObject* _programObject;
|
||||
ghoul::opengl::Texture* _texture;
|
||||
PowerScaledSphere* _planet;
|
||||
planetgeometry::PlanetGeometry* _geometry;
|
||||
};
|
||||
|
||||
} // namespace openspace
|
||||
|
||||
Reference in New Issue
Block a user