Go to the documentation of this file.
17 #ifndef GZ_RENDERING_OGRE2_OGRE2CONVERSIONS_HH_
18 #define GZ_RENDERING_OGRE2_OGRE2CONVERSIONS_HH_
20 #include <gz/math/Color.hh>
21 #include <gz/math/Matrix4.hh>
22 #include <gz/math/Quaternion.hh>
23 #include <gz/math/Vector3.hh>
25 #include "gz/rendering/config.hh"
27 #include "gz/rendering/ogre2/Export.hh"
30 #pragma warning(push, 0)
33 #include <OgreColourValue.h>
34 #include <OgreVector3.h>
35 #include <OgrePixelFormatGpu.h>
45 inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
58 public:
static Ogre::ColourValue Convert(
65 const Ogre::ColourValue &_color);
70 public:
static Ogre::Vector3 Convert(
const math::Vector3d &_vector);
75 public:
static math::Vector3d Convert(
const Ogre::Vector3 &_vector);
90 public:
static Ogre::Radian Convert(
const math::Angle &_angle);
95 public:
static math::Angle Convert(
const Ogre::Radian &_angle);
110 public:
static Ogre::PixelFormatGpu Convert(
PixelFormat _format);
113 private:
static const Ogre::PixelFormatGpu ogrePixelFormats[
PF_COUNT];
PixelFormat
Image pixel format types.
Definition: gz/rendering/PixelFormat.hh:32
Conversions Conversions.hh rendering/Conversions.hh.
Definition: gz/rendering/ogre2/Ogre2Conversions.hh:53
@ PF_COUNT
< Number of pixel format types
Definition: gz/rendering/PixelFormat.hh:61