17#ifndef _GAZEBO_RENDERING_RENDERENGINE_HH_
18#define _GAZEBO_RENDERING_RENDERENGINE_HH_
46 class RenderEnginePrivate;
94 bool _enableVisualizations,
95 bool _isServer =
false);
133 public: Ogre::Root *
Root()
const;
139#if OGRE_VERSION_MAJOR > 1 || OGRE_VERSION_MINOR >= 9
143 public: Ogre::OverlaySystem *OverlaySystem()
const;
148 private:
bool CreateContext();
151 private:
void LoadPlugins();
154 private:
void SetupResources();
157 private:
void SetupRenderSystem();
160 private:
void PreRender();
163 private:
void Render();
166 private:
void PostRender();
169 private:
void CheckSystemCapabilities();
186 private: std::unique_ptr<RenderEnginePrivate> dataPtr;
gazebo
Definition RenderEngine.hh:31
rendering
Definition RenderEngine.hh:31
Singleton template class.
Definition SingletonT.hh:34
Adaptor to Ogre3d.
Definition RenderEngine.hh:56
void Fini()
Tears down the rendering engine.
ScenePtr GetScene(const std::string &_name="")
Get a scene by name.
void * dummyContext
GLX context used to render the scenes.Used for gui-less operation.
Definition RenderEngine.hh:179
RenderPathType GetRenderPathType() const
Get the type of rendering path to use.
WindowManagerPtr GetWindowManager() const
Get a pointer to the window manager.
void Init()
Initialize Ogre. Load must happen before Init.
std::vector< unsigned int > FSAALevels() const
Get a list of all supported FSAA levels for this render system.
ScenePtr CreateScene(const std::string &_name, bool _enableVisualizations, bool _isServer=false)
Create a scene.
void RemoveScene(const std::string &_name)
Remove a scene.
ScenePtr GetScene(unsigned int _index)
Get a scene by index.
RenderPathType
The type of rendering path used by the rendering engine.
Definition RenderEngine.hh:60
@ DEFERRED
Utilizes deferred rendering. Best fidelity.
Definition RenderEngine.hh:68
@ VERTEX
Most basic rendering, with least fidelity.
Definition RenderEngine.hh:64
@ RENDER_PATH_COUNT
Count of the rendering path enums.
Definition RenderEngine.hh:70
@ FORWARD
Utilizes the RTT shader system.
Definition RenderEngine.hh:66
@ NONE
No rendering is done.
Definition RenderEngine.hh:62
void AddResourcePath(const std::string &_uri)
Add a new path for Ogre to search for resources.
void * dummyDisplay
Pointer to the dummy display.Used for gui-less operation.
Definition RenderEngine.hh:175
unsigned int SceneCount() const
Get the number of scenes.
uint64_t dummyWindowId
ID for a dummy window. Used for gui-less operation.
Definition RenderEngine.hh:172
Ogre::Root * Root() const
Get a pointer to the Ogre root object.
void Load()
Load the parameters for Ogre. Load must happen before Init.
#define GZ_SINGLETON_DECLARE(visibility, n1, n2, singletonType)
Helper to declare typed SingletonT.
Definition SingletonT.hh:58
Definition JointMaker.hh:40
boost::shared_ptr< WindowManager > WindowManagerPtr
Definition RenderTypes.hh:186
boost::shared_ptr< Scene > ScenePtr
Definition RenderTypes.hh:82
Forward declarations for the common classes.
Definition Animation.hh:27