31 #ifndef INCLUDE_ARTICULATION_ABSTRACTRENDERER_H_ 32 #define INCLUDE_ARTICULATION_ABSTRACTRENDERER_H_ 34 #include <gpu_coverage/Scene.h> 37 class AbstractRenderer {
96 inline const std::string&
getName()
const {
const std::string & getName() const
Returns the name of the renderer for logging purposes.
Definition: AbstractRenderer.h:96
virtual ~AbstractRenderer()
Destructor.
virtual const int & getTextureWidth() const =0
Width of the result texture.
Scene graph corresponding to Assimp's aiScene.
Definition: Scene.h:59
const Scene *const scene
Pointer to the scene to be rendered.
Definition: AbstractRenderer.h:101
virtual const GLuint & getTexture() const =0
Returns the OpenGL texture ID of the result texture.
virtual void display()=0
Renders the scene.
Definition: AbstractCamera.h:41
const std::string name
Name of the renderer, see getName().
Definition: AbstractRenderer.h:102
AbstractRenderer(const Scene *const scene, const std::string &name)
Constructor.
virtual const int & getTextureHeight() const =0
Height of the result texture.
const bool & isReady() const
Returns true if the renderer has been initialized correctly.
Definition: AbstractRenderer.h:88
bool ready
Set to true when renderer is ready, see isReady().
Definition: AbstractRenderer.h:103