source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/precompiled/include/OgreIllumModule/RenderingRuns/OgrePhaseTextureRenderingRun.h @ 3255

Revision 3255, 1.7 KB checked in by szirmay, 15 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 __declspec( dllexport ) 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        virtual ~OgrePhaseTextureRenderingRun(){}
37
38        /**
39                @brief returns the name of thew phase texture created by this run
40        */
41        String getPhaseTextureName(){return name;}
42
43        void freeAllResources();
44       
45protected:     
46        /**
47                @brief the name of the material to be used when rendering the depth shadow map
48        */
49        String materialName;
50        /**
51                @brief the name of the phase texture that was created by this run
52        */
53        String name;
54        /**
55                @brief a pointer to the phase texture that was created by this run
56        */
57        Texture* phaseTexture;
58        /**
59                @brief a pointer to the camera that was used while rendering the phase texture
60        */
61        Camera* phaseCamera;
62       
63        //inherited
64        void updateFrame(unsigned long frameNum);
65        /**
66                @brief Creates the phase texture.
67        */
68        inline void createPhaseTexture();
69       
70};
Note: See TracBrowser for help on using the repository browser.