28 #ifndef opengl_CTexturedPlane_H
29 #define opengl_CTexturedPlane_H
50 mutable
float m_tex_x_min,m_tex_x_max;
51 mutable
float m_tex_y_min,m_tex_y_max;
56 mutable
bool polygonUpToDate;
57 mutable std::vector<mrpt::math::TPolygonWithPlane> tmpPoly;
58 void updatePoly() const;
61 void render_texturedobj() const;
65 void setTextureCornerCoords(
float tex_x_min,
float tex_x_max,
float tex_y_min,
float tex_y_max)
67 m_tex_x_min=tex_x_min;
68 m_tex_x_max=tex_x_max;
69 m_tex_y_min=tex_y_min;
70 m_tex_y_max=tex_y_max;
75 void setPlaneCorners(
float xMin,
float xMax,
float yMin,
float yMax)
77 m_xMin = xMin; m_xMax = xMax;
78 m_yMin = yMin; m_yMax = yMax;
79 polygonUpToDate=
false;
84 inline void getPlaneCorners(
float &xMin,
float &xMax,
float &yMin,
float &yMax)
const
86 xMin = m_xMin; xMax = m_xMax;
87 yMin = m_yMin; yMax = m_yMax;