17 #ifndef GZ_RENDERING_OGRE2_OGRE2RENDERENGINE_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2RENDERENGINE_HH_
25 #include <gz/common/SingletonT.hh>
33 #include "gz/rendering/ogre2/Export.hh"
45 class HlmsPbsTerraShadows;
46 class CompositorWorkspaceListener;
53 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
56 class Ogre2RenderEnginePrivate;
57 class Ogre2GzHlmsSphericalClipMinDistance;
119 const unsigned int _width,
const unsigned int _height,
120 const double _ratio,
const unsigned int _antiAliasing);
127 const std::string &_winHandle,
const uint32_t _width,
128 const uint32_t _height,
const double _ratio)
override;
150 private:
void LoadAttempt();
153 private:
void CreateLogger();
156 private:
void CreateContext();
159 private:
void RegisterHlms();
162 private:
void CreateRoot();
165 private:
void CreateOverlay();
168 private:
void LoadPlugins();
171 private:
void CreateRenderSystem();
174 private:
void CreateRenderWindow();
177 private:
void CreateResources();
180 private:
void InitAttempt();
187 public: Ogre2GzHlmsSphericalClipMinDistance GZ_DEPRECATED(7) &
206 inline void GZ_DEPRECATED(7) SetIgnOgreRenderingMode(
209 return SetGzOgreRenderingMode(renderingMode);
228 public: Ogre::CompositorWorkspaceListener
236 private: Ogre::v1::OverlaySystem *ogreOverlaySystem =
nullptr;
242 private: Ogre::Root *ogreRoot =
nullptr;
245 private: Ogre::LogManager *ogreLogManager =
nullptr;
251 private:
void *dummyDisplay =
nullptr;
254 private:
void *dummyContext =
nullptr;
257 private: uint64_t dummyWindowId = 0u;
260 private: Ogre::Window *window =
nullptr;
263 private:
bool useCurrentGLContext =
false;