source: GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgrePMWeightComputeRenderingRun.h @ 2189

Revision 2189, 1.2 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 ColorCubeMapRenderingRun used in an OGRE environment.
16*/
17class OgrePMWeightComputeRenderingRun : public OgreRenderingRun                                                                 
18{       
19public:
20
21        /**
22                @brief Constructor.
23
24               
25        */     
26        OgrePMWeightComputeRenderingRun(String name, String LightName);
27        /**
28                @brief returns the name of the camera depth texture
29        */
30        String getPMWeightTetureName(){return name;}
31        float* getWeights(){return weights;}
32       
33protected:
34        /**
35                @brief pointer to the player's viewport
36        */
37        Matrix4 lightMatrix;
38        Matrix4 lightViewMatrix;
39        /**
40                @brief the name of the weight texture that was created by this run
41        */
42        String name;
43        /**
44                @brief a pointer to the scene depth texture that was created by this run
45        */
46        Texture* weightTexture;
47       
48        Light* light;
49
50        float* weights;
51
52        //inherited
53        void updateFrame(unsigned long frameNum);       
54       
55        inline void createWeightMap();
56
57        bool needUpdate(unsigned long frameNum )
58        {
59                return true;
60        }
61
62};
Note: See TracBrowser for help on using the repository browser.