Ignore:
Timestamp:
03/02/07 19:06:44 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/OgreIlluminationManager.h

    r1711 r2185  
    1717#include "OgreIllumVolumeRenderTechnique.h" 
    1818#include "OgrePhaseTextureRenderingRun.h" 
     19#include "OgrePathMapRenderTechnique.h" 
    1920 
    2021 
    2122using namespace Ogre; 
    2223 
     24struct PathMapClusters 
     25{ 
     26        unsigned int count; 
     27        unsigned int* clusters; 
     28        String pathMapTextureFilename; 
     29        unsigned int pathMapResolution; 
     30}; 
     31 
     32struct PathMapEntryPoint 
     33{ 
     34    Vector3 position; 
     35        Vector3 normal; 
     36}; 
    2337/** 
    2438        @brief Implementation of IlluminationManager in an OGRE environment. 
     
    7791        unsigned int phaseTextureSize; 
    7892        std::map<RenderingRunType,float> maxRads; 
     93        std::map<String, PathMapClusters> pathMapClusters; 
     94        std::vector<PathMapEntryPoint> pathMapEntryPoints; 
     95        std::vector<unsigned int> pathMapClusterLengths; 
    7996        /** 
    8097                @brief The camera attached to the player. 
     
    317334        void setBlurShadowMap(bool use){blurSM = use;} 
    318335        void setShadowMapMaterialName(String name){shadowMapMaterialName = name;} 
     336 
     337        void addPathMapClusters(String subEntityName, PathMapClusters clusters) 
     338        { 
     339                this->pathMapClusters[subEntityName] = clusters; 
     340        } 
     341        PathMapClusters* getPathMapClusters(String subEntityName) 
     342        { 
     343                return &pathMapClusters[subEntityName]; 
     344        } 
     345        void addPathMapEntryPoint(PathMapEntryPoint p) 
     346        { 
     347                this->pathMapEntryPoints.push_back(p); 
     348        } 
     349        void addPathMapClusterLength(unsigned int l) 
     350        { 
     351                this->pathMapClusterLengths.push_back(l); 
     352        } 
    319353}; 
    320354 
Note: See TracChangeset for help on using the changeset viewer.