Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

virtual void OglGui::ShapeScalingView::OnDrawView (  )  [inline, virtual]

Reimplemented from OglGui::View.

Definition at line 32 of file ShapeScalingView.h.

References mShape, mShapeBg, OglGui::View::mView2D, and OglGui::View::OnDrawView().

00033     {
00034         View::OnDrawView();
00035         if (!mShape)
00036             return;
00037         OGC myOGC;
00038         OGCSave(&myOGC);
00039         glPushMatrix();
00040         int bInfo[3];
00041         oglSys.StartBlend(bInfo);
00042         viewSys.View2DTransform(mView2D);
00043         SetSolidFillColor(mShapeBg);
00044         float w = mView2D->w, h = mView2D->h;
00045         if (mShape==2)
00046         {
00047             FillOval(w/2,h/2,w/2,h/2);
00048             SetSolidLineColor(oglBLACK);
00049             DrawOval(w/2,h/2,w/2,h/2);
00050         }
00051         if (mShape==1)
00052         {
00053             FillRectangle(.5,.5,w-1,h-1);
00054             SetSolidLineColor(oglBLACK);
00055             DrawRectangle(.5,.5,w-1,h-1);
00056         }
00057         oglSys.EndBlend(bInfo);
00058         glPopMatrix();
00059         OGCRestore(&myOGC);
00060     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:49 2011 for ImpalaSrc by  doxygen 1.5.1