Ignore:
Timestamp:
11/08/06 14:04:22 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCubeMapRenderTechnique.cpp

    r1722 r1725  
    1616                                                                                                                String selfMaterial, 
    1717                                                                                                                String environmentMaterial, 
     18                                                                                                                int layer, 
    1819                                                                                                                Pass* pass, 
    1920                                                                                                                OgreRenderable* parentRenderable, 
     
    2122                                                                                                                bool createCubeRun) 
    2223                                                        :OgreRenderTechnique( pass, parentRenderable, parentTechniqueGroup), 
    23                                                         CubeMapRenderTechnique(startFrame, cubeMapUpdateInterval, cubeMapResolution, useDistCalc, useFaceAngleCalc, distTolerance, angleTolerance, updateAllFace, renderSelf, renderEnvironment, parentRenderable, parentTechniqueGroup), 
     24                                                        CubeMapRenderTechnique(startFrame, cubeMapUpdateInterval, cubeMapResolution, useDistCalc, useFaceAngleCalc, distTolerance, angleTolerance, updateAllFace, renderSelf, renderEnvironment, layer, parentRenderable, parentTechniqueGroup), 
    2425                                                        RenderTechnique(parentRenderable, parentTechniqueGroup)  
    2526{        
     
    6768                                                                                                renderEnvironment, 
    6869                                                                                                selfMaterial, 
    69                                                                                                 environmentMaterial); 
     70                                                                                                environmentMaterial, 
     71                                                                                                cubemapLayer); 
    7072} 
    7173 
     
    167169                f->environmentMaterial =  params; 
    168170        } 
     171        void parseLayer(String& params, RenderTechniqueFactory* factory) 
     172        { 
     173                OgreCubeMapRenderTechniqueFactory* f = (OgreCubeMapRenderTechniqueFactory*) factory; 
     174                f->layer =  StringConverter::parseInt(params); 
     175        } 
     176 
    169177} 
    170178///Technique factory 
    171179OgreCubeMapRenderTechniqueFactory::OgreCubeMapRenderTechniqueFactory() 
    172180{ 
    173          
     181        typeName = "CubeMap"; 
     182 
    174183        using namespace CubemapParsers; 
    175184 
     
    186195        this->attributeParsers.insert(AttribParserList::value_type("self_material", (ILLUM_ATTRIBUTE_PARSER) parseSelfMaterial)); 
    187196        this->attributeParsers.insert(AttribParserList::value_type("env_material", (ILLUM_ATTRIBUTE_PARSER) parseEnvMaterial)); 
     197        this->attributeParsers.insert(AttribParserList::value_type("layer", (ILLUM_ATTRIBUTE_PARSER) parseLayer)); 
    188198 
    189199} 
     
    204214        selfMaterial = ""; 
    205215        environmentMaterial = ""; 
     216        layer = 0; 
    206217} 
    207218 
     
    229240                                                                                                selfMaterial, 
    230241                                                                                                environmentMaterial, 
     242                                                                                                layer, 
    231243                                                                                                pass, 
    232244                                                                                                parentRenderable, 
Note: See TracChangeset for help on using the changeset viewer.