Mondschein Engine
0.3.0
|
This class implements the renderer interface for "OpenGLĀ® 1.3". More...
#include <renderer.h>
Public Member Functions | |
virtual void | toggle_feature (const std::string &_feature, bool _state) |
Toggle renderer features. More... | |
virtual void | set_clear_color (const Eigen::Vector4d &_color) |
Set the clear color. More... | |
virtual void | clear_color_buffer () |
Clear the color buffer. | |
virtual void | clear_depth_buffer () |
Clear the depth buffer. | |
virtual std::string | id () const |
Get the renderer ID. More... | |
virtual void | make_renderable (scene::Scenenode_c _sn) |
Make a scene node renderable. More... | |
virtual void | render (scene::Scenegraph_c _sg, const uint32 _start) |
Render a scenegraph. More... | |
Public Member Functions inherited from mondschein::renderer::Renderer | |
virtual void | set_context (Context_p _c) |
Set the rendering context. More... | |
virtual Context_p | get_context () const |
Get the rendering context. More... | |
virtual bool | query_extension (const std::string &_ext) |
Queries OpenGL extension availablity. More... | |
This class implements the renderer interface for "OpenGLĀ® 1.3".
Definition at line 37 of file renderer.h.
|
virtual |
Get the renderer ID.
This member function uniquely identifies the renderer class type. This ID string also defines the OpenGL version implemented in this renderer.
Implements mondschein::renderer::Renderer.
Definition at line 101 of file renderer.cpp.
|
virtual |
Make a scene node renderable.
_sn | the scene node object |
This member function makes the scenenode renderable within the current context
Implements mondschein::renderer::Renderer.
Definition at line 338 of file renderer.cpp.
|
virtual |
Render a scenegraph.
_sg | the scenegraph object |
Implements mondschein::renderer::Renderer.
Definition at line 370 of file renderer.cpp.
|
virtual |
Set the clear color.
_color | the clear color value |
Implements mondschein::renderer::Renderer.
Definition at line 80 of file renderer.cpp.
|
virtual |
Toggle renderer features.
_feature | the feature string |
_state | the feature state (ON or OFF) |
mondschein::exception | if the feature is not found or supported |
Implements mondschein::renderer::Renderer.
Definition at line 60 of file renderer.cpp.