17 #ifndef GZ_RENDERING_OGRE_OGRERENDERTARGET_HH_
18 #define GZ_RENDERING_OGRE_OGRERENDERTARGET_HH_
20 #include <gz/math/Color.hh>
41 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
54 public:
virtual void Copy(
Image &_image)
const override;
62 private:
bool CopyToBuffer(
const PixelBuffer &_dst)
const;
64 public:
virtual Ogre::Camera *
Camera()
const;
66 public:
virtual void SetCamera(Ogre::Camera *_camera);
81 public:
virtual void Destroy()
override = 0;
92 public: Ogre::Viewport *
Viewport(
const int _viewportId)
const;
120 protected: Ogre::Camera *ogreCamera =
nullptr;
122 protected: Ogre::Viewport *ogreViewport =
nullptr;
132 protected:
bool colorDirty =
true;
134 protected:
unsigned int antiAliasing = 4;
156 public:
virtual unsigned int GLId();
158 public:
virtual void Buffer(
float *buffer);
168 protected: Ogre::Texture *ogreTexture =
nullptr;
188 protected: Ogre::RenderTarget *ogreRenderWindow =
nullptr;