source: GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMEntryPointMapRenderingRun.h @ 2320

Revision 2320, 1.8 KB checked in by szirmay, 18 years ago (diff)
RevLine 
[2189]1#pragma once
2
3//disable inheritance warning caused by multiple inheritance
4#if _WIN32
5#if _MSC_VER
6#pragma warning(disable: 4250)
7#endif
8#endif
9
10#include "OgreRenderingRun.h"
11#include "OgreSharedRuns.h"
12
13
14/**
[2264]15        @brief Entry point map computing run.
16
17        This map is used in the pathmap technique. It stores entry point positions and normals.
18        This texture will be used to determine the amount of incoming light to an entry point. @see OgrePMWeightComputeRenderingRun
[2189]19*/
20class OgrePMEntryPointMapRenderingRun : public OgreRenderingRun                                                                 
21{       
22public:
23
24        /**
25                @brief Constructor.
26
[2264]27                @param name the name of the entry point texture created ny this run
[2189]28        */     
29        OgrePMEntryPointMapRenderingRun(String name);
[2320]30
31        virtual ~OgrePMEntryPointMapRenderingRun(){}
32
[2189]33        /**
[2264]34                @brief returns the name of the entry point texture
[2189]35        */
36        String getEntryPointTextureName(){return name;}
[2264]37        /**
38                @brief returns the name of the cluster length texture.
39
40                This texture stores the size (number of entripoints) of each entry point cluster.
41        */
[2200]42        String getClusterLengthTextureName(){return clusterLengthTexture->getName();}
[2320]43
44        void freeAllResources();
[2189]45       
46protected:
[2264]47
[2189]48        /**
49                @brief the name of the entry point texture that was created by this run
50        */
51        String name;
52        /**
[2264]53                @brief a pointer to the entry point texture that was created by this run
[2189]54        */
55        Texture* entryPointTexture;
[2264]56        /**
57                @brief a pointer to the cluster length texture that was created by this run
58
59                This texture stores the size (number of entripoints) of each entry point cluster.
60        */
[2200]61        Texture* clusterLengthTexture;
[2189]62       
63        //inherited
64        void updateFrame(unsigned long frameNum);       
[2264]65        /**
66                @brief Creates and fills the entry point and the cluster length texture.
67        */
[2189]68        inline void createEntryPointMap();
[2264]69        //inherited
[2189]70        bool needUpdate(unsigned long frameNum )
71        {
72                return true;
73        }
74
75};
Note: See TracBrowser for help on using the repository browser.