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

Revision 2264, 1.8 KB checked in by szirmay, 17 years ago (diff)
Line 
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/**
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
19*/
20class OgrePMEntryPointMapRenderingRun : public OgreRenderingRun                                                                 
21{       
22public:
23
24        /**
25                @brief Constructor.
26
27                @param name the name of the entry point texture created ny this run
28        */     
29        OgrePMEntryPointMapRenderingRun(String name);
30        /**
31                @brief returns the name of the entry point texture
32        */
33        String getEntryPointTextureName(){return name;}
34        /**
35                @brief returns the name of the cluster length texture.
36
37                This texture stores the size (number of entripoints) of each entry point cluster.
38        */
39        String getClusterLengthTextureName(){return clusterLengthTexture->getName();}
40       
41protected:
42
43        /**
44                @brief the name of the entry point texture that was created by this run
45        */
46        String name;
47        /**
48                @brief a pointer to the entry point texture that was created by this run
49        */
50        Texture* entryPointTexture;
51        /**
52                @brief a pointer to the cluster length texture that was created by this run
53
54                This texture stores the size (number of entripoints) of each entry point cluster.
55        */
56        Texture* clusterLengthTexture;
57       
58        //inherited
59        void updateFrame(unsigned long frameNum);       
60        /**
61                @brief Creates and fills the entry point and the cluster length texture.
62        */
63        inline void createEntryPointMap();
64        //inherited
65        bool needUpdate(unsigned long frameNum )
66        {
67                return true;
68        }
69
70};
Note: See TracBrowser for help on using the repository browser.