Changeset 4670 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jun 23, 2005, 6:29:10 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4669 r4670 685 685 float* len = this->bvElement->halfLength; 686 686 687 if( drawMode & DRAW_BV_BLENDED) 688 this->obbTree->getTransparentMaterial(treeIndex)->select(); 689 687 690 /* draw bounding box */ 688 glBegin(GL_QUAD_STRIP); 691 if( drawMode & DRAW_BV_BLENDED) 692 glBegin(GL_QUADS); 693 else 694 glBegin(GL_LINE_LOOP); 689 695 glVertex3f(cen.x + axis[0].x * len[0] + axis[1].x * len[1] + axis[2].x * len[2], 690 696 cen.y + axis[0].y * len[0] + axis[1].y * len[1] + axis[2].y * len[2], … … 701 707 glEnd(); 702 708 703 glBegin(GL_LINE_LOOP); 709 if( drawMode & DRAW_BV_BLENDED) 710 glBegin(GL_QUADS); 711 else 712 glBegin(GL_LINE_LOOP); 704 713 glVertex3f(cen.x + axis[0].x * len[0] - axis[1].x * len[1] + axis[2].x * len[2], 705 714 cen.y + axis[0].y * len[0] - axis[1].y * len[1] + axis[2].y * len[2], … … 716 725 glEnd(); 717 726 718 glBegin(GL_LINE_LOOP); 727 if( drawMode & DRAW_BV_BLENDED) 728 glBegin(GL_QUADS); 729 else 730 glBegin(GL_LINE_LOOP); 719 731 glVertex3f(cen.x - axis[0].x * len[0] - axis[1].x * len[1] + axis[2].x * len[2], 720 732 cen.y - axis[0].y * len[0] - axis[1].y * len[1] + axis[2].y * len[2], … … 731 743 glEnd(); 732 744 733 glBegin(GL_LINE_LOOP); 745 if( drawMode & DRAW_BV_BLENDED) 746 glBegin(GL_QUADS); 747 else 748 glBegin(GL_LINE_LOOP); 734 749 glVertex3f(cen.x - axis[0].x * len[0] + axis[1].x * len[1] - axis[2].x * len[2], 735 750 cen.y - axis[0].y * len[0] + axis[1].y * len[1] - axis[2].y * len[2], … … 745 760 cen.z + axis[0].z * len[0] + axis[1].z * len[1] - axis[2].z * len[2]); 746 761 glEnd(); 762 763 if( drawMode & DRAW_BV_BLENDED) 764 this->obbTree->getMaterial(treeIndex)->select(); 747 765 } 748 766
Note: See TracChangeset
for help on using the changeset viewer.