mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 04:31:08 -06:00
- Has support for SceneGraph loading using lua and ghoul dictionary - SceneGraphNode can be initialized using ghoul::Dictionary - Todo: PositionInformation classes - Todo: TemplateFactory singleton
34 lines
617 B
C++
34 lines
617 B
C++
#ifndef RENDERABLE_H
|
|
#define RENDERABLE_H
|
|
|
|
// open space includes
|
|
#include "util/psc.h"
|
|
#include "util/pss.h"
|
|
#include "util/camera.h"
|
|
#include <ghoul/misc/dictionary.h>
|
|
|
|
namespace openspace {
|
|
|
|
class Renderable {
|
|
public:
|
|
|
|
// constructors & destructor
|
|
Renderable();
|
|
virtual ~Renderable();
|
|
|
|
virtual void initialize(ghoul::Dictionary* dictionary) = 0;
|
|
|
|
void setBoundingSphere(const pss &boundingSphere);
|
|
const pss &getBoundingSphere();
|
|
|
|
virtual void render(const Camera *camera, const psc &thisPosition) = 0;
|
|
virtual void update();
|
|
|
|
private:
|
|
pss boundingSphere_;
|
|
|
|
};
|
|
|
|
} // namespace openspace
|
|
|
|
#endif |