17 #ifndef GZ_RENDERING_OGRE_OGREDISTORTIONPASS_HH_
18 #define GZ_RENDERING_OGRE_OGREDISTORTIONPASS_HH_
23 #include <gz/utils/ImplPtr.hh>
24 #include <gz/utils/SuppressWarning.hh>
29 #include "gz/rendering/ogre/Export.hh"
35 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
38 class DistortionCompositorListener;
54 public:
void PreRender()
override;
57 public:
void Destroy()
override;
60 public:
void CreateRenderPass()
override;
76 double _k1,
double _k2,
double _k3,
77 double _p1,
double _p2,
78 unsigned int _width,
double _f);
85 DistortionMapValueClamped(
int _x,
int _y)
const;
90 protected:
void CalculateAndApplyDistortionScale();
94 GZ_UTILS_UNIQUE_IMPL_PTR(dataPtr)