Commit 9e88d89e authored by Jan Möbius's avatar Jan Möbius

Updated rendererinterface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12270 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6c794986
......@@ -79,12 +79,15 @@ class RenderInterface {
virtual void render(/* Unknow options yet.. to be evaluated*/) {};
/** \brief announce available draw modes
/** \brief announce required draw modes
*
* This function is called by the core to get a list of draw modes that is supported
* by the render function in the plugin.
* This function is called by the core to get a list of draw modes that are supported
* by this renderer. If such a draw mode is set and the currently active
* renderer does not support the given mode, the core will switch to
* this renderer automatically. If there are multiple renderers capable of rendering
* the drawmode, the core will ask the user for its preference.
*
* @param _mode Combined list of supported drawmodes
* @param _mode Combined list of drawmodes
*/
virtual void supportedDrawModes(ACG::SceneGraph::DrawModes::DrawMode& _mode) {};
......@@ -93,7 +96,7 @@ class RenderInterface {
*
* @param _name displayed name of the rendering function
*/
virtual void rendererName(QString& _name) {};
virtual QString rendererName() = 0;
signals:
......
......@@ -1879,6 +1879,15 @@ void Core::loadPlugin(QString filename, bool silent, QString& _licenseErrors, QO
if ( renderPlugin ) {
supported = supported + "Rendering ";
if ( checkSlot( plugin , "rendererName()" ) ) {
QString rendererNameString = "";
QMetaObject::invokeMethod(plugin,"rendererName", Qt::DirectConnection, Q_RETURN_ARG(QString,rendererNameString) ) ;
std::cerr << rendererNameString.toStdString() << std::endl;
}
std::cerr << "Render Plugin .. not yet implemented" << std::endl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment