Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4671 in orxonox.OLD for orxonox/trunk/src/subprojects


Ignore:
Timestamp:
Jun 23, 2005, 6:54:34 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the blended boxes get rendered correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc

    r4661 r4671  
    232232}
    233233
     234
     235int blendedBox(GtkWidget* nonInterest, void* widget)
     236{
     237  if(drawMode & DRAW_BV_BLENDED)
     238  {
     239    int temp = drawMode & DRAW_BV_BLENDED;
     240    drawMode ^= temp;
     241    printf("Removing OBB Polygons\n");
     242  }
     243  else
     244  {
     245    drawMode |= DRAW_BV_BLENDED;
     246    printf("Drawing OBB Polygons\n");
     247  }
     248}
     249
     250
    234251int treeDepth(GtkWidget* nonInterest, void* widget)
    235252{
     
    258275    Box* windowBox = new Box('v');
    259276    {
    260       CheckButton* BoxPolygons = new CheckButton("BoxPolygons");
     277      CheckButton* BoxPolygons = new CheckButton("Draw OBB Polygons");
    261278      BoxPolygons->connectSignal("clicked", (void*)BoxPolygons, boxPolygons);
    262279      windowBox->fill(BoxPolygons);
     280
     281
     282      CheckButton* BlendedBox = new CheckButton("Draw OBB Blended");
     283      BlendedBox->connectSignal("clicked", (void*)BlendedBox, blendedBox);
     284      windowBox->fill(BlendedBox);
    263285
    264286
     
    266288      SeperatingPlanes->connectSignal("clicked", (void*)SeperatingPlanes, seperatingPlanes);
    267289      windowBox->fill(SeperatingPlanes);
     290
    268291
    269292      Slider* TreeDepth = new Slider("TreeDepth", 0, 5);
Note: See TracChangeset for help on using the changeset viewer.