Mondschein Engine  0.3.0
Public Member Functions | List of all members
mondschein::renderer::GL13 Class Reference

This class implements the renderer interface for "OpenGLĀ® 1.3". More...

#include <renderer.h>

Inheritance diagram for mondschein::renderer::GL13:
mondschein::renderer::Renderer

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...
 

Detailed Description

This class implements the renderer interface for "OpenGLĀ® 1.3".

Definition at line 37 of file renderer.h.

Member Function Documentation

std::string GL13::id ( ) const
virtual

Get the renderer ID.

Returns
a unique class identification string

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.

void GL13::make_renderable ( scene::Scenenode_c  _sn)
virtual

Make a scene node renderable.

Parameters
_snthe 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.

void GL13::render ( scene::Scenegraph_c  _sg,
const uint32  _start 
)
virtual

Render a scenegraph.

Parameters
_sgthe scenegraph object

Implements mondschein::renderer::Renderer.

Definition at line 370 of file renderer.cpp.

void GL13::set_clear_color ( const Eigen::Vector4d &  _c)
virtual

Set the clear color.

Parameters
_colorthe clear color value

Implements mondschein::renderer::Renderer.

Definition at line 80 of file renderer.cpp.

void GL13::toggle_feature ( const std::string &  _feature,
bool  _state 
)
virtual

Toggle renderer features.

Parameters
_featurethe feature string
_statethe feature state (ON or OFF)
Exceptions
mondschein::exceptionif the feature is not found or supported

Implements mondschein::renderer::Renderer.

Definition at line 60 of file renderer.cpp.


The documentation for this class was generated from the following files: