Show
Ignore:
Timestamp:
12/12/07 18:00:42 (9 months ago)
Author:
cneumann
Message:

added: generic interface
changed: factory functions return RefPtr?

The unittests don't pass right now, because of the change
to the factory functions, which leads to containers
being immediately destroyed as they are not assigned to
a RefPtr?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Depreciated/State/OSGTextureChunkBase.cpp

    r1020 r1032  
    389389*/ 
    390390 
    391  
     391     
    392392void TextureChunkBase::classDescInserter(TypeObject &oType) 
    393393{ 
    394394    FieldDescriptionBase *pDesc = NULL; 
    395  
    396395 
    397396    pDesc = new SFImageInternalPtr::Description( 
     
    399398        "image", 
    400399        "The texture image.\n", 
    401         ImageFieldId, ImageFieldMask, 
     400        ImageFieldId, 
     401        ImageFieldMask, 
    402402        false, 
    403403        Field::SFDefaultFlags, 
    404404        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         
    409410    pDesc = new SFGLenum::Description( 
    410411        SFGLenum::getClassType(), 
    411412        "internalFormat", 
    412413        "The internal texture format.\n", 
    413         InternalFormatFieldId, InternalFormatFieldMask, 
     414        InternalFormatFieldId, 
     415        InternalFormatFieldMask, 
    414416        false, 
    415417        Field::SFDefaultFlags, 
    416418        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         
    421424    pDesc = new SFGLenum::Description( 
    422425        SFGLenum::getClassType(), 
     
    425428        "external format of image when set to a value not equal to \n" 
    426429        "GL_NONE (which is the default).\n", 
    427         ExternalFormatFieldId, ExternalFormatFieldMask, 
     430        ExternalFormatFieldId, 
     431        ExternalFormatFieldMask, 
    428432        false, 
    429433        Field::SFDefaultFlags, 
    430434        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         
    435440    pDesc = new SFBool::Description( 
    436441        SFBool::getClassType(), 
     
    441446        "This is mainly used for rapidly changing non power of two textures, to\n" 
    442447        "get around the scaling overhead.\n", 
    443         ScaleFieldId, ScaleFieldMask, 
     448        ScaleFieldId, 
     449        ScaleFieldMask, 
    444450        false, 
    445451        Field::SFDefaultFlags, 
    446452        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         
    451458    pDesc = new SFUInt32::Description( 
    452459        SFUInt32::getClassType(), 
     
    455462        "concerning multi-frame images.\n" 
    456463        "@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, 
    458466        false, 
    459467        Field::SFDefaultFlags, 
    460468        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         
    465474    pDesc = new SFGLenum::Description( 
    466475        SFGLenum::getClassType(), 
    467476        "minFilter", 
    468477        "The minimisation filter, default GL_LINEAR_MIPMAP_LINEAR.\n", 
    469         MinFilterFieldId, MinFilterFieldMask, 
     478        MinFilterFieldId, 
     479        MinFilterFieldMask, 
    470480        false, 
    471481        Field::SFDefaultFlags, 
    472482        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         
    477488    pDesc = new SFGLenum::Description( 
    478489        SFGLenum::getClassType(), 
    479490        "magFilter", 
    480491        "The magnification filter, default GL_LINEAR.\n", 
    481         MagFilterFieldId, MagFilterFieldMask, 
     492        MagFilterFieldId, 
     493        MagFilterFieldMask, 
    482494        false, 
    483495        Field::SFDefaultFlags, 
    484496        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         
    489502    pDesc = new SFGLenum::Description( 
    490503        SFGLenum::getClassType(), 
    491504        "wrapS", 
    492505        "Texture coordinate S wrapping, default GL_REPEAT.\n", 
    493         WrapSFieldId, WrapSFieldMask, 
     506        WrapSFieldId, 
     507        WrapSFieldMask, 
    494508        false, 
    495509        Field::SFDefaultFlags, 
    496510        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         
    501516    pDesc = new SFGLenum::Description( 
    502517        SFGLenum::getClassType(), 
    503518        "wrapT", 
    504519        "Texture coordinate T wrapping, default GL_REPEAT.\n", 
    505         WrapTFieldId, WrapTFieldMask, 
     520        WrapTFieldId, 
     521        WrapTFieldMask, 
    506522        false, 
    507523        Field::SFDefaultFlags, 
    508524        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         
    513530    pDesc = new SFGLenum::Description( 
    514531        SFGLenum::getClassType(), 
    515532        "wrapR", 
    516533        "Texture coordinate R wrapping, default GL_REPEAT.\n", 
    517         WrapRFieldId, WrapRFieldMask, 
     534        WrapRFieldId, 
     535        WrapRFieldMask, 
    518536        false, 
    519537        Field::SFDefaultFlags, 
    520538        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         
    525544    pDesc = new SFGLenum::Description( 
    526545        SFGLenum::getClassType(), 
    527546        "envMode", 
    528547        "Texture environment mode, default GL_REPLACE\n", 
    529         EnvModeFieldId, EnvModeFieldMask, 
     548        EnvModeFieldId, 
     549        EnvModeFieldMask, 
    530550        false, 
    531551        Field::SFDefaultFlags, 
    532552        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         
    537558    pDesc = new SFColor4f::Description( 
    538559        SFColor4f::getClassType(), 
    539560        "envColor", 
    540561        "Texture environment color default transparent black.\n", 
    541         EnvColorFieldId, EnvColorFieldMask, 
     562        EnvColorFieldId, 
     563        EnvColorFieldMask, 
    542564        false, 
    543565        Field::SFDefaultFlags, 
    544566        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         
    549572    pDesc = new SFGLenum::Description( 
    550573        SFGLenum::getClassType(), 
    551574        "envCombineRGB", 
    552575        "Texture environment rgb combine mode, default GL_MODULATE\n", 
    553         EnvCombineRGBFieldId, EnvCombineRGBFieldMask, 
     576        EnvCombineRGBFieldId, 
     577        EnvCombineRGBFieldMask, 
    554578        false, 
    555579        Field::SFDefaultFlags, 
    556580        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         
    561586    pDesc = new SFGLenum::Description( 
    562587        SFGLenum::getClassType(), 
    563588        "envCombineAlpha", 
    564589        "Texture environment alpha combine mode, default GL_MODULATE\n", 
    565         EnvCombineAlphaFieldId, EnvCombineAlphaFieldMask, 
     590        EnvCombineAlphaFieldId, 
     591        EnvCombineAlphaFieldMask, 
    566592        false, 
    567593        Field::SFDefaultFlags, 
    568594        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         
    573600    pDesc = new SFReal32::Description( 
    574601        SFReal32::getClassType(), 
    575602        "envScaleRGB", 
    576603        "Texture environment combine rgb scale factor, default 1.f\n", 
    577         EnvScaleRGBFieldId, EnvScaleRGBFieldMask, 
     604        EnvScaleRGBFieldId, 
     605        EnvScaleRGBFieldMask, 
    578606        false, 
    579607        Field::SFDefaultFlags, 
    580608        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         
    585614    pDesc = new SFReal32::Description( 
    586615        SFReal32::getClassType(), 
    587616        "envScaleAlpha", 
    588617        "Texture environment combine alpha scale factor, default 1.f\n", 
    589         EnvScaleAlphaFieldId, EnvScaleAlphaFieldMask, 
     618        EnvScaleAlphaFieldId, 
     619        EnvScaleAlphaFieldMask, 
    590620        false, 
    591621        Field::SFDefaultFlags, 
    592622        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         
    597628    pDesc = new SFGLenum::Description( 
    598629        SFGLenum::getClassType(), 
    599630        "envSource0RGB", 
    600631        "Texture environment combine source 0 rgb, default GL_TEXTURE\n", 
    601         EnvSource0RGBFieldId, EnvSource0RGBFieldMask, 
     632        EnvSource0RGBFieldId, 
     633        EnvSource0RGBFieldMask, 
    602634        false, 
    603635        Field::SFDefaultFlags, 
    604636        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         
    609642    pDesc = new SFGLenum::Description( 
    610643        SFGLenum::getClassType(), 
    611644        "envSource1RGB", 
    612645        "Texture environment combine source 1 rgb, default GL_PREVIOUS_EXT\n", 
    613         EnvSource1RGBFieldId, EnvSource1RGBFieldMask, 
     646        EnvSource1RGBFieldId, 
     647        EnvSource1RGBFieldMask, 
    614648        false, 
    615649        Field::SFDefaultFlags, 
    616650        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         
    621656    pDesc = new SFGLenum::Description( 
    622657        SFGLenum::getClassType(), 
    623658        "envSource2RGB", 
    624659        "Texture environment combine source 2 rgb, default GL_CONSTANT_EXT\n", 
    625         EnvSource2RGBFieldId, EnvSource2RGBFieldMask, 
     660        EnvSource2RGBFieldId, 
     661        EnvSource2RGBFieldMask, 
    626662        false, 
    627663        Field::SFDefaultFlags, 
    628664        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         
    633670    pDesc = new SFGLenum::Description( 
    634671        SFGLenum::getClassType(), 
    635672        "envSource0Alpha", 
    636673        "Texture environment combine source 0 alpha, default GL_TEXTURE\n", 
    637         EnvSource0AlphaFieldId, EnvSource0AlphaFieldMask, 
     674        EnvSource0AlphaFieldId, 
     675        EnvSource0AlphaFieldMask, 
    638676        false, 
    639677        Field::SFDefaultFlags, 
    640678        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         
    645684    pDesc = new SFGLenum::Description( 
    646685        SFGLenum::getClassType(), 
    647686        "envSource1Alpha", 
    648687        "Texture environment combine source 1 alpha, default GL_PREVIOUS_EXT\n", 
    649         EnvSource1AlphaFieldId, EnvSource1AlphaFieldMask, 
     688        EnvSource1AlphaFieldId, 
     689        EnvSource1AlphaFieldMask, 
    650690        false, 
    651691        Field::SFDefaultFlags, 
    652692        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         
    657698    pDesc = new SFGLenum::Description( 
    658699        SFGLenum::getClassType(), 
    659700        "envSource2Alpha", 
    660701        "Texture environment combine source 2 alpha, default GL_CONSTANT_EXT\n", 
    661         EnvSource2AlphaFieldId, EnvSource2AlphaFieldMask, 
     702        EnvSource2AlphaFieldId, 
     703        EnvSource2AlphaFieldMask, 
    662704        false, 
    663705        Field::SFDefaultFlags, 
    664706        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         
    669712    pDesc = new SFGLenum::Description( 
    670713        SFGLenum::getClassType(), 
    671714        "envOperand0RGB", 
    672715        "Texture environment combine operand 0 rgb, default GL_SRC_COLOR\n", 
    673         EnvOperand0RGBFieldId, EnvOperand0RGBFieldMask, 
     716        EnvOperand0RGBFieldId, 
     717        EnvOperand0RGBFieldMask, 
    674718        false, 
    675719        Field::SFDefaultFlags, 
    676720        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         
    681726    pDesc = new SFGLenum::Description( 
    682727        SFGLenum::getClassType(), 
    683728        "envOperand1RGB", 
    684729        "Texture environment combine operand 1 rgb, default GL_SRC_COLOR\n", 
    685         EnvOperand1RGBFieldId, EnvOperand1RGBFieldMask, 
     730        EnvOperand1RGBFieldId, 
     731        EnvOperand1RGBFieldMask, 
    686732        false, 
    687733        Field::SFDefaultFlags, 
    688734        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         
    693740    pDesc = new SFGLenum::Description( 
    694741        SFGLenum::getClassType(), 
    695742        "envOperand2RGB", 
    696743        "Texture environment combine operand 2 rgb, default GL_SRC_ALPHA\n", 
    697         EnvOperand2RGBFieldId, EnvOperand2RGBFieldMask, 
     744        EnvOperand2RGBFieldId, 
     745        EnvOperand2RGBFieldMask, 
    698746        false, 
    699747        Field::SFDefaultFlags, 
    700748        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         
    705754    pDesc = new SFGLenum::Description( 
    706755        SFGLenum::getClassType(), 
    707756        "envOperand0Alpha", 
    708757        "Texture environment combine operand 0 alpha, default GL_SRC_ALPHA\n", 
    709         EnvOperand0AlphaFieldId, EnvOperand0AlphaFieldMask, 
     758        EnvOperand0AlphaFieldId, 
     759        EnvOperand0AlphaFieldMask, 
    710760        false, 
    711761        Field::SFDefaultFlags, 
    712762        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         
    717768    pDesc = new SFGLenum::Description( 
    718769        SFGLenum::getClassType(), 
    719770        "envOperand1Alpha", 
    720771        "Texture environment combine operand 1 alpha, default GL_SRC_ALPHA\n", 
    721         EnvOperand1AlphaFieldId, EnvOperand1AlphaFieldMask, 
     772        EnvOperand1AlphaFieldId, 
     773        EnvOperand1AlphaFieldMask, 
    722774        false, 
    723775        Field::SFDefaultFlags, 
    724776        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         
    729782    pDesc = new SFGLenum::Description( 
    730783        SFGLenum::getClassType(), 
    731784        "envOperand2Alpha", 
    732785        "Texture environment combine operand 2 alpha, default GL_SRC_ALPHA\n", 
    733         EnvOperand2AlphaFieldId, EnvOperand2AlphaFieldMask, 
     786        EnvOperand2AlphaFieldId, 
     787        EnvOperand2AlphaFieldMask, 
    734788        false, 
    735789        Field::SFDefaultFlags, 
    736790        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         
    741796    pDesc = new SFGLenum::Description( 
    742797        SFGLenum::getClassType(), 
    743798        "GLId", 
    744799        "The OpenGL texture id for this texture.\n", 
    745         GLIdFieldId, GLIdFieldMask, 
     800        GLIdFieldId, 
     801        GLIdFieldMask, 
    746802        true, 
    747803        (Field::FClusterLocal), 
    748804        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         
    753810    pDesc = new SFInt32::Description( 
    754811        SFInt32::getClassType(), 
    755812        "IgnoreGLForAspect", 
    756813        "Don't do any GL calls for aspect of given id.\n", 
    757         IgnoreGLForAspectFieldId, IgnoreGLForAspectFieldMask, 
     814        IgnoreGLForAspectFieldId, 
     815        IgnoreGLForAspectFieldMask, 
    758816        true, 
    759817        Field::SFDefaultFlags, 
    760818        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         
    765824    pDesc = new SFBool::Description( 
    766825        SFBool::getClassType(), 
    767826        "pointSprite", 
    768827        "Flag to use this texture for Point Sprites.\n", 
    769         PointSpriteFieldId, PointSpriteFieldMask, 
     828        PointSpriteFieldId, 
     829        PointSpriteFieldMask, 
    770830        false, 
    771831        Field::SFDefaultFlags, 
    772832        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         
    777838    pDesc = new SFReal32::Description( 
    778839        SFReal32::getClassType(), 
    779840        "priority", 
    780841        "Priority of this texture, between 0 and 1, the default is 0.\n", 
    781         PriorityFieldId, PriorityFieldMask, 
     842        PriorityFieldId, 
     843        PriorityFieldMask, 
    782844        false, 
    783845        Field::SFDefaultFlags, 
    784846        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         
    789852    pDesc = new SFGLenum::Description( 
    790853        SFGLenum::getClassType(), 
     
    792855        "Shader operation of this texture unit, default GL_NONE. If unit 0 uses\n" 
    793856        "GL_NONE, shading is switched off.\n", 
    794         ShaderOperationFieldId, ShaderOperationFieldMask, 
     857        ShaderOperationFieldId, 
     858        ShaderOperationFieldMask, 
    795859        false, 
    796860        Field::SFDefaultFlags, 
    797861        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         
    802867    pDesc = new SFGLenum::Description( 
    803868        SFGLenum::getClassType(), 
    804869        "shaderInput", 
    805870        "Input texture unit for this shader's operation.\n", 
    806         ShaderInputFieldId, ShaderInputFieldMask, 
     871        ShaderInputFieldId, 
     872        ShaderInputFieldMask, 
    807873        false, 
    808874        Field::SFDefaultFlags, 
    809875        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         
    814881    pDesc = new MFReal32::Description( 
    815882        MFReal32::getClassType(), 
    816883        "shaderOffsetMatrix", 
    817884        "The 2x2 transformation matrix for offset textures.\n", 
    818         ShaderOffsetMatrixFieldId, ShaderOffsetMatrixFieldMask, 
     885        ShaderOffsetMatrixFieldId, 
     886        ShaderOffsetMatrixFieldMask, 
    819887        false, 
    820888        Field::MFDefaultFlags, 
    821889        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         
    826895    pDesc = new SFReal32::Description( 
    827896        SFReal32::getClassType(), 
    828897        "shaderOffsetScale", 
    829898        "The scaling factor for scaled offset textures.\n", 
    830         ShaderOffsetScaleFieldId, ShaderOffsetScaleFieldMask, 
     899        ShaderOffsetScaleFieldId, 
     900        ShaderOffsetScaleFieldMask, 
    831901        false, 
    832902        Field::SFDefaultFlags, 
    833903        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         
    838909    pDesc = new SFReal32::Description( 
    839910        SFReal32::getClassType(), 
    840911        "shaderOffsetBias", 
    841912        "The bias factor for scaled offset textures.\n", 
    842         ShaderOffsetBiasFieldId, ShaderOffsetBiasFieldMask, 
     913        ShaderOffsetBiasFieldId, 
     914        ShaderOffsetBiasFieldMask, 
    843915        false, 
    844916        Field::SFDefaultFlags, 
    845917        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         
    850923    pDesc = new SFGLenum::Description( 
    851924        SFGLenum::getClassType(), 
    852925        "shaderRGBADotProduct", 
    853926        "The RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV value.\n", 
    854         ShaderRGBADotProductFieldId, ShaderRGBADotProductFieldMask, 
     927        ShaderRGBADotProductFieldId, 
     928        ShaderRGBADotProductFieldMask, 
    855929        false, 
    856930        Field::SFDefaultFlags, 
    857931        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         
    862937    pDesc = new SFUInt8::Description( 
    863938        SFUInt8::getClassType(), 
     
    868943        "the S coordinate, bit 1 (mask 2) for T, bit 2 (mask 4) for R and bit 4 \n" 
    869944        "(mask 8) for Q.\n", 
    870         ShaderCullModesFieldId, ShaderCullModesFieldMask, 
     945        ShaderCullModesFieldId, 
     946        ShaderCullModesFieldMask, 
    871947        false, 
    872948        Field::SFDefaultFlags, 
    873949        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         
    878955    pDesc = new SFVec3f::Description( 
    879956        SFVec3f::getClassType(), 
     
    881958        "The CONST_EYE_NV value, i.e. the constant eye position used by the \n" 
    882959        "DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV shader.\n", 
    883         ShaderConstEyeFieldId, ShaderConstEyeFieldMask, 
     960        ShaderConstEyeFieldId, 
     961        ShaderConstEyeFieldMask, 
    884962        false, 
    885963        Field::SFDefaultFlags, 
    886964        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         
    891970    pDesc = new SFReal32::Description( 
    892971        SFReal32::getClassType(), 
    893972        "lodBias", 
    894973        "Bias of LOD calculation for texture access.\n", 
    895         LodBiasFieldId, LodBiasFieldMask, 
     974        LodBiasFieldId, 
     975        LodBiasFieldMask, 
    896976        false, 
    897977        Field::SFDefaultFlags, 
    898978        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         
    903984    pDesc = new SFInt32::Description( 
    904985        SFInt32::getClassType(), 
     
    907988        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    908989        "it does make sense on a cluster, though, that's why it's external.\n", 
    909         DirtyLeftFieldId, DirtyLeftFieldMask, 
     990        DirtyLeftFieldId, 
     991        DirtyLeftFieldMask, 
    910992        false, 
    911993        Field::SFDefaultFlags, 
    912994        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         
    9171000    pDesc = new SFInt32::Description( 
    9181001        SFInt32::getClassType(), 
     
    9211004        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    9221005        "it does make sense on a cluster, though, that's why it's external.\n", 
    923         DirtyMinXFieldId, DirtyMinXFieldMask, 
     1006        DirtyMinXFieldId, 
     1007        DirtyMinXFieldMask, 
    9241008        false, 
    9251009        Field::SFDefaultFlags, 
    9261010        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         
    9311016    pDesc = new SFInt32::Description( 
    9321017        SFInt32::getClassType(), 
     
    9351020        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    9361021        "it does make sense on a cluster, though, that's why it's external.\n", 
    937         DirtyMaxXFieldId, DirtyMaxXFieldMask, 
     1022        DirtyMaxXFieldId, 
     1023        DirtyMaxXFieldMask, 
    9381024        false, 
    9391025        Field::SFDefaultFlags, 
    9401026        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         
    9451032    pDesc = new SFInt32::Description( 
    9461033        SFInt32::getClassType(), 
     
    9491036        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    9501037        "it does make sense on a cluster, though, that's why it's external.\n", 
    951         DirtyMinYFieldId, DirtyMinYFieldMask, 
     1038        DirtyMinYFieldId, 
     1039        DirtyMinYFieldMask, 
    9521040        false, 
    9531041        Field::SFDefaultFlags, 
    9541042        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         
    9591048    pDesc = new SFInt32::Description( 
    9601049        SFInt32::getClassType(), 
     
    9631052        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    9641053        "it does make sense on a cluster, though, that's why it's external.\n", 
    965         DirtyMaxYFieldId, DirtyMaxYFieldMask, 
     1054        DirtyMaxYFieldId, 
     1055        DirtyMaxYFieldMask, 
    9661056        false, 
    9671057        Field::SFDefaultFlags, 
    9681058        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         
    9731064    pDesc = new SFInt32::Description( 
    9741065        SFInt32::getClassType(), 
     
    9771068        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    9781069        "it does make sense on a cluster, though, that's why it's external.\n", 
    979         DirtyMinZFieldId, DirtyMinZFieldMask, 
     1070        DirtyMinZFieldId, 
     1071        DirtyMinZFieldMask, 
    9801072        false, 
    9811073        Field::SFDefaultFlags, 
    9821074        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         
    9871080    pDesc = new SFInt32::Description( 
    9881081        SFInt32::getClassType(), 
     
    9911084        "imageContentChanged(). This doesn't make sense to be stored in files, \n" 
    9921085        "it does make sense on a cluster, though, that's why it's external.\n", 
    993         DirtyMaxZFieldId, DirtyMaxZFieldMask, 
     1086        DirtyMaxZFieldId, 
     1087        DirtyMaxZFieldMask, 
    9941088        false, 
    9951089        Field::SFDefaultFlags, 
    9961090        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         
    10011096    pDesc = new SFReal32::Description( 
    10021097        SFReal32::getClassType(), 
    10031098        "anisotropy", 
    10041099        "Anisotropic filtering the default 1.0f means isotropic filtering.\n", 
    1005         AnisotropyFieldId, AnisotropyFieldMask, 
     1100        AnisotropyFieldId, 
     1101        AnisotropyFieldMask, 
    10061102        false, 
    10071103        Field::SFDefaultFlags, 
    10081104        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         
    10131110    pDesc = new SFColor4f::Description( 
    10141111        SFColor4f::getClassType(), 
    10151112        "borderColor", 
    10161113        "Texture border color\n", 
    1017         BorderColorFieldId, BorderColorFieldMask, 
     1114        BorderColorFieldId, 
     1115        BorderColorFieldMask, 
    10181116        false, 
    10191117        Field::SFDefaultFlags, 
    10201118