28 #ifndef opengl_CRenderizable_H
29 #define opengl_CRenderizable_H
46 namespace poses {
class CPoint3D;
class CPoint2D; }
47 namespace utils {
class CStringList; }
51 class COpenGLViewport;
82 float m_scale_x, m_scale_y, m_scale_z;
89 void setName(const std::
string &n) { m_name=n; }
90 const std::string &
getName()
const {
return m_name; }
113 inline double getPoseX()
const {
return m_pose.x(); }
114 inline double getPoseY()
const {
return m_pose.y(); }
115 inline double getPoseZ()
const {
return m_pose.z(); }
123 inline double getColorR()
const {
return m_color.R/255.; }
124 inline double getColorG()
const {
return m_color.G/255.; }
125 inline double getColorB()
const {
return m_color.B/255.; }
126 inline double getColorA()
const {
return m_color.A/255.; }
144 inline CRenderizable&
setScale(
float sx,
float sy,
float sz) { m_scale_x=sx; m_scale_y=sy; m_scale_z = sz;
return *
this; }
157 inline CRenderizable&
setColor(
double R,
double G,
double B,
double A=1) {
return setColor_u8(R*255,G*255,B*255,A*255); }
181 virtual void render()
const = 0;
195 const std::string &str,
206 const std::string &str,
221 static unsigned int getNewTextureNumber();
222 static void releaseTextureName(
unsigned int i);