51 #include "Renderer.hh"
55 #include <ACG/GL/ShaderCache.hh>
71 void Renderer::initializePlugin()
94 QString Renderer::checkOpenGL()
97 return QString(
"Insufficient OpenGL Version! OpenGL 3.2 or higher required");
101 missing +=
"GL_ARB_vertex_buffer_object extension missing\n";
105 missing +=
"GL_ARB_vertex_program extension missing\n";
112 #if QT_VERSION < 0x050000
113 Q_EXPORT_PLUGIN2( shaderrenderer ,
Renderer );
virtual void renderObject(ACG::RenderObject *_obj, GLSL::Program *_prog=0, bool _constRenderStates=false, const std::vector< unsigned int > *_shaderModifiers=0)
Render one renderobject.
void drawMode(ACG::SceneGraph::DrawModes::DrawMode _mode)
set draw mode (No test if this mode is available!)
bool openGLVersion(const int _major, const int _minor)
ACG::SceneGraph::BaseNode * getSceneGraphRootNode()
get scenegraph root node
bool checkExtensionSupported(const std::string &_extension)
ACG::RenderObject * getRenderObject(int i)
Get render objects in the sorted list by index (not including overlay objects)
virtual void finishRenderingPipeline(bool _drawOverlay=true)
Draw overlay objects and reset OpenGL state.
virtual void prepareRenderingPipeline(ACG::GLState *_glState, ACG::SceneGraph::DrawModes::DrawMode _drawMode, ACG::SceneGraph::BaseNode *_scenegraphRoot)
Prepares renderer and OpenGL for any draw-related calls including.
int getNumRenderObjects() const
Get the number of collected render objects (not including overlay objects or gl4.2 line objects) ...