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

Revision 2264, 1.5 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 "SceneCameraDepthRenderingRun.h"
12#include "OgreSharedRuns.h"
13
14
15/**
16        @brief SceneCameraDepthRenderingRun used in an OGRE environment.
17*/
18class OgreSceneCameraDepthRenderingRun : public OgreRenderingRun,
19                                                                        public SceneCameraDepthRenderingRun
20{       
21public:
22
23        /**
24                @brief Constructor.
25
26                @param sharedRuns               a pointer to the OgreSharedRuns this run belongs to
27                @param name                             the name of the depth texture to be created
28                @param playerView               pointer to the player's viewport       
29        */     
30        OgreSceneCameraDepthRenderingRun(OgreSharedRuns* sharedRuns,
31                                                                String name,
32                                                                Viewport* playerView);
33        /**
34                @brief returns the name of the camera depth texture
35        */
36        String getDepthTextureName(){return name;}
37
38       
39protected:
40        /**
41                @brief pointer to the player's viewport
42        */
43        Viewport* playerView;
44        /**
45                @brief pointer to the player's camera   
46        */
47        Camera* playerCamera;
48        /**
49                @brief a pointer to the OgreSharedRuns this run belongs to
50        */
51        OgreSharedRuns* sharedRuns;
52        /**
53                @brief the name of the depth texture that was created by this run
54        */
55        String name;
56        /**
57                @brief a pointer to the scene depth texture that was created by this run
58        */
59        Texture* depthTexture;
60
61        //inherited
62        void updateFrame(unsigned long frameNum);       
63        //inherited
64        inline void createDepthMap();
65
66};
Note: See TracBrowser for help on using the repository browser.