Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE2_OGRE2RENDERENGINE_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2RENDERENGINE_HH_
25 #include <gz/common/SingletonT.hh>
31 #include "gz/rendering/ogre2/Export.hh"
47 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
50 class Ogre2RenderEnginePrivate;
85 public:
virtual void Destroy()
override;
88 public:
virtual bool IsEnabled()
const override;
95 public:
void AddResourcePath(
const std::string &_uri)
override;
99 public:
virtual Ogre::Root *OgreRoot()
const;
110 const unsigned int _width,
const unsigned int _height,
111 const double _ratio,
const unsigned int _antiAliasing);
116 protected:
virtual ScenePtr CreateSceneImpl(
unsigned int _id,
125 protected:
virtual bool LoadImpl(
130 protected:
virtual bool InitImpl()
override;
133 private:
void LoadAttempt();
136 private:
void CreateLogger();
139 private:
void CreateContext();
142 private:
void CreateRoot();
145 private:
void CreateOverlay();
148 private:
void LoadPlugins();
151 private:
void CreateRenderSystem();
154 private:
void CreateRenderWindow();
157 private:
void CreateResources();
160 private:
void InitAttempt();
169 public: Ogre::v1::OverlaySystem *OverlaySystem()
const;
172 private: Ogre::v1::OverlaySystem *ogreOverlaySystem =
nullptr;
178 private: Ogre::Root *ogreRoot =
nullptr;
181 private: Ogre::LogManager *ogreLogManager =
nullptr;
187 private:
void *dummyDisplay =
nullptr;
190 private:
void *dummyContext =
nullptr;
193 private: uint64_t dummyWindowId = 0u;
196 private:
bool useCurrentGLContext =
false;
Plugin for loading ogre render engine.
Definition: gz/rendering/ogre2/Ogre2RenderEngine.hh:53
Definition: gz/rendering/ogre/OgreCamera.hh:27
Base plugin class for render engines.
Definition: gz/rendering/RenderEnginePlugin.hh:40
Ogre2 render engine class. A singleton class that manages the underlying ogre2 render engine,...
Definition: gz/rendering/ogre2/Ogre2RenderEngine.hh:74
An abstract interface to a concrete render-engine. A RenderEngine is responsible for initializing a r...
Definition: gz/rendering/RenderEngine.hh:36
Definition: gz/rendering/base/BaseRenderEngine.hh:33