Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE2_OGRE2CAMERA_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2CAMERA_HH_
36 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
39 class Ogre2CameraPrivate;
40 class Ogre2SelectionBuffer;
56 public:
virtual void SetHFOV(
const math::Angle &_hfov)
override;
59 public:
virtual double AspectRatio()
const override;
62 public:
virtual void SetAspectRatio(
const double _ratio)
override;
65 public:
virtual unsigned int AntiAliasing()
const override;
68 public:
virtual void SetAntiAliasing(
const unsigned int _aa)
override;
71 public:
virtual void SetFarClipPlane(
const double _far)
override;
74 public:
virtual void SetNearClipPlane(
const double _near)
override;
76 public:
virtual math::Color BackgroundColor()
const;
78 public:
virtual void SetBackgroundColor(
const math::Color &_color);
82 public:
virtual MaterialPtr BackgroundMaterial()
const;
86 public:
virtual void SetBackgroundMaterial(
MaterialPtr _material);
89 public:
virtual void Render()
override;
98 public:
virtual void SetProjectionMatrix(
110 &_mousePos)
override;
114 public:
virtual void SetMaterial(
118 public:
virtual unsigned int RenderTextureGLId()
const override;
121 public:
void SetShadowsDirty()
override;
124 public:
virtual void Destroy()
override;
129 public:
virtual void SetVisibilityMask(uint32_t _mask)
override;
139 protected:
virtual void Init()
override;
142 protected:
virtual void CreateRenderTexture();
146 protected:
void DestroyRenderTexture();
150 protected:
virtual void SetSelectionBuffer();
153 private:
void CreateCamera();
160 private:
void SetShadowsNodeDefDirty();
163 protected: Ogre::Camera *ogreCamera =
nullptr;
Definition: gz/rendering/ogre/OgreCamera.hh:27
math::Color backgroundColor
Color of background.
Definition: gz/rendering/ogre2/Ogre2Camera.hh:172
Ogre2RenderTargetPtr renderTexture
Pointer to render texture.
Definition: gz/rendering/ogre2/Ogre2Camera.hh:169
Generates a selection buffer object for a given camera. The selection buffer is used of entity select...
Definition: gz/rendering/ogre2/Ogre2SelectionBuffer.hh:47
CameraProjectionType
Enum for projection types.
Definition: gz/rendering/Camera.hh:39
A Ray Query class used for computing ray object intersections.
Definition: gz/rendering/ogre2/Ogre2RayQuery.hh:38
Ogre2.x implementation of the scene class.
Definition: gz/rendering/ogre2/Ogre2Scene.hh:57
Represents a render-target to which cameras can render images.
Definition: gz/rendering/RenderTarget.hh:37
Definition: gz/rendering/ogre/OgreCamera.hh:41
Ogre2.x implementation of the camera class.
Definition: gz/rendering/ogre2/Ogre2Camera.hh:43
Definition: gz/rendering/base/BaseCamera.hh:44