Board index » cppbuilder » opengl.. newbie
Cam Elli
![]() CBuilder Developer |
Fri, 14 May 2004 23:18:57 GMT
opengl.. newbie
Hi,
I am trying to write a component derived from the TWinControl that simulates TLabel functionality using Bitmap text. I have followed some links and advice from this group to create the component, but I am having difficulty with the transparency. Do I have to take a snapshot of the background and merge the two images, or can I clear the window and simply write the text... I am also interested in applying drop shadows and bevels to the text, but Can somebody suggest where I may look. void __fastcall TTelLab::DrawLabel() glColor3f(1.0f*float(cos(cnt1)),1.0f*float(sin(cnt2)),1.0f-0.5f*float(cos(c PrintText("Text - %7.2f", cnt1); if (fmt == NULL) return; glPushAttrib(GL_LIST_BIT); |