- glPushMatrix;
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- d:=R2Vec(0,0);
- if PosXIs=akRight then
- d.x:=-TextLenght;
- if PosYIs=akTop then
- d.y:=-TextHeight;
- glColor4f(Red(BackgroundColor),Green(BackgroundColor),Blue(BackgroundColor), BackgroundAlpha);
- glTranslatef(pos.x+d.x, pos.y+d.y, pos.z-0.001);
- glBegin(GL_QUADS);
- glVertex3f(-rand.x,-rand.y,0);
- glVertex3f(TextLenght+rand.x,-rand.y,0);
- glVertex3f(TextLenght+rand.x,TextHeight+rand.y,0);
- glVertex3f(-rand.x,TextHeight+rand.y,0);
- glEnd;
- glDisable(GL_BLEND);
- glPopMatrix;