Revision: 6769
http://playerstage.svn.sourceforge.net/playerstage/?rev=6769&view=rev
Author: alexcb
Date: 2008-07-04 17:31:17 -0700 (Fri, 04 Jul 2008)
Log Message:
-----------
white floor when grid is disabled
Modified Paths:
--------------
code/stage/trunk/libstage/canvas.cc
Modified: code/stage/trunk/libstage/canvas.cc
===================================================================
--- code/stage/trunk/libstage/canvas.cc 2008-07-05 00:10:12 UTC (rev 6768)
+++ code/stage/trunk/libstage/canvas.cc 2008-07-05 00:31:17 UTC (rev 6769)
@@ -484,7 +484,11 @@
{
stg_bounds3d_t bounds = world->GetExtent();
float z = 0;
- glColor3f( 0.6, 0.6, 1.0 );
+
+ glEnable(GL_POLYGON_OFFSET_FILL);
+ glPolygonOffset(2.0, 2.0);
+
+ glColor4f( 1.0, 1.0, 1.0, 1.0 );
glBegin(GL_QUADS);
glVertex3f( bounds.x.min, bounds.y.min, z );
glVertex3f( bounds.x.max, bounds.y.min, z );
@@ -561,6 +565,8 @@
if( showGrid )
DrawGlobalGrid();
+ else
+ DrawFloor();
if( showTree || showOccupancy )
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit