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.
ACG::RenderObject * getRenderObject(int i)
Get render objects in the sorted list by index (not including overlay objects)
bool openGLVersion(const int _major, const int _minor)
int getNumRenderObjects() const
Get the number of collected render objects (not including overlay objects or gl4.2 line objects) ...
void drawMode(ACG::SceneGraph::DrawModes::DrawMode _mode)
set draw mode (No test if this mode is available!)
virtual void finishRenderingPipeline(bool _drawOverlay=true)
Draw overlay objects and reset OpenGL state.
bool checkExtensionSupported(const std::string &_extension)
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.
ACG::SceneGraph::BaseNode * getSceneGraphRootNode()
get scenegraph root node