Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2005, 10:56:45 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: more draw options

File:
1 edited

Legend:

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

    r4711 r4712  
    7979  entityList = new tList<WorldEntity>();
    8080
    81    a = new TestEntity(); a->setName("Clown1");
    82    b = new Environment(); a->setName("Clown");
    83   //b = new Environment(); b->setName("Jaeger");
     81  a = new TestEntity(); a->setName("Clown1");
     82  b = new Environment(); b->setName("Jaeger");
    8483  //c = new Terrain();
    8584
    86    b->setRelCoor(0.0, 0.0, -10.0);
     85  b->setRelCoor(0.0, 0.0, -10.0);
    8786  //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));
    8887
     
    336335
    337336
     337int drawPoints(GtkWidget* nonInterest, void* widget)
     338{
     339  if(drawMode & DRAW_POINTS)
     340  {
     341    int temp = drawMode & DRAW_POINTS;
     342    drawMode ^= temp;
     343
     344  }
     345  else
     346  {
     347    drawMode |= DRAW_POINTS;
     348    printf("Drawing OBB Polygons\n");
     349  }
     350}
     351
     352
    338353int treeDepth(GtkWidget* nonInterest, void* widget)
    339354{
     
    377392
    378393
     394      CheckButton* DrawPoints = new CheckButton("Draw Points");
     395      DrawPoints->connectSignal("clicked", (void*)DrawPoints, drawPoints);
     396      windowBox->fill(DrawPoints);
     397
     398
    379399      CheckButton* SeperatingPlanes = new CheckButton("SeperatingPlanes");
    380400      SeperatingPlanes->connectSignal("clicked", (void*)SeperatingPlanes, seperatingPlanes);
     
    382402
    383403
    384       Slider* TreeDepth = new Slider("TreeDepth", 0, 10);
     404      Slider* TreeDepth = new Slider("TreeDepth", 0, 17);
    385405      TreeDepth->connectSignal("value_changed", (void*)TreeDepth, treeDepth);
    386406      windowBox->fill(TreeDepth);
Note: See TracChangeset for help on using the changeset viewer.