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 GZ_RENDERING_VERSION_NAMESPACE {
47 class OgreRenderEnginePrivate;
108 const unsigned int _width,
const unsigned int _height,
109 const double _ratio,
const unsigned int _antiAliasing);
134 private:
void LoadAttempt();
136 private:
void CreateLogger();
138 private:
void CreateContext();
140 private:
void CreateRoot();
142 private:
void CreateOverlay();
144 private:
void LoadPlugins();
146 private:
void CreateRenderSystem();
148 private:
void CreateResources();
150 private:
void CreateRenderWindow();
152 private:
void CheckCapabilities();
154 private:
void InitAttempt();
156 #if (OGRE_VERSION >= ((1 << 16) | (9 << 8) | 0))
160 public: Ogre::OverlaySystem *OverlaySystem()
const;
162 private: Ogre::OverlaySystem *ogreOverlaySystem =
nullptr;
169 private: Ogre::Root *ogreRoot =
nullptr;
171 private: Ogre::LogManager *ogreLogManager =
nullptr;
176 #if !defined(__APPLE__) && !defined(_WIN32)
177 private:
void *dummyDisplay =
nullptr;
179 private:
void *dummyContext =
nullptr;
182 private: uint64_t dummyWindowId = 0u;
185 private:
bool useCurrentGLContext =
false;