source: GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/include/RenderingRuns/OgreFocusingMapRenderingRun.h @ 1125

Revision 1125, 1.4 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 "OgreSharedRuns.h"
12
13
14/**
15        @brief ColorCubeMapRenderingRun used in an OGRE environment.
16*/
17class OgreFocusingMapRenderingRun : public OgreRenderingRun                                                                     
18{       
19public:
20
21        /**
22                @brief Constructor.
23
24               
25        */     
26        OgreFocusingMapRenderingRun(String name,
27                                                                Matrix4 lightMatrix,
28                                                                unsigned int focusingMapSize);
29        /**
30                @brief returns the name of the camera depth texture
31        */
32        String getFocusingTextureName(){return name;}
33        void getMinMax(Vector3& min, Vector3& max);
34        void setLightMatrix(Matrix4 &m){this->lightMatrix = m;}
35        void setCameraMatrices(const Matrix4 &view, const Matrix4 &projection);
36       
37protected:
38        /**
39                @brief pointer to the player's viewport
40        */
41        Matrix4 lightMatrix;
42        /**
43                @brief pointer to the player's camera   
44        */
45        Camera* camera;
46       
47        /**
48                @brief the name of the depth texture that was created by this run
49        */
50        String name;
51        /**
52                @brief a pointer to the scene depth texture that was created by this run
53        */
54        Texture* focusingTexture;
55        unsigned int focusingMapSize;
56
57        //inherited
58        void updateFrame(unsigned long frameNum);       
59       
60        inline void createFocusingMap();
61
62        bool needUpdate(unsigned long frameNum )
63        {
64                return true;
65        }
66
67};
Note: See TracBrowser for help on using the repository browser.