Update of /cvsroot/gcblue/gcb_wx/src/graphics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23080/src/graphics
Modified Files:
tc3DWindow.cpp
Log Message:
Index: tc3DWindow.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/graphics/tc3DWindow.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tc3DWindow.cpp 14 Sep 2004 02:01:46 -0000 1.1
--- tc3DWindow.cpp 14 Sep 2004 23:17:16 -0000 1.2
***************
*** 394,397 ****
--- 394,399 ----
osg::Vec4(1.0, 1.0, 1.0, 1.0), 12.0f, CENTER_CENTER);
+ DrawRect(x2 + 5, y2 + 5, 10, 30, osg::Vec4(1.0f, 0.2f, 0.2f, 1.0f));
+
DrawBorder();
***************
*** 420,423 ****
--- 422,435 ----
}
+ void tc3DWindow::DrawRect(float x1, float y1, float width, float height,
+ const osg::Vec4& color)
+ {
+ osg::Vec4 white(1.0f, 1.0f, 1.0f, 1.0f);
+
+ DrawLine(x1, y1, x1, y1 + height, color);
+ DrawLine(x1, y1 + height, x1 + width, y1 + height, color);
+ DrawLine(x1 + width, y1 + height, x1 + width, y1, color);
+ DrawLine(x1 + width, y1, x1, y1, color);
+ }
void tc3DWindow::DrawText(const char* s, float x, float y, osgText::Font* font,
|