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

Revision 2200, 1.1 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 weightTexture->getName();}
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        Texture* allWeightsTexture;
48       
49        Light* light;
50
51        float* weights;
52
53        //inherited
54        void updateFrame(unsigned long frameNum);       
55       
56        inline void createWeightMap();
57};
Note: See TracBrowser for help on using the repository browser.