30 #define IMG(id) OLocalizator::getPicture("TYPanelGraphic", (id))
67 GLdouble polygonMode[2];
68 glGetDoublev(GL_POLYGON_MODE, polygonMode);
71 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
74 glMatrixMode(GL_PROJECTION);
80 glMatrixMode(GL_MODELVIEW);
87 int x =
_posX + offset;
88 int y =
_posY - offset;
96 glVertex2i(x, y - dy);
97 glVertex2i(x + dx, y - dy);
98 glVertex2i(x + dx, y);
125 glMatrixMode(GL_PROJECTION);
129 glMatrixMode(GL_MODELVIEW);
133 glPolygonMode(GL_FRONT_AND_BACK, polygonMode[0]);
Representation graphique d'un panel d'informations (fichier header)
static const OColor BLACK
static const OColor YELLOW
bool load(const char *filename)
void drawText(const std::string &msg, const OColor &color, double x, double y) const
static LPOSizeManager get()
classe graphique pour un element de base
bool _visible
Inique si l'element est visible.
virtual void update(bool force=false)
TYPanelGraphic(TYPanel *pElement)
virtual void update(bool force=false)
virtual ~TYPanelGraphic()
virtual void display(TYElement *pModelerElement=nullptr, GLenum mode=GL_RENDER)
Classe de definition d'un panel d'information.