Reimplemented from OglGui::ViewListener. Definition at line 49 of file ViewListenerWithRectangles.h. References OglGui::View::GetOGLIMAGE(), OglGui::View::GetOGLVIEW2D(), mColor, and mList. 00050 { 00051 if (mList->size() == 0) 00052 return; 00053 00054 OGLIMAGE* oglIm = view->GetOGLIMAGE(); 00055 if (!oglIm) 00056 return; 00057 00058 OGC ogc; 00059 OGCSave(&ogc); 00060 glPushMatrix(); 00061 00062 viewSys.View2DImageTransform(view->GetOGLVIEW2D()); 00063 SetSolidLineColor(mColor); 00064 SetLineWidth(1); 00065 for (Core::Geometry::RectangleListCI r=mList->begin() ; r!=mList->end() ; r++) 00066 //DrawRectangle(mX, oglIm->h - mY - mH, mW, mH); 00067 DrawRectangle(r->mLeft, oglIm->h - r->mTop - r->Height(), 00068 r->Width(), r->Height()); 00069 glPopMatrix(); 00070 OGCRestore(&ogc); 00071 }
Here is the call graph for this function:
|