Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE_OGRERENDERENGINE_HH_
18 #define GZ_RENDERING_OGRE_OGRERENDERENGINE_HH_
25 #include <gz/common/SingletonT.hh>
32 #include "gz/rendering/ogre/Export.hh"
44 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
47 class OgreRenderEnginePrivate;
93 public:
virtual void Destroy()
override;
95 public:
virtual bool IsEnabled()
const override;
99 public: OgreRenderPathType RenderPathType()
const;
101 public:
void AddResourcePath(
const std::string &_uri)
override;
103 public:
virtual Ogre::Root *OgreRoot()
const;
106 const unsigned int _width,
const unsigned int _height,
107 const double _ratio,
const unsigned int _antiAliasing);
113 protected:
virtual ScenePtr CreateSceneImpl(
unsigned int _id,
123 protected:
virtual bool LoadImpl(
126 protected:
virtual bool InitImpl()
override;
128 private:
void LoadAttempt();
130 private:
void CreateLogger();
132 private:
void CreateContext();
134 private:
void CreateRoot();
136 private:
void CreateOverlay();
138 private:
void LoadPlugins();
140 private:
void CreateRenderSystem();
142 private:
void CreateResources();
144 private:
void CreateRenderWindow();
146 private:
void CheckCapabilities();
148 private:
void InitAttempt();
150 #if (OGRE_VERSION >= ((1 << 16) | (9 << 8) | 0))
151 public: Ogre::OverlaySystem *OverlaySystem()
const;
156 private: Ogre::OverlaySystem *ogreOverlaySystem =
nullptr;
161 private: OgreRenderPathType renderPathType;
163 private: Ogre::Root *ogreRoot =
nullptr;
165 private: Ogre::LogManager *ogreLogManager =
nullptr;
170 #if !defined(__APPLE__) && !defined(_WIN32)
171 private:
void *dummyDisplay =
nullptr;
173 private:
void *dummyContext =
nullptr;
176 private: uint64_t dummyWindowId = 0u;
179 private:
bool useCurrentGLContext =
false;
Definition: gz/rendering/ogre/OgreCamera.hh:27
Plugin for loading ogre render engine.
Definition: gz/rendering/ogre/OgreRenderEngine.hh:50
Base plugin class for render engines.
Definition: gz/rendering/RenderEnginePlugin.hh:40
Definition: gz/rendering/ogre/OgreRenderEngine.hh:68
An abstract interface to a concrete render-engine. A RenderEngine is responsible for initializing a r...
Definition: gz/rendering/RenderEngine.hh:36
OgreRenderPathType
The type of rendering path used by the rendering engine.
Definition: gz/rendering/ogre/OgreRenderEngine.hh:74
Definition: gz/rendering/base/BaseRenderEngine.hh:33