Files
OpenSpace/src/rendering/renderable.h
Jonas Strandstedt de8be04754 Initial new SceneGraph structure
- Has support for SceneGraph loading using lua and ghoul dictionary
- SceneGraphNode can be initialized using ghoul::Dictionary
- Todo: PositionInformation classes
- Todo: TemplateFactory singleton
2014-03-04 16:50:39 -05:00

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