31 #ifndef INCLUDE_ARTICULATION_RENDERER_H_ 32 #define INCLUDE_ARTICULATION_RENDERER_H_ 34 #include <gpu_coverage/AbstractRenderer.h> 35 #include <gpu_coverage/CameraPerspective.h> 36 #include <gpu_coverage/CoordinateAxes.h> 37 #include <gpu_coverage/Programs.h> Renderer for rendering a 3D scene using textures and materials.
Definition: Renderer.h:44
CameraPerspective * camera
Active camera used for rendering.
Definition: Renderer.h:106
Depth buffer.
Definition: Renderer.h:123
GLuint framebuffer
Framebuffer for offscreen rendering.
Definition: Renderer.h:113
const int height
Height of the off-screen texture in pixels.
Definition: Renderer.h:104
Renders a coordinate axes system.
Definition: CoordinateAxes.h:46
ProgramVisualTexture progVisualTexture
Shader program for rendering a mesh with materials and/or textures.
Definition: Renderer.h:108
GLuint vbo
Vertex buffer object.
Definition: Renderer.h:116
Scene graph corresponding to Assimp's aiScene.
Definition: Scene.h:59
const int & getTextureWidth() const
Width of the result texture.
Definition: Renderer.h:88
const int width
Width of the off-screen texture in pixels.
Definition: Renderer.h:103
CoordinateAxes coordinateAxes
Coordinate axes scene object.
Definition: Renderer.h:111
const GLuint & getTexture() const
Returns the OpenGL texture ID of the result texture.
Definition: Renderer.h:72
Perspective projection camera.
Definition: CameraPerspective.h:45
ProgramShowTexture * progShowTexture
Program for rendering a texture to a framebuffer.
Definition: Renderer.h:110
const Scene *const scene
Pointer to the scene to be rendered.
Definition: AbstractRenderer.h:101
const bool renderToTexture
True if renderer should render to an off-screen texture.
Definition: Renderer.h:102
virtual ~Renderer()
Destructor.
Color buffer.
Definition: Renderer.h:122
const int & getTextureHeight() const
Height of the result texture.
Definition: Renderer.h:80
Definition: Programs.h:191
Abstract superclass for all renderers.
Definition: AbstractRenderer.h:45
Definition: AbstractCamera.h:41
GLuint textures[2]
Color and depth textures for offscreen rendering.
Definition: Renderer.h:114
Definition: Programs.h:378
TextureRole
Texture roles.
Definition: Renderer.h:121
ProgramVisualVertexcolor progVisualVertexcolor
Shader program for rendering a mesh with per-vertex colors.
Definition: Renderer.h:109
Renderer(const Scene *const scene, const bool renderToWindow, const bool renderToTexture)
Constructor.
const bool renderToWindow
True if renderer should render to the window framebufer.
Definition: Renderer.h:101
GLuint vao
Vertex array object.
Definition: Renderer.h:115
Definition: Programs.h:213
virtual void display()
Renders the scene.
void setCamera(CameraPerspective *cameraNew)
Change the active camera used for rendering.
Definition: Renderer.h:96