51 #include <ACG/GL/IRenderer.hh> 52 #include <ACG/GL/FBO.hh> 60 Q_PLUGIN_METADATA(IID
"org.OpenFlipper.Plugins.Plugin-Render-Toon")
66 QString
name() {
return (QString(
"Toon Renderer Plugin")); };
67 QString
description( ) {
return (QString(tr(
"Render with cel shading and edge outlining"))); };
70 QString version() {
return QString(
"1.0"); };
78 void initializePlugin();
83 QString rendererName() {
return QString(
"Toon_Renderer");}
86 QString checkOpenGL();
89 void actionDialog(
bool );
90 void paletteSizeChanged(
int );
91 void outlineColorChanged( QColor );
112 void resize(
int _newWidth,
int _newHeight );
Collection of fbos for each viewport.
QString description()
Return a description of what the plugin is doing.
QString renderObjectsInfo(bool _outputShaderInfo)
Return a qstring of the current render objects.
QAction * optionsAction()
Return options menu.
std::map< int, ViewerResources > viewerRes_
GLSL::Program * progOutline_
outline shader: multiply scene color with edge factor derived from edges in depth buffer ...
DrawMode DEFAULT
use the default (global) draw mode and not the node's own.
float paletteSize_
size of cel shading palette
QString name()
Return a name for the plugin.
ACG::Vec3f outlineCol_
outline color
Interface to add additional rendering functions from within plugins.
Interface class from which all plugins have to be created.