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

Revision 2379, 1.7 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        virtual ~OgreSceneCameraDepthRenderingRun(){}
35
36        /**
37                @brief returns the name of the camera depth texture
38        */
39        String getDepthTextureName(){return name;}
40
41        void freeAllResources();
42
43        bool  renderableQueued (Renderable *rend, uint8 groupID, ushort priority, Technique **ppTech);
44
45       
46protected:
47        /**
48                @brief pointer to the player's viewport
49        */
50        Viewport* playerView;
51        /**
52                @brief pointer to the player's camera   
53        */
54        Camera* playerCamera;
55        /**
56                @brief a pointer to the OgreSharedRuns this run belongs to
57        */
58        OgreSharedRuns* sharedRuns;
59        /**
60                @brief the name of the depth texture that was created by this run
61        */
62        String name;
63        /**
64                @brief a pointer to the scene depth texture that was created by this run
65        */
66        Texture* depthTexture;
67
68        //inherited
69        void updateFrame(unsigned long frameNum);       
70        //inherited
71        inline void createDepthMap();
72
73};
Note: See TracBrowser for help on using the repository browser.