Changeset 1032 for branches/Carsten_PtrWork2/Source/System/Depreciated/State/OSGTextureChunkBase.cpp
- Timestamp:
- 12/12/07 18:00:42 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/Depreciated/State/OSGTextureChunkBase.cpp
r1020 r1032 389 389 */ 390 390 391 391 392 392 void TextureChunkBase::classDescInserter(TypeObject &oType) 393 393 { 394 394 FieldDescriptionBase *pDesc = NULL; 395 396 395 397 396 pDesc = new SFImageInternalPtr::Description( … … 399 398 "image", 400 399 "The texture image.\n", 401 ImageFieldId, ImageFieldMask, 400 ImageFieldId, 401 ImageFieldMask, 402 402 false, 403 403 Field::SFDefaultFlags, 404 404 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleImage), 405 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleImage)); 406 407 oType.addInitialDesc(pDesc); 408 405 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleImage ) ); 406 407 oType.addInitialDesc(pDesc); 408 409 409 410 pDesc = new SFGLenum::Description( 410 411 SFGLenum::getClassType(), 411 412 "internalFormat", 412 413 "The internal texture format.\n", 413 InternalFormatFieldId, InternalFormatFieldMask, 414 InternalFormatFieldId, 415 InternalFormatFieldMask, 414 416 false, 415 417 Field::SFDefaultFlags, 416 418 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleInternalFormat), 417 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleInternalFormat)); 418 419 oType.addInitialDesc(pDesc); 420 419 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleInternalFormat ) ); 420 421 oType.addInitialDesc(pDesc); 422 423 421 424 pDesc = new SFGLenum::Description( 422 425 SFGLenum::getClassType(), … … 425 428 "external format of image when set to a value not equal to \n" 426 429 "GL_NONE (which is the default).\n", 427 ExternalFormatFieldId, ExternalFormatFieldMask, 430 ExternalFormatFieldId, 431 ExternalFormatFieldMask, 428 432 false, 429 433 Field::SFDefaultFlags, 430 434 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleExternalFormat), 431 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleExternalFormat)); 432 433 oType.addInitialDesc(pDesc); 434 435 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleExternalFormat ) ); 436 437 oType.addInitialDesc(pDesc); 438 439 435 440 pDesc = new SFBool::Description( 436 441 SFBool::getClassType(), … … 441 446 "This is mainly used for rapidly changing non power of two textures, to\n" 442 447 "get around the scaling overhead.\n", 443 ScaleFieldId, ScaleFieldMask, 448 ScaleFieldId, 449 ScaleFieldMask, 444 450 false, 445 451 Field::SFDefaultFlags, 446 452 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleScale), 447 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleScale)); 448 449 oType.addInitialDesc(pDesc); 450 453 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleScale ) ); 454 455 oType.addInitialDesc(pDesc); 456 457 451 458 pDesc = new SFUInt32::Description( 452 459 SFUInt32::getClassType(), … … 455 462 "concerning multi-frame images.\n" 456 463 "@hint For fast update use GL_LINEAR or GL_NEAREST filters, as mipmap creation is slow right now.\n", 457 FrameFieldId, FrameFieldMask, 464 FrameFieldId, 465 FrameFieldMask, 458 466 false, 459 467 Field::SFDefaultFlags, 460 468 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleFrame), 461 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleFrame)); 462 463 oType.addInitialDesc(pDesc); 464 469 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleFrame ) ); 470 471 oType.addInitialDesc(pDesc); 472 473 465 474 pDesc = new SFGLenum::Description( 466 475 SFGLenum::getClassType(), 467 476 "minFilter", 468 477 "The minimisation filter, default GL_LINEAR_MIPMAP_LINEAR.\n", 469 MinFilterFieldId, MinFilterFieldMask, 478 MinFilterFieldId, 479 MinFilterFieldMask, 470 480 false, 471 481 Field::SFDefaultFlags, 472 482 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleMinFilter), 473 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleMinFilter)); 474 475 oType.addInitialDesc(pDesc); 476 483 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleMinFilter ) ); 484 485 oType.addInitialDesc(pDesc); 486 487 477 488 pDesc = new SFGLenum::Description( 478 489 SFGLenum::getClassType(), 479 490 "magFilter", 480 491 "The magnification filter, default GL_LINEAR.\n", 481 MagFilterFieldId, MagFilterFieldMask, 492 MagFilterFieldId, 493 MagFilterFieldMask, 482 494 false, 483 495 Field::SFDefaultFlags, 484 496 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleMagFilter), 485 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleMagFilter)); 486 487 oType.addInitialDesc(pDesc); 488 497 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleMagFilter ) ); 498 499 oType.addInitialDesc(pDesc); 500 501 489 502 pDesc = new SFGLenum::Description( 490 503 SFGLenum::getClassType(), 491 504 "wrapS", 492 505 "Texture coordinate S wrapping, default GL_REPEAT.\n", 493 WrapSFieldId, WrapSFieldMask, 506 WrapSFieldId, 507 WrapSFieldMask, 494 508 false, 495 509 Field::SFDefaultFlags, 496 510 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleWrapS), 497 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleWrapS)); 498 499 oType.addInitialDesc(pDesc); 500 511 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleWrapS ) ); 512 513 oType.addInitialDesc(pDesc); 514 515 501 516 pDesc = new SFGLenum::Description( 502 517 SFGLenum::getClassType(), 503 518 "wrapT", 504 519 "Texture coordinate T wrapping, default GL_REPEAT.\n", 505 WrapTFieldId, WrapTFieldMask, 520 WrapTFieldId, 521 WrapTFieldMask, 506 522 false, 507 523 Field::SFDefaultFlags, 508 524 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleWrapT), 509 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleWrapT)); 510 511 oType.addInitialDesc(pDesc); 512 525 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleWrapT ) ); 526 527 oType.addInitialDesc(pDesc); 528 529 513 530 pDesc = new SFGLenum::Description( 514 531 SFGLenum::getClassType(), 515 532 "wrapR", 516 533 "Texture coordinate R wrapping, default GL_REPEAT.\n", 517 WrapRFieldId, WrapRFieldMask, 534 WrapRFieldId, 535 WrapRFieldMask, 518 536 false, 519 537 Field::SFDefaultFlags, 520 538 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleWrapR), 521 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleWrapR)); 522 523 oType.addInitialDesc(pDesc); 524 539 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleWrapR ) ); 540 541 oType.addInitialDesc(pDesc); 542 543 525 544 pDesc = new SFGLenum::Description( 526 545 SFGLenum::getClassType(), 527 546 "envMode", 528 547 "Texture environment mode, default GL_REPLACE\n", 529 EnvModeFieldId, EnvModeFieldMask, 548 EnvModeFieldId, 549 EnvModeFieldMask, 530 550 false, 531 551 Field::SFDefaultFlags, 532 552 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvMode), 533 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvMode)); 534 535 oType.addInitialDesc(pDesc); 536 553 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvMode ) ); 554 555 oType.addInitialDesc(pDesc); 556 557 537 558 pDesc = new SFColor4f::Description( 538 559 SFColor4f::getClassType(), 539 560 "envColor", 540 561 "Texture environment color default transparent black.\n", 541 EnvColorFieldId, EnvColorFieldMask, 562 EnvColorFieldId, 563 EnvColorFieldMask, 542 564 false, 543 565 Field::SFDefaultFlags, 544 566 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvColor), 545 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvColor)); 546 547 oType.addInitialDesc(pDesc); 548 567 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvColor ) ); 568 569 oType.addInitialDesc(pDesc); 570 571 549 572 pDesc = new SFGLenum::Description( 550 573 SFGLenum::getClassType(), 551 574 "envCombineRGB", 552 575 "Texture environment rgb combine mode, default GL_MODULATE\n", 553 EnvCombineRGBFieldId, EnvCombineRGBFieldMask, 576 EnvCombineRGBFieldId, 577 EnvCombineRGBFieldMask, 554 578 false, 555 579 Field::SFDefaultFlags, 556 580 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvCombineRGB), 557 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvCombineRGB)); 558 559 oType.addInitialDesc(pDesc); 560 581 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvCombineRGB ) ); 582 583 oType.addInitialDesc(pDesc); 584 585 561 586 pDesc = new SFGLenum::Description( 562 587 SFGLenum::getClassType(), 563 588 "envCombineAlpha", 564 589 "Texture environment alpha combine mode, default GL_MODULATE\n", 565 EnvCombineAlphaFieldId, EnvCombineAlphaFieldMask, 590 EnvCombineAlphaFieldId, 591 EnvCombineAlphaFieldMask, 566 592 false, 567 593 Field::SFDefaultFlags, 568 594 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvCombineAlpha), 569 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvCombineAlpha)); 570 571 oType.addInitialDesc(pDesc); 572 595 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvCombineAlpha ) ); 596 597 oType.addInitialDesc(pDesc); 598 599 573 600 pDesc = new SFReal32::Description( 574 601 SFReal32::getClassType(), 575 602 "envScaleRGB", 576 603 "Texture environment combine rgb scale factor, default 1.f\n", 577 EnvScaleRGBFieldId, EnvScaleRGBFieldMask, 604 EnvScaleRGBFieldId, 605 EnvScaleRGBFieldMask, 578 606 false, 579 607 Field::SFDefaultFlags, 580 608 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvScaleRGB), 581 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvScaleRGB)); 582 583 oType.addInitialDesc(pDesc); 584 609 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvScaleRGB ) ); 610 611 oType.addInitialDesc(pDesc); 612 613 585 614 pDesc = new SFReal32::Description( 586 615 SFReal32::getClassType(), 587 616 "envScaleAlpha", 588 617 "Texture environment combine alpha scale factor, default 1.f\n", 589 EnvScaleAlphaFieldId, EnvScaleAlphaFieldMask, 618 EnvScaleAlphaFieldId, 619 EnvScaleAlphaFieldMask, 590 620 false, 591 621 Field::SFDefaultFlags, 592 622 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvScaleAlpha), 593 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvScaleAlpha)); 594 595 oType.addInitialDesc(pDesc); 596 623 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvScaleAlpha ) ); 624 625 oType.addInitialDesc(pDesc); 626 627 597 628 pDesc = new SFGLenum::Description( 598 629 SFGLenum::getClassType(), 599 630 "envSource0RGB", 600 631 "Texture environment combine source 0 rgb, default GL_TEXTURE\n", 601 EnvSource0RGBFieldId, EnvSource0RGBFieldMask, 632 EnvSource0RGBFieldId, 633 EnvSource0RGBFieldMask, 602 634 false, 603 635 Field::SFDefaultFlags, 604 636 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvSource0RGB), 605 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource0RGB)); 606 607 oType.addInitialDesc(pDesc); 608 637 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource0RGB ) ); 638 639 oType.addInitialDesc(pDesc); 640 641 609 642 pDesc = new SFGLenum::Description( 610 643 SFGLenum::getClassType(), 611 644 "envSource1RGB", 612 645 "Texture environment combine source 1 rgb, default GL_PREVIOUS_EXT\n", 613 EnvSource1RGBFieldId, EnvSource1RGBFieldMask, 646 EnvSource1RGBFieldId, 647 EnvSource1RGBFieldMask, 614 648 false, 615 649 Field::SFDefaultFlags, 616 650 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvSource1RGB), 617 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource1RGB)); 618 619 oType.addInitialDesc(pDesc); 620 651 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource1RGB ) ); 652 653 oType.addInitialDesc(pDesc); 654 655 621 656 pDesc = new SFGLenum::Description( 622 657 SFGLenum::getClassType(), 623 658 "envSource2RGB", 624 659 "Texture environment combine source 2 rgb, default GL_CONSTANT_EXT\n", 625 EnvSource2RGBFieldId, EnvSource2RGBFieldMask, 660 EnvSource2RGBFieldId, 661 EnvSource2RGBFieldMask, 626 662 false, 627 663 Field::SFDefaultFlags, 628 664 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvSource2RGB), 629 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource2RGB)); 630 631 oType.addInitialDesc(pDesc); 632 665 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource2RGB ) ); 666 667 oType.addInitialDesc(pDesc); 668 669 633 670 pDesc = new SFGLenum::Description( 634 671 SFGLenum::getClassType(), 635 672 "envSource0Alpha", 636 673 "Texture environment combine source 0 alpha, default GL_TEXTURE\n", 637 EnvSource0AlphaFieldId, EnvSource0AlphaFieldMask, 674 EnvSource0AlphaFieldId, 675 EnvSource0AlphaFieldMask, 638 676 false, 639 677 Field::SFDefaultFlags, 640 678 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvSource0Alpha), 641 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource0Alpha)); 642 643 oType.addInitialDesc(pDesc); 644 679 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource0Alpha ) ); 680 681 oType.addInitialDesc(pDesc); 682 683 645 684 pDesc = new SFGLenum::Description( 646 685 SFGLenum::getClassType(), 647 686 "envSource1Alpha", 648 687 "Texture environment combine source 1 alpha, default GL_PREVIOUS_EXT\n", 649 EnvSource1AlphaFieldId, EnvSource1AlphaFieldMask, 688 EnvSource1AlphaFieldId, 689 EnvSource1AlphaFieldMask, 650 690 false, 651 691 Field::SFDefaultFlags, 652 692 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvSource1Alpha), 653 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource1Alpha)); 654 655 oType.addInitialDesc(pDesc); 656 693 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource1Alpha ) ); 694 695 oType.addInitialDesc(pDesc); 696 697 657 698 pDesc = new SFGLenum::Description( 658 699 SFGLenum::getClassType(), 659 700 "envSource2Alpha", 660 701 "Texture environment combine source 2 alpha, default GL_CONSTANT_EXT\n", 661 EnvSource2AlphaFieldId, EnvSource2AlphaFieldMask, 702 EnvSource2AlphaFieldId, 703 EnvSource2AlphaFieldMask, 662 704 false, 663 705 Field::SFDefaultFlags, 664 706 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvSource2Alpha), 665 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource2Alpha)); 666 667 oType.addInitialDesc(pDesc); 668 707 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvSource2Alpha ) ); 708 709 oType.addInitialDesc(pDesc); 710 711 669 712 pDesc = new SFGLenum::Description( 670 713 SFGLenum::getClassType(), 671 714 "envOperand0RGB", 672 715 "Texture environment combine operand 0 rgb, default GL_SRC_COLOR\n", 673 EnvOperand0RGBFieldId, EnvOperand0RGBFieldMask, 716 EnvOperand0RGBFieldId, 717 EnvOperand0RGBFieldMask, 674 718 false, 675 719 Field::SFDefaultFlags, 676 720 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvOperand0RGB), 677 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand0RGB)); 678 679 oType.addInitialDesc(pDesc); 680 721 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand0RGB ) ); 722 723 oType.addInitialDesc(pDesc); 724 725 681 726 pDesc = new SFGLenum::Description( 682 727 SFGLenum::getClassType(), 683 728 "envOperand1RGB", 684 729 "Texture environment combine operand 1 rgb, default GL_SRC_COLOR\n", 685 EnvOperand1RGBFieldId, EnvOperand1RGBFieldMask, 730 EnvOperand1RGBFieldId, 731 EnvOperand1RGBFieldMask, 686 732 false, 687 733 Field::SFDefaultFlags, 688 734 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvOperand1RGB), 689 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand1RGB)); 690 691 oType.addInitialDesc(pDesc); 692 735 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand1RGB ) ); 736 737 oType.addInitialDesc(pDesc); 738 739 693 740 pDesc = new SFGLenum::Description( 694 741 SFGLenum::getClassType(), 695 742 "envOperand2RGB", 696 743 "Texture environment combine operand 2 rgb, default GL_SRC_ALPHA\n", 697 EnvOperand2RGBFieldId, EnvOperand2RGBFieldMask, 744 EnvOperand2RGBFieldId, 745 EnvOperand2RGBFieldMask, 698 746 false, 699 747 Field::SFDefaultFlags, 700 748 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvOperand2RGB), 701 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand2RGB)); 702 703 oType.addInitialDesc(pDesc); 704 749 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand2RGB ) ); 750 751 oType.addInitialDesc(pDesc); 752 753 705 754 pDesc = new SFGLenum::Description( 706 755 SFGLenum::getClassType(), 707 756 "envOperand0Alpha", 708 757 "Texture environment combine operand 0 alpha, default GL_SRC_ALPHA\n", 709 EnvOperand0AlphaFieldId, EnvOperand0AlphaFieldMask, 758 EnvOperand0AlphaFieldId, 759 EnvOperand0AlphaFieldMask, 710 760 false, 711 761 Field::SFDefaultFlags, 712 762 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvOperand0Alpha), 713 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand0Alpha)); 714 715 oType.addInitialDesc(pDesc); 716 763 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand0Alpha ) ); 764 765 oType.addInitialDesc(pDesc); 766 767 717 768 pDesc = new SFGLenum::Description( 718 769 SFGLenum::getClassType(), 719 770 "envOperand1Alpha", 720 771 "Texture environment combine operand 1 alpha, default GL_SRC_ALPHA\n", 721 EnvOperand1AlphaFieldId, EnvOperand1AlphaFieldMask, 772 EnvOperand1AlphaFieldId, 773 EnvOperand1AlphaFieldMask, 722 774 false, 723 775 Field::SFDefaultFlags, 724 776 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvOperand1Alpha), 725 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand1Alpha)); 726 727 oType.addInitialDesc(pDesc); 728 777 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand1Alpha ) ); 778 779 oType.addInitialDesc(pDesc); 780 781 729 782 pDesc = new SFGLenum::Description( 730 783 SFGLenum::getClassType(), 731 784 "envOperand2Alpha", 732 785 "Texture environment combine operand 2 alpha, default GL_SRC_ALPHA\n", 733 EnvOperand2AlphaFieldId, EnvOperand2AlphaFieldMask, 786 EnvOperand2AlphaFieldId, 787 EnvOperand2AlphaFieldMask, 734 788 false, 735 789 Field::SFDefaultFlags, 736 790 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleEnvOperand2Alpha), 737 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand2Alpha)); 738 739 oType.addInitialDesc(pDesc); 740 791 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleEnvOperand2Alpha ) ); 792 793 oType.addInitialDesc(pDesc); 794 795 741 796 pDesc = new SFGLenum::Description( 742 797 SFGLenum::getClassType(), 743 798 "GLId", 744 799 "The OpenGL texture id for this texture.\n", 745 GLIdFieldId, GLIdFieldMask, 800 GLIdFieldId, 801 GLIdFieldMask, 746 802 true, 747 803 (Field::FClusterLocal), 748 804 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleGLId), 749 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleGLId)); 750 751 oType.addInitialDesc(pDesc); 752 805 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleGLId ) ); 806 807 oType.addInitialDesc(pDesc); 808 809 753 810 pDesc = new SFInt32::Description( 754 811 SFInt32::getClassType(), 755 812 "IgnoreGLForAspect", 756 813 "Don't do any GL calls for aspect of given id.\n", 757 IgnoreGLForAspectFieldId, IgnoreGLForAspectFieldMask, 814 IgnoreGLForAspectFieldId, 815 IgnoreGLForAspectFieldMask, 758 816 true, 759 817 Field::SFDefaultFlags, 760 818 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleIgnoreGLForAspect), 761 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleIgnoreGLForAspect)); 762 763 oType.addInitialDesc(pDesc); 764 819 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleIgnoreGLForAspect ) ); 820 821 oType.addInitialDesc(pDesc); 822 823 765 824 pDesc = new SFBool::Description( 766 825 SFBool::getClassType(), 767 826 "pointSprite", 768 827 "Flag to use this texture for Point Sprites.\n", 769 PointSpriteFieldId, PointSpriteFieldMask, 828 PointSpriteFieldId, 829 PointSpriteFieldMask, 770 830 false, 771 831 Field::SFDefaultFlags, 772 832 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandlePointSprite), 773 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandlePointSprite)); 774 775 oType.addInitialDesc(pDesc); 776 833 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandlePointSprite ) ); 834 835 oType.addInitialDesc(pDesc); 836 837 777 838 pDesc = new SFReal32::Description( 778 839 SFReal32::getClassType(), 779 840 "priority", 780 841 "Priority of this texture, between 0 and 1, the default is 0.\n", 781 PriorityFieldId, PriorityFieldMask, 842 PriorityFieldId, 843 PriorityFieldMask, 782 844 false, 783 845 Field::SFDefaultFlags, 784 846 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandlePriority), 785 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandlePriority)); 786 787 oType.addInitialDesc(pDesc); 788 847 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandlePriority ) ); 848 849 oType.addInitialDesc(pDesc); 850 851 789 852 pDesc = new SFGLenum::Description( 790 853 SFGLenum::getClassType(), … … 792 855 "Shader operation of this texture unit, default GL_NONE. If unit 0 uses\n" 793 856 "GL_NONE, shading is switched off.\n", 794 ShaderOperationFieldId, ShaderOperationFieldMask, 857 ShaderOperationFieldId, 858 ShaderOperationFieldMask, 795 859 false, 796 860 Field::SFDefaultFlags, 797 861 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderOperation), 798 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOperation)); 799 800 oType.addInitialDesc(pDesc); 801 862 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOperation ) ); 863 864 oType.addInitialDesc(pDesc); 865 866 802 867 pDesc = new SFGLenum::Description( 803 868 SFGLenum::getClassType(), 804 869 "shaderInput", 805 870 "Input texture unit for this shader's operation.\n", 806 ShaderInputFieldId, ShaderInputFieldMask, 871 ShaderInputFieldId, 872 ShaderInputFieldMask, 807 873 false, 808 874 Field::SFDefaultFlags, 809 875 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderInput), 810 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderInput)); 811 812 oType.addInitialDesc(pDesc); 813 876 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderInput ) ); 877 878 oType.addInitialDesc(pDesc); 879 880 814 881 pDesc = new MFReal32::Description( 815 882 MFReal32::getClassType(), 816 883 "shaderOffsetMatrix", 817 884 "The 2x2 transformation matrix for offset textures.\n", 818 ShaderOffsetMatrixFieldId, ShaderOffsetMatrixFieldMask, 885 ShaderOffsetMatrixFieldId, 886 ShaderOffsetMatrixFieldMask, 819 887 false, 820 888 Field::MFDefaultFlags, 821 889 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderOffsetMatrix), 822 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOffsetMatrix)); 823 824 oType.addInitialDesc(pDesc); 825 890 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOffsetMatrix ) ); 891 892 oType.addInitialDesc(pDesc); 893 894 826 895 pDesc = new SFReal32::Description( 827 896 SFReal32::getClassType(), 828 897 "shaderOffsetScale", 829 898 "The scaling factor for scaled offset textures.\n", 830 ShaderOffsetScaleFieldId, ShaderOffsetScaleFieldMask, 899 ShaderOffsetScaleFieldId, 900 ShaderOffsetScaleFieldMask, 831 901 false, 832 902 Field::SFDefaultFlags, 833 903 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderOffsetScale), 834 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOffsetScale)); 835 836 oType.addInitialDesc(pDesc); 837 904 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOffsetScale ) ); 905 906 oType.addInitialDesc(pDesc); 907 908 838 909 pDesc = new SFReal32::Description( 839 910 SFReal32::getClassType(), 840 911 "shaderOffsetBias", 841 912 "The bias factor for scaled offset textures.\n", 842 ShaderOffsetBiasFieldId, ShaderOffsetBiasFieldMask, 913 ShaderOffsetBiasFieldId, 914 ShaderOffsetBiasFieldMask, 843 915 false, 844 916 Field::SFDefaultFlags, 845 917 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderOffsetBias), 846 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOffsetBias)); 847 848 oType.addInitialDesc(pDesc); 849 918 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderOffsetBias ) ); 919 920 oType.addInitialDesc(pDesc); 921 922 850 923 pDesc = new SFGLenum::Description( 851 924 SFGLenum::getClassType(), 852 925 "shaderRGBADotProduct", 853 926 "The RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV value.\n", 854 ShaderRGBADotProductFieldId, ShaderRGBADotProductFieldMask, 927 ShaderRGBADotProductFieldId, 928 ShaderRGBADotProductFieldMask, 855 929 false, 856 930 Field::SFDefaultFlags, 857 931 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderRGBADotProduct), 858 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderRGBADotProduct)); 859 860 oType.addInitialDesc(pDesc); 861 932 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderRGBADotProduct ) ); 933 934 oType.addInitialDesc(pDesc); 935 936 862 937 pDesc = new SFUInt8::Description( 863 938 SFUInt8::getClassType(), … … 868 943 "the S coordinate, bit 1 (mask 2) for T, bit 2 (mask 4) for R and bit 4 \n" 869 944 "(mask 8) for Q.\n", 870 ShaderCullModesFieldId, ShaderCullModesFieldMask, 945 ShaderCullModesFieldId, 946 ShaderCullModesFieldMask, 871 947 false, 872 948 Field::SFDefaultFlags, 873 949 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderCullModes), 874 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderCullModes)); 875 876 oType.addInitialDesc(pDesc); 877 950 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderCullModes ) ); 951 952 oType.addInitialDesc(pDesc); 953 954 878 955 pDesc = new SFVec3f::Description( 879 956 SFVec3f::getClassType(), … … 881 958 "The CONST_EYE_NV value, i.e. the constant eye position used by the \n" 882 959 "DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV shader.\n", 883 ShaderConstEyeFieldId, ShaderConstEyeFieldMask, 960 ShaderConstEyeFieldId, 961 ShaderConstEyeFieldMask, 884 962 false, 885 963 Field::SFDefaultFlags, 886 964 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleShaderConstEye), 887 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderConstEye)); 888 889 oType.addInitialDesc(pDesc); 890 965 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleShaderConstEye ) ); 966 967 oType.addInitialDesc(pDesc); 968 969 891 970 pDesc = new SFReal32::Description( 892 971 SFReal32::getClassType(), 893 972 "lodBias", 894 973 "Bias of LOD calculation for texture access.\n", 895 LodBiasFieldId, LodBiasFieldMask, 974 LodBiasFieldId, 975 LodBiasFieldMask, 896 976 false, 897 977 Field::SFDefaultFlags, 898 978 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleLodBias), 899 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleLodBias)); 900 901 oType.addInitialDesc(pDesc); 902 979 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleLodBias ) ); 980 981 oType.addInitialDesc(pDesc); 982 983 903 984 pDesc = new SFInt32::Description( 904 985 SFInt32::getClassType(), … … 907 988 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 908 989 "it does make sense on a cluster, though, that's why it's external.\n", 909 DirtyLeftFieldId, DirtyLeftFieldMask, 990 DirtyLeftFieldId, 991 DirtyLeftFieldMask, 910 992 false, 911 993 Field::SFDefaultFlags, 912 994 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyLeft), 913 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyLeft)); 914 915 oType.addInitialDesc(pDesc); 916 995 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyLeft ) ); 996 997 oType.addInitialDesc(pDesc); 998 999 917 1000 pDesc = new SFInt32::Description( 918 1001 SFInt32::getClassType(), … … 921 1004 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 922 1005 "it does make sense on a cluster, though, that's why it's external.\n", 923 DirtyMinXFieldId, DirtyMinXFieldMask, 1006 DirtyMinXFieldId, 1007 DirtyMinXFieldMask, 924 1008 false, 925 1009 Field::SFDefaultFlags, 926 1010 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyMinX), 927 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMinX)); 928 929 oType.addInitialDesc(pDesc); 930 1011 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMinX ) ); 1012 1013 oType.addInitialDesc(pDesc); 1014 1015 931 1016 pDesc = new SFInt32::Description( 932 1017 SFInt32::getClassType(), … … 935 1020 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 936 1021 "it does make sense on a cluster, though, that's why it's external.\n", 937 DirtyMaxXFieldId, DirtyMaxXFieldMask, 1022 DirtyMaxXFieldId, 1023 DirtyMaxXFieldMask, 938 1024 false, 939 1025 Field::SFDefaultFlags, 940 1026 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyMaxX), 941 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMaxX)); 942 943 oType.addInitialDesc(pDesc); 944 1027 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMaxX ) ); 1028 1029 oType.addInitialDesc(pDesc); 1030 1031 945 1032 pDesc = new SFInt32::Description( 946 1033 SFInt32::getClassType(), … … 949 1036 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 950 1037 "it does make sense on a cluster, though, that's why it's external.\n", 951 DirtyMinYFieldId, DirtyMinYFieldMask, 1038 DirtyMinYFieldId, 1039 DirtyMinYFieldMask, 952 1040 false, 953 1041 Field::SFDefaultFlags, 954 1042 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyMinY), 955 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMinY)); 956 957 oType.addInitialDesc(pDesc); 958 1043 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMinY ) ); 1044 1045 oType.addInitialDesc(pDesc); 1046 1047 959 1048 pDesc = new SFInt32::Description( 960 1049 SFInt32::getClassType(), … … 963 1052 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 964 1053 "it does make sense on a cluster, though, that's why it's external.\n", 965 DirtyMaxYFieldId, DirtyMaxYFieldMask, 1054 DirtyMaxYFieldId, 1055 DirtyMaxYFieldMask, 966 1056 false, 967 1057 Field::SFDefaultFlags, 968 1058 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyMaxY), 969 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMaxY)); 970 971 oType.addInitialDesc(pDesc); 972 1059 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMaxY ) ); 1060 1061 oType.addInitialDesc(pDesc); 1062 1063 973 1064 pDesc = new SFInt32::Description( 974 1065 SFInt32::getClassType(), … … 977 1068 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 978 1069 "it does make sense on a cluster, though, that's why it's external.\n", 979 DirtyMinZFieldId, DirtyMinZFieldMask, 1070 DirtyMinZFieldId, 1071 DirtyMinZFieldMask, 980 1072 false, 981 1073 Field::SFDefaultFlags, 982 1074 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyMinZ), 983 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMinZ)); 984 985 oType.addInitialDesc(pDesc); 986 1075 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMinZ ) ); 1076 1077 oType.addInitialDesc(pDesc); 1078 1079 987 1080 pDesc = new SFInt32::Description( 988 1081 SFInt32::getClassType(), … … 991 1084 "imageContentChanged(). This doesn't make sense to be stored in files, \n" 992 1085 "it does make sense on a cluster, though, that's why it's external.\n", 993 DirtyMaxZFieldId, DirtyMaxZFieldMask, 1086 DirtyMaxZFieldId, 1087 DirtyMaxZFieldMask, 994 1088 false, 995 1089 Field::SFDefaultFlags, 996 1090 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleDirtyMaxZ), 997 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMaxZ)); 998 999 oType.addInitialDesc(pDesc); 1000 1091 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleDirtyMaxZ ) ); 1092 1093 oType.addInitialDesc(pDesc); 1094 1095 1001 1096 pDesc = new SFReal32::Description( 1002 1097 SFReal32::getClassType(), 1003 1098 "anisotropy", 1004 1099 "Anisotropic filtering the default 1.0f means isotropic filtering.\n", 1005 AnisotropyFieldId, AnisotropyFieldMask, 1100 AnisotropyFieldId, 1101 AnisotropyFieldMask, 1006 1102 false, 1007 1103 Field::SFDefaultFlags, 1008 1104 static_cast<FieldEditMethodSig>(&TextureChunkBase::editHandleAnisotropy), 1009 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleAnisotropy)); 1010 1011 oType.addInitialDesc(pDesc); 1012 1105 static_cast<FieldGetMethodSig >(&TextureChunkBase::getHandleAnisotropy ) ); 1106 1107 oType.addInitialDesc(pDesc); 1108 1109 1013 1110 pDesc = new SFColor4f::Description( 1014 1111 SFColor4f::getClassType(), 1015 1112 "borderColor", 1016 1113 "Texture border color\n", 1017 BorderColorFieldId, BorderColorFieldMask, 1114 BorderColorFieldId, 1115 BorderColorFieldMask, 1018 1116 false, 1019 1117 Field::SFDefaultFlags, 1020 1118
