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

Revision 2264, 1.6 KB checked in by szirmay, 18 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 "PhaseTextureRenderingRun.h"
12#include "OgreSharedRuns.h"
13
14
15/**
16        @brief PhaseTextureRenderingRun used in an OGRE environment.
17*/
18class OgrePhaseTextureRenderingRun : public OgreRenderingRun,
19                                                                        public PhaseTextureRenderingRun
20{       
21public:
22
23        /**
24                @brief Constructor.
25
26                @param name                                     the name of the phase texture to be created
27                @param resolutionX                      the resolution width of the phase texture
28                @param resolutionY                      the resolution height of the phase texture
29                @param materialName                     the name of the material to be used when rendering the phase texture
30        */     
31        OgrePhaseTextureRenderingRun(           String name,
32                                                                                unsigned int resolutionX,
33                                                                                unsigned int resolutionY,
34                                                                                String materialName);
35
36        /**
37                @brief returns the name of thew phase texture created by this run
38        */
39        String getPhaseTextureName(){return name;}
40       
41protected:     
42        /**
43                @brief the name of the material to be used when rendering the depth shadow map
44        */
45        String materialName;
46        /**
47                @brief the name of the phase texture that was created by this run
48        */
49        String name;
50        /**
51                @brief a pointer to the phase texture that was created by this run
52        */
53        Texture* phaseTexture;
54        /**
55                @brief a pointer to the camera that was used while rendering the phase texture
56        */
57        Camera* phaseCamera;
58       
59        //inherited
60        void updateFrame(unsigned long frameNum);
61        /**
62                @brief Creates the phase texture.
63        */
64        inline void createPhaseTexture();
65       
66};
Note: See TracBrowser for help on using the repository browser.