Changeset 998 for GTP/trunk/Lib/Geom/shared/GeoTool
- Timestamp:
- 05/31/06 10:20:15 (19 years ago)
- Location:
- GTP/trunk/Lib/Geom/shared
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared
-
Property
svn:ignore
set to
arbolkk.mesh
arbol.leafseq
arbol.lod
arbol.mesh
arbol2.leafseq
arbol3.leafseq
arbol3.lod
arbol3.mesh
arbolkk.leafseq
arbolkk.lod
-
Property
svn:ignore
set to
-
GTP/trunk/Lib/Geom/shared/GeoTool/GeoTool.vcproj
r993 r998 5 5 Name="GeoTool" 6 6 ProjectGUID="{31522E11-420C-4DD6-8922-AF96B93E2207}" 7 RootNamespace="GeoTool" 7 8 Keyword="Win32Proj"> 8 9 <Platforms> … … 54 55 Name="VCMIDLTool"/> 55 56 <Tool 56 Name="VCPostBuildEventTool"/> 57 Name="VCPostBuildEventTool" 58 CommandLine="xcopy /Y ..\..\..\..\..\..\NonGTP\Devil\lib\*.dll $(OutDir)"/> 57 59 <Tool 58 60 Name="VCPreBuildEventTool"/> … … 107 109 Name="VCMIDLTool"/> 108 110 <Tool 109 Name="VCPostBuildEventTool"/> 111 Name="VCPostBuildEventTool" 112 CommandLine="xcopy /Y ..\..\..\..\..\..\NonGTP\Devil\lib\*.dll $(OutDir)"/> 110 113 <Tool 111 114 Name="VCPreBuildEventTool"/> -
GTP/trunk/Lib/Geom/shared/GeoTool/include/GeoMeshView.h
r994 r998 199 199 int getSubMeshCount(void) const { return mSubMeshCount; } 200 200 void resetTextures(void); 201 int findLeavesSubMesh(void); 201 202 202 203 private: … … 243 244 GLuint *current_texture_submesh; 244 245 bool use_texture_mapping; // this flag enables texture mapping when a texture is loaded 246 bool SetTextureRenderingState(int submesh); // returns true if textures must be used 245 247 246 248 virtual int handle(int event); -
GTP/trunk/Lib/Geom/shared/GeoTool/out.objf
r993 r998 3 3 #by Francine Evans 4 4 5 t 18 19 18 20 6 q 21 7 q 2 8 q 1 9 q 3 10 q 4 11 q 8 4 12 q 9 4 13 q 24 14 q 22 15 q 32 16 q 30 17 q 7 18 q 6 19 q 5 6 20 q 31 21 q 30 22 q 23 23 q 22 24 q 1 4 25 t 21 1 21 23 26 q 28 27 q 31 28 q 36 29 q 5 30 q 17 31 q 16 17 32 q 37 33 q 36 34 q 29 35 q 28 36 q 18 21 37 t 10 11 10 12 38 q 13 39 q 14 13 40 q 15 13 41 q 27 42 q 25 43 q 35 44 q 33 45 q 38 33 46 q 39 33 47 q 40 33 48 q 34 33 49 q 26 50 q 25 51 q 10 13 5 t 33146 33143 33146 33154 6 q 33153 7 q 33152 8 q 33151 9 q 33150 10 q 33149 11 q 33148 12 q 33147 13 q 33145 14 q 33144 15 q 33143 33144 16 q 33146 17 q 33156 33146 18 q 33160 19 q 33153 20 q 33159 21 q 33151 22 q 33158 23 q 33149 24 q 33157 25 q 33147 26 q 33155 27 q 33144 33155 28 q 33156 29 q 33162 33156 30 q 33166 31 q 33160 32 q 33165 33 q 33159 34 q 33164 35 q 33158 36 q 33163 37 q 33157 38 q 33161 39 q 33155 33161 40 q 33162 41 q 33168 33162 42 q 33172 43 q 33166 44 q 33171 45 q 33165 46 q 33170 47 q 33164 48 q 33169 49 q 33163 50 q 33167 51 q 33161 33167 52 q 33168 53 q 33174 33168 54 q 33178 55 q 33172 56 q 33177 57 q 33171 58 q 33176 59 q 33170 60 q 33175 61 q 33169 62 q 33173 63 q 33167 33173 64 q 33174 33173 65 q 33180 33173 66 q 33179 67 q 33175 68 q 33181 69 q 33176 70 q 33182 71 q 33177 72 q 33183 73 q 33178 74 q 33184 75 q 33174 33184 76 q 33180 33184 77 q 33185 78 q 33183 33185 79 q 33182 33185 80 q 33181 33185 81 q 33179 33180 82 t 33051 33043 33040 83 q 33041 84 q 33042 85 q 33044 86 q 33045 87 q 33046 88 q 33047 89 q 33048 90 q 33049 91 q 33050 92 q 33051 33050 93 q 33043 33050 94 q 33057 33050 95 q 33056 96 q 33048 97 q 33055 98 q 33046 99 q 33054 100 q 33044 101 q 33052 102 q 33041 103 q 33053 104 q 33043 33053 105 q 33057 106 q 33063 33057 107 q 33062 108 q 33056 109 q 33061 110 q 33055 111 q 33060 112 q 33054 113 q 33058 114 q 33052 115 q 33059 116 q 33053 33059 117 q 33063 118 q 33069 33063 119 q 33068 120 q 33062 121 q 33067 122 q 33061 123 q 33066 124 q 33060 125 q 33064 126 q 33058 127 q 33065 128 q 33059 33065 129 q 33069 130 q 33075 33069 131 q 33074 132 q 33068 133 q 33073 134 q 33067 135 q 33072 136 q 33066 137 q 33070 138 q 33064 139 q 33071 140 q 33065 33071 141 q 33075 142 q 33081 33075 143 q 33080 144 q 33074 145 q 33079 146 q 33073 147 q 33078 148 q 33072 149 q 33076 150 q 33070 151 q 33077 152 q 33071 33077 153 q 33081 154 q 33087 33081 155 q 33086 156 q 33080 157 q 33085 158 q 33079 159 q 33084 160 q 33078 161 q 33082 162 q 33076 163 q 33083 164 q 33077 33083 165 q 33087 166 q 33093 33087 167 q 33092 168 q 33086 169 q 33091 170 q 33085 171 q 33090 172 q 33084 173 q 33088 174 q 33082 175 q 33089 176 q 33083 33089 177 q 33093 33089 178 q 33099 33089 179 q 33095 180 q 33088 181 q 33094 182 q 33090 183 q 33096 184 q 33091 185 q 33097 186 q 33092 187 q 33098 188 q 33093 33098 189 q 33099 190 q 33104 33099 191 q 33105 192 q 33095 193 q 33101 194 q 33094 195 q 33100 196 q 33096 197 q 33102 198 q 33097 199 q 33103 200 q 33098 33103 201 q 33104 33103 202 q 33109 33103 203 q 33108 204 q 33102 205 q 33106 206 q 33100 207 q 33107 208 q 33101 209 q 33111 210 q 33105 211 q 33110 212 q 33104 33110 213 q 33109 33110 214 q 33115 33110 215 q 33116 216 q 33111 217 q 33117 218 q 33107 219 q 33113 220 q 33106 221 q 33112 222 q 33108 223 q 33114 224 q 33109 33114 225 q 33115 33114 226 q 33120 33114 227 q 33118 228 q 33112 229 q 33119 230 q 33113 231 q 33123 232 q 33117 233 q 33122 234 q 33116 235 q 33121 236 q 33115 33121 237 q 33120 238 q 33126 33120 239 q 33124 240 q 33118 241 q 33125 242 q 33119 243 q 33129 244 q 33123 245 q 33128 246 q 33122 247 q 33127 248 q 33121 33127 249 q 33126 250 q 33132 33126 251 q 33130 252 q 33124 253 q 33131 254 q 33125 255 q 33135 256 q 33129 257 q 33134 258 q 33128 259 q 33133 260 q 33127 33133 261 q 33132 33133 262 q 33138 33133 263 q 33139 264 q 33134 265 q 33140 266 q 33135 267 q 33141 268 q 33131 269 q 33137 270 q 33130 271 q 33136 272 q 33132 33136 273 q 33138 33136 274 q 33142 275 q 33137 33142 276 q 33141 33142 277 q 33140 33142 278 q 33139 33138 279 t 32934 32931 32934 32942 280 q 32941 281 q 32940 282 q 32939 283 q 32938 284 q 32937 285 q 32936 286 q 32935 287 q 32933 288 q 32932 289 q 32931 32932 290 q 32934 291 q 32944 32934 292 q 32948 293 q 32941 294 q 32947 295 q 32939 296 q 32946 297 q 32937 298 q 32945 299 q 32935 300 q 32943 301 q 32932 32943 302 q 32944 303 q 32950 32944 304 q 32954 305 q 32948 306 q 32953 307 q 32947 308 q 32952 309 q 32946 310 q 32951 311 q 32945 312 q 32949 313 q 32943 32949 314 q 32950 32949 315 q 32956 32949 316 q 32955 317 q 32951 318 q 32957 319 q 32952 320 q 32958 321 q 32953 322 q 32959 323 q 32954 324 q 32960 325 q 32950 32960 326 q 32956 32960 327 q 32966 32960 328 q 32965 329 q 32959 330 q 32964 331 q 32958 332 q 32963 333 q 32957 334 q 32961 335 q 32955 336 q 32962 337 q 32956 32962 338 q 32966 339 q 32972 32966 340 q 32971 341 q 32965 342 q 32970 343 q 32964 344 q 32969 345 q 32963 346 q 32967 347 q 32961 348 q 32968 349 q 32962 32968 350 q 32972 351 q 32978 32972 352 q 32977 353 q 32971 354 q 32976 355 q 32970 356 q 32975 357 q 32969 358 q 32973 359 q 32967 360 q 32974 361 q 32968 32974 362 q 32978 363 q 32984 32978 364 q 32983 365 q 32977 366 q 32982 367 q 32976 368 q 32981 369 q 32975 370 q 32979 371 q 32973 372 q 32980 373 q 32974 32980 374 q 32984 375 q 32990 32984 376 q 32989 377 q 32983 378 q 32988 379 q 32982 380 q 32987 381 q 32981 382 q 32985 383 q 32979 384 q 32986 385 q 32980 32986 386 q 32990 387 q 32996 32990 388 q 32995 389 q 32989 390 q 32994 391 q 32988 392 q 32993 393 q 32987 394 q 32991 395 q 32985 396 q 32992 397 q 32986 32992 398 q 32996 32992 399 q 33002 32992 400 q 32998 401 q 32991 402 q 32997 403 q 32993 404 q 32999 405 q 32994 406 q 33000 407 q 32995 408 q 33001 409 q 32996 33001 410 q 33002 411 q 33007 33002 412 q 33008 413 q 32998 414 q 33004 415 q 32997 416 q 33003 417 q 32999 418 q 33005 419 q 33000 420 q 33006 421 q 33001 33006 422 q 33007 33006 423 q 33012 33006 424 q 33011 425 q 33005 426 q 33009 427 q 33003 428 q 33010 429 q 33004 430 q 33014 431 q 33008 432 q 33013 433 q 33007 33013 434 q 33012 435 q 33018 33012 436 q 33017 437 q 33011 438 q 33015 439 q 33009 440 q 33016 441 q 33010 442 q 33020 443 q 33014 444 q 33019 445 q 33013 33019 446 q 33018 447 q 33024 33018 448 q 33023 449 q 33017 450 q 33021 451 q 33015 452 q 33022 453 q 33016 454 q 33026 455 q 33020 456 q 33025 457 q 33019 33025 458 q 33024 459 q 33030 33024 460 q 33029 461 q 33023 462 q 33027 463 q 33021 464 q 33028 465 q 33022 466 q 33032 467 q 33026 468 q 33031 469 q 33025 33031 470 q 33030 471 q 33036 33030 472 q 33035 473 q 33029 474 q 33033 475 q 33027 476 q 33034 477 q 33028 478 q 33038 479 q 33032 480 q 33037 481 q 33031 33037 482 q 33036 483 q 33039 484 q 33035 33039 485 q 33033 33039 486 q 33034 33039 487 q 33038 33037 488 t 32833 32825 32822 489 q 32823 490 q 32824 491 q 32826 492 q 32827 493 q 32828 494 q 32829 495 q 32830 496 q 32831 497 q 32832 498 q 32833 32832 499 q 32825 32832 500 q 32839 32832 501 q 32838 502 q 32830 503 q 32837 504 q 32828 505 q 32836 506 q 32826 507 q 32834 508 q 32823 509 q 32835 510 q 32825 32835 511 q 32839 512 q 32845 32839 513 q 32844 514 q 32838 515 q 32843 516 q 32837 517 q 32842 518 q 32836 519 q 32840 520 q 32834 521 q 32841 522 q 32835 32841 523 q 32845 524 q 32851 32845 525 q 32850 526 q 32844 527 q 32849 528 q 32843 529 q 32848 530 q 32842 531 q 32846 532 q 32840 533 q 32847 534 q 32841 32847 535 q 32851 536 q 32857 32851 537 q 32856 538 q 32850 539 q 32855 540 q 32849 541 q 32854 542 q 32848 543 q 32852 544 q 32846 545 q 32853 546 q 32847 32853 547 q 32857 548 q 32863 32857 549 q 32862 550 q 32856 551 q 32861 552 q 32855 553 q 32860 554 q 32854 555 q 32858 556 q 32852 557 q 32859 558 q 32853 32859 559 q 32863 560 q 32869 32863 561 q 32868 562 q 32862 563 q 32867 564 q 32861 565 q 32866 566 q 32860 567 q 32864 568 q 32858 569 q 32865 570 q 32859 32865 571 q 32869 32865 572 q 32875 32865 573 q 32871 574 q 32864 575 q 32870 576 q 32866 577 q 32872 578 q 32867 579 q 32873 580 q 32868 581 q 32874 582 q 32869 32874 583 q 32875 32874 584 q 32880 32874 585 q 32879 586 q 32873 587 q 32878 588 q 32872 589 q 32876 590 q 32870 591 q 32877 592 q 32871 593 q 32881 594 q 32875 32881 595 q 32880 596 q 32886 32880 597 q 32885 598 q 32879 599 q 32884 600 q 32878 601 q 32882 602 q 32876 603 q 32883 604 q 32877 605 q 32887 606 q 32881 32887 607 q 32886 608 q 32892 32886 609 q 32891 610 q 32885 611 q 32890 612 q 32884 613 q 32888 614 q 32882 615 q 32889 616 q 32883 617 q 32893 618 q 32887 32893 619 q 32892 620 q 32898 32892 621 q 32897 622 q 32891 623 q 32896 624 q 32890 625 q 32894 626 q 32888 627 q 32895 628 q 32889 629 q 32899 630 q 32893 32899 631 q 32898 632 q 32904 32898 633 q 32903 634 q 32897 635 q 32902 636 q 32896 637 q 32900 638 q 32894 639 q 32901 640 q 32895 641 q 32905 642 q 32899 32905 643 q 32904 644 q 32910 32904 645 q 32909 646 q 32903 647 q 32908 648 q 32902 649 q 32906 650 q 32900 651 q 32907 652 q 32901 653 q 32911 654 q 32905 32911 655 q 32910 656 q 32916 32910 657 q 32915 658 q 32909 659 q 32914 660 q 32908 661 q 32912 662 q 32906 663 q 32913 664 q 32907 665 q 32917 666 q 32911 32917 667 q 32916 668 q 32922 32916 669 q 32921 670 q 32915 671 q 32920 672 q 32914 673 q 32918 674 q 32912 675 q 32919 676 q 32913 677 q 32923 678 q 32917 32923 679 q 32922 32923 680 q 32928 32923 681 q 32929 682 q 32919 683 q 32925 684 q 32918 685 q 32924 686 q 32920 687 q 32926 688 q 32921 689 q 32927 690 q 32922 32927 691 q 32928 32927 692 q 32930 693 q 32926 32930 694 q 32924 32930 695 q 32925 32930 696 q 32929 32928 697 t 32730 32722 32719 698 q 32720 699 q 32721 700 q 32723 701 q 32724 702 q 32725 703 q 32726 704 q 32727 705 q 32728 706 q 32729 707 q 32730 32729 708 q 32722 709 q 32736 32722 710 q 32732 711 q 32720 712 q 32731 713 q 32723 714 q 32733 715 q 32725 716 q 32734 717 q 32727 718 q 32735 719 q 32729 32735 720 q 32736 32735 721 q 32741 32735 722 q 32740 723 q 32734 724 q 32739 725 q 32733 726 q 32737 727 q 32731 728 q 32738 729 q 32732 730 q 32742 731 q 32736 32742 732 q 32741 32742 733 q 32747 32742 734 q 32748 735 q 32738 736 q 32744 737 q 32737 738 q 32743 739 q 32739 740 q 32745 741 q 32740 742 q 32746 743 q 32741 32746 744 q 32747 745 q 32752 32747 746 q 32753 747 q 32748 748 q 32754 749 q 32744 750 q 32750 751 q 32743 752 q 32749 753 q 32745 754 q 32751 755 q 32746 32751 756 q 32752 32751 757 q 32757 32751 758 q 32755 759 q 32749 760 q 32756 761 q 32750 762 q 32760 763 q 32754 764 q 32759 765 q 32753 766 q 32758 767 q 32752 32758 768 q 32757 769 q 32763 32757 770 q 32761 771 q 32755 772 q 32762 773 q 32756 774 q 32766 775 q 32760 776 q 32765 777 q 32759 778 q 32764 779 q 32758 32764 780 q 32763 781 q 32769 32763 782 q 32767 783 q 32761 784 q 32768 785 q 32762 786 q 32772 787 q 32766 788 q 32771 789 q 32765 790 q 32770 791 q 32764 32770 792 q 32769 793 q 32775 32769 794 q 32773 795 q 32767 796 q 32774 797 q 32768 798 q 32778 799 q 32772 800 q 32777 801 q 32771 802 q 32776 803 q 32770 32776 804 q 32775 805 q 32781 32775 806 q 32779 807 q 32773 808 q 32780 809 q 32774 810 q 32784 811 q 32778 812 q 32783 813 q 32777 814 q 32782 815 q 32776 32782 816 q 32781 32782 817 q 32787 32782 818 q 32788 819 q 32783 820 q 32789 821 q 32784 822 q 32790 823 q 32780 824 q 32786 825 q 32779 826 q 32785 827 q 32781 32785 828 q 32787 829 q 32791 32787 830 q 32793 831 q 32788 832 q 32794 833 q 32789 834 q 32795 835 q 32790 836 q 32796 837 q 32786 838 q 32792 839 q 32785 32792 840 q 32791 32792 841 q 32798 32792 842 q 32802 843 q 32796 844 q 32801 845 q 32795 846 q 32800 847 q 32794 848 q 32799 849 q 32793 850 q 32797 851 q 32791 32797 852 q 32798 853 q 32804 32798 854 q 32808 855 q 32802 856 q 32807 857 q 32801 858 q 32806 859 q 32800 860 q 32805 861 q 32799 862 q 32803 863 q 32797 32803 864 q 32804 865 q 32810 32804 866 q 32814 867 q 32808 868 q 32813 869 q 32807 870 q 32812 871 q 32806 872 q 32811 873 q 32805 874 q 32809 875 q 32803 32809 876 q 32810 877 q 32816 32810 878 q 32820 879 q 32814 880 q 32819 881 q 32813 882 q 32818 883 q 32812 884 q 32817 885 q 32811 886 q 32815 887 q 32809 32815 888 q 32816 889 q 32821 890 q 32820 32821 891 q 32819 32821 892 q 32818 32821 893 q 32817 32815 894 t 32639 32631 32628 895 q 32629 896 q 32630 897 q 32632 898 q 32633 899 q 32634 900 q 32635 901 q 32636 902 q 32637 903 q 32638 904 q 32639 32638 905 q 32631 32638 906 q 32645 32638 907 q 32644 908 q 32636 909 q 32643 910 q 32634 911 q 32642 912 q 32632 913 q 32640 914 q 32629 915 q 32641 916 q 32631 32641 917 q 32645 918 q 32651 32645 919 q 32650 920 q 32644 921 q 32649 922 q 32643 923 q 32648 924 q 32642 925 q 32646 926 q 32640 927 q 32647 928 q 32641 32647 929 q 32651 32647 930 q 32657 32647 931 q 32653 932 q 32646 933 q 32652 934 q 32648 935 q 32654 936 q 32649 937 q 32655 938 q 32650 939 q 32656 940 q 32651 32656 941 q 32657 942 q 32662 32657 943 q 32663 944 q 32653 945 q 32659 946 q 32652 947 q 32658 948 q 32654 949 q 32660 950 q 32655 951 q 32661 952 q 32656 32661 953 q 32662 32661 954 q 32667 32661 955 q 32666 956 q 32660 957 q 32664 958 q 32658 959 q 32665 960 q 32659 961 q 32669 962 q 32663 963 q 32668 964 q 32662 32668 965 q 32667 966 q 32673 32667 967 q 32672 968 q 32666 969 q 32670 970 q 32664 971 q 32671 972 q 32665 973 q 32675 974 q 32669 975 q 32674 976 q 32668 32674 977 q 32673 978 q 32679 32673 979 q 32678 980 q 32672 981 q 32676 982 q 32670 983 q 32677 984 q 32671 985 q 32681 986 q 32675 987 q 32680 988 q 32674 32680 989 q 32679 990 q 32685 32679 991 q 32684 992 q 32678 993 q 32682 994 q 32676 995 q 32683 996 q 32677 997 q 32687 998 q 32681 999 q 32686 1000 q 32680 32686 1001 q 32685 32686 1002 q 32691 32686 1003 q 32692 1004 q 32687 1005 q 32693 1006 q 32683 1007 q 32689 1008 q 32682 1009 q 32688 1010 q 32684 1011 q 32690 1012 q 32685 32690 1013 q 32691 32690 1014 q 32696 32690 1015 q 32694 1016 q 32688 1017 q 32695 1018 q 32689 1019 q 32699 1020 q 32693 1021 q 32698 1022 q 32692 1023 q 32697 1024 q 32691 32697 1025 q 32696 1026 q 32702 32696 1027 q 32700 1028 q 32694 1029 q 32701 1030 q 32695 1031 q 32705 1032 q 32699 1033 q 32704 1034 q 32698 1035 q 32703 1036 q 32697 32703 1037 q 32702 1038 q 32708 32702 1039 q 32706 1040 q 32700 1041 q 32707 1042 q 32701 1043 q 32711 1044 q 32705 1045 q 32710 1046 q 32704 1047 q 32709 1048 q 32703 32709 1049 q 32708 32709 1050 q 32714 32709 1051 q 32715 1052 q 32710 1053 q 32716 1054 q 32711 1055 q 32717 1056 q 32707 1057 q 32713 1058 q 32706 1059 q 32712 1060 q 32708 32712 1061 q 32714 32712 1062 q 32718 1063 q 32713 32718 1064 q 32717 32718 1065 q 32716 32718 1066 q 32715 32714 1067 t 32564 32561 32564 32572 1068 q 32571 1069 q 32570 1070 q 32569 1071 q 32568 1072 q 32567 1073 q 32566 1074 q 32565 1075 q 32563 1076 q 32562 1077 q 32561 32562 1078 q 32564 1079 q 32574 32564 1080 q 32578 1081 q 32571 1082 q 32577 1083 q 32569 1084 q 32576 1085 q 32567 1086 q 32575 1087 q 32565 1088 q 32573 1089 q 32562 32573 1090 q 32574 32573 1091 q 32580 32573 1092 q 32579 1093 q 32575 1094 q 32581 1095 q 32576 1096 q 32582 1097 q 32577 1098 q 32583 1099 q 32578 1100 q 32584 1101 q 32574 32584 1102 q 32580 32584 1103 q 32590 32584 1104 q 32589 1105 q 32583 1106 q 32588 1107 q 32582 1108 q 32587 1109 q 32581 1110 q 32585 1111 q 32579 1112 q 32586 1113 q 32580 32586 1114 q 32590 1115 q 32596 32590 1116 q 32595 1117 q 32589 1118 q 32594 1119 q 32588 1120 q 32593 1121 q 32587 1122 q 32591 1123 q 32585 1124 q 32592 1125 q 32586 32592 1126 q 32596 1127 q 32602 32596 1128 q 32601 1129 q 32595 1130 q 32600 1131 q 32594 1132 q 32599 1133 q 32593 1134 q 32597 1135 q 32591 1136 q 32598 1137 q 32592 32598 1138 q 32602 1139 q 32608 32602 1140 q 32607 1141 q 32601 1142 q 32606 1143 q 32600 1144 q 32605 1145 q 32599 1146 q 32603 1147 q 32597 1148 q 32604 1149 q 32598 32604 1150 q 32608 32604 1151 q 32614 32604 1152 q 32610 1153 q 32603 1154 q 32609 1155 q 32605 1156 q 32611 1157 q 32606 1158 q 32612 1159 q 32607 1160 q 32613 1161 q 32608 32613 1162 q 32614 32613 1163 q 32619 32613 1164 q 32618 1165 q 32612 1166 q 32617 1167 q 32611 1168 q 32615 1169 q 32609 1170 q 32616 1171 q 32610 1172 q 32620 1173 q 32614 32620 1174 q 32619 1175 q 32625 32619 1176 q 32624 1177 q 32618 1178 q 32623 1179 q 32617 1180 q 32621 1181 q 32615 1182 q 32622 1183 q 32616 1184 q 32626 1185 q 32620 32626 1186 q 32625 1187 q 32627 1188 q 32624 32627 1189 q 32623 32627 1190 q 32621 32627 1191 q 32622 32626 -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshView.cpp
r995 r998 671 671 672 672 // bind current texture to use 673 GLuint usetex = 0; 674 if (use_texture_mapping) 675 { 676 if (current_texture_submesh[submesh]) 677 usetex=current_texture_submesh[submesh]; 678 else if (current_texture) 679 usetex=current_texture; 680 } 681 glBindTexture(GL_TEXTURE_2D,usetex); 682 673 bool usetex = SetTextureRenderingState(submesh); 683 674 684 675 // For each one of the strips. … … 797 788 geosubmesh = &geoMesh->mSubMesh[submesh]; 798 789 790 // bind current texture to use 791 bool usetex = SetTextureRenderingState(submesh); 792 799 793 // If wire is not selected. 800 794 if (!paintWire) … … 817 811 if (submesh == leavesSubMesh) 818 812 { 819 glColor3d(0.0,1.0,0.0); 820 GLfloat green[] = {0.0f,1.0f,0.0f,1.0f}; 821 glMaterialfv(GL_FRONT_AND_BACK,GL_DIFFUSE,green); 813 if (!usetex) 814 { 815 glColor3d(0.0,1.0,0.0); 816 GLfloat green[] = {0.0f,1.0f,0.0f,1.0f}; 817 glMaterialfv(GL_FRONT_AND_BACK,GL_DIFFUSE,green); 818 } 819 else 820 { 821 glEnable(GL_ALPHA_TEST); 822 glAlphaFunc(GL_GREATER,0.5f); 823 glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,1); 824 } 822 825 } 823 826 } … … 832 835 } 833 836 834 // bind current texture to use 835 GLuint usetex = 0; 836 if (use_texture_mapping) 837 { 838 if (current_texture_submesh[submesh]) 839 usetex=current_texture_submesh[submesh]; 840 else if (current_texture) 841 usetex=current_texture; 842 } 843 glBindTexture(GL_TEXTURE_2D,usetex); 844 837 if (usetex) 838 { 839 glColor4f(1.0f,1.0f,1.0f,1.0f); 840 GLfloat white[] = {1.0f,1.0f,1.0f,1.0f}; 841 glMaterialfv(GL_FRONT_AND_BACK,GL_DIFFUSE,white); 842 } 843 845 844 // Enable arrays. 846 845 glEnableClientState(GL_VERTEX_ARRAY); … … 871 870 GL_UNSIGNED_INT, 872 871 mIndexArray[submesh]); 872 873 if (submesh==leavesSubMesh) 874 { 875 glDisable(GL_ALPHA_TEST); 876 glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,0); 877 } 873 878 874 879 }//End drawTriangleList … … 895 900 { 896 901 // bind current texture to use 897 GLuint usetex = 0; 898 if (use_texture_mapping) 899 { 900 if (current_texture_submesh[submesh]) 901 usetex=current_texture_submesh[submesh]; 902 else if (current_texture) 903 usetex=current_texture; 904 } 905 glBindTexture(GL_TEXTURE_2D,usetex); 902 bool usetex = SetTextureRenderingState(submesh); 906 903 907 904 color_index = 0; … … 994 991 current_strip = 0; 995 992 996 glEnable(GL_ALPHA_TEST);997 // glEnable(GL_BLEND);998 993 // DRAW THE TRUNK AS A LODSTRIP OBJECT 999 994 … … 1001 996 for (int submesh = 0; submesh < geoMesh->mSubMeshCount; submesh++) 1002 997 { 998 if (submesh==leavesSubMesh) 999 continue; 1000 1003 1001 // bind current texture to use 1004 GLuint usetex = 0; 1005 if (use_texture_mapping) 1006 { 1007 if (current_texture_submesh[submesh]) 1008 usetex=current_texture_submesh[submesh]; 1009 else if (current_texture) 1010 usetex=current_texture; 1011 } 1012 glBindTexture(GL_TEXTURE_2D,usetex); 1002 bool usetex = SetTextureRenderingState(submesh); 1013 1003 1014 1004 color_index = 0; … … 1082 1072 1083 1073 // DRAW THE LEAVES AS A TRIANGLE SOUP 1084 glColor3f(0,1,1); 1085 glDisable(GL_LIGHTING); 1074 // bind current texture to use 1075 bool usetex = SetTextureRenderingState(leavesSubMesh); 1076 1077 glEnable(GL_ALPHA_TEST); 1078 glAlphaFunc(GL_GREATER,0.5f); 1079 glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,1); 1080 1086 1081 glBegin(GL_TRIANGLES); 1087 1082 const Geometry::VertexData *foliage_verts = lodTreeLib->Get_Foliage_VertexData(); … … 1090 1085 { 1091 1086 float vx,vy,vz; 1087 if (usetex) 1088 { 1089 foliage_verts->GetVertexTexCoord(foliage_inds->GetIndex(j),vx,vy); 1090 glTexCoord2f(vx,vy); 1091 } 1092 foliage_verts->GetVertexNormal(foliage_inds->GetIndex(j),vx,vy,vz); 1093 glNormal3f(vx,vy,vz); 1092 1094 foliage_verts->GetVertexCoord(foliage_inds->GetIndex(j),vx,vy,vz); 1093 1095 glVertex3f(vx,vy,vz); … … 1095 1097 glEnd(); 1096 1098 1097 glEnable(GL_LIGHTING);1098 1099 glColor3f(1,1,1); 1099 1100 }//End drawTriangleStrip. 1100 glDisable(GL_ALPHA_TEST); 1101 glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,0); 1102 } 1101 1103 1102 1104 … … 1150 1152 glMatrixMode(GL_PROJECTION); 1151 1153 glLoadIdentity(); 1152 1153 if (current_texture && use_texture_mapping)1154 glEnable(GL_TEXTURE_2D);1155 else1156 glDisable(GL_TEXTURE_2D);1157 1154 1158 1155 glEnable(GL_LIGHTING); … … 1299 1296 } 1300 1297 } 1298 1299 1300 bool GeoMeshView::SetTextureRenderingState(int submesh) 1301 { 1302 GLuint usetex = 0; 1303 if (use_texture_mapping) 1304 { 1305 if (current_texture_submesh[submesh]) 1306 usetex=current_texture_submesh[submesh]; 1307 else if (current_texture) 1308 usetex=current_texture; 1309 } 1310 if (usetex) 1311 glEnable(GL_TEXTURE_2D); 1312 else 1313 glDisable(GL_TEXTURE_2D); 1314 1315 glBindTexture(GL_TEXTURE_2D,usetex); 1316 1317 return (usetex!=0); 1318 } 1319 1320 1321 int GeoMeshView::findLeavesSubMesh(void) 1322 { 1323 for (int i=0; i<geoMesh->mSubMeshCount; i++) 1324 if (geoMesh->mSubMesh[i].mType==GEO_TRIANGLE_LIST) 1325 return i; 1326 return -1; 1327 } -
GTP/trunk/Lib/Geom/shared/GeoTool/src/GeoMeshViewUI.cpp
r995 r998 24 24 // Deactive Lod tree visualization. 25 25 geoMeshView->deactiveLodTree(); 26 27 geoMeshView->resetTextures();28 BuildLoadTextureSubMeshMenu();29 26 30 27 // Repaint the window. … … 922 919 // Show title. 923 920 mProcessTitle->label("Visualize LodTrees"); 921 922 // set the submesh with triangle lists as the leaves submesh 923 geoMeshView->setLeavesSubMesh(geoMeshView->findLeavesSubMesh()); 924 924 925 925 // Show the Visulize LodTree panel. … … 2521 2521 // Restore simplification state. 2522 2522 simplificationState = NO_SIMPLIFICATION; 2523 2524 geoMeshView->resetTextures(); 2525 BuildLoadTextureSubMeshMenu(); 2523 2526 } 2524 2527 }
Note: See TracChangeset
for help on using the changeset viewer.