28 #ifndef opengl_CRenderizableDisplayList_H
29 #define opengl_CRenderizableDisplayList_H
37 #define INVALID_DISPLAY_LIST_ID static_cast<unsigned int>(-1)
60 mutable
unsigned int m_dl;
61 mutable
bool m_dl_recreate;
68 EIGEN_STRONG_INLINE
void notifyChange()
const { m_dl_recreate=
true;}
71 virtual void render_dl()
const = 0;
96 virtual void render()
const;
102 virtual CRenderizable&
setColorR_u8(
const uint8_t r) {m_color.R=r; notifyChange();
return *
this;}
103 virtual CRenderizable&
setColorG_u8(
const uint8_t g) {m_color.G=g; notifyChange();
return *
this;}
104 virtual CRenderizable&
setColorB_u8(
const uint8_t b) {m_color.B=b; notifyChange();
return *
this;}
105 virtual CRenderizable&
setColorA_u8(
const uint8_t a) {m_color.A=a; notifyChange();
return *
this;}