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 );
float paletteSize_
size of cel shading palette
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
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.
Interface class from which all plugins have to be created.
Interface to add additional rendering functions from within plugins.
ACG::Vec3f outlineCol_
outline color
QAction * optionsAction()
Return options menu.
Collection of fbos for each viewport.
std::map< int, ViewerResources > viewerRes_
QString renderObjectsInfo(bool _outputShaderInfo)
Return a qstring of the current render objects.