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

Revision 1103, 1.5 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                @param sharedRuns               a pointer to the OgreSharedRuns this run belongs to
25                @param name                             the name of the scene depth texture to be created
26                @param playerView               pointer to the player's viewport       
27        */     
28        OgreFocusingMapRenderingRun(String name,
29                                                                Viewport* playerView,
30                                                                Matrix4 lightMatrix,
31                                                                unsigned int focusingMapSize);
32        /**
33                @brief returns the name of the camera depth texture
34        */
35        String getFocusingTextureName(){return name;}
36        void getMinMax(Vector3& min, Vector3& max);
37        void setLightMatrix(Matrix4 &m){this->lightMatrix = m;}
38       
39protected:
40        /**
41                @brief pointer to the player's viewport
42        */
43        Viewport* playerView;
44        Matrix4 lightMatrix;
45        /**
46                @brief pointer to the player's camera   
47        */
48        Camera* playerCamera;
49       
50        /**
51                @brief the name of the depth texture that was created by this run
52        */
53        String name;
54        /**
55                @brief a pointer to the scene depth texture that was created by this run
56        */
57        Texture* focusingTexture;
58        unsigned int focusingMapSize;
59
60        //inherited
61        void updateFrame(unsigned long frameNum);       
62       
63        inline void createFocusingMap();
64
65};
Note: See TracBrowser for help on using the repository browser.