[790] | 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 | /**
|
---|
[2264] | 16 | @brief SceneCameraDepthRenderingRun used in an OGRE environment.
|
---|
[790] | 17 | */
|
---|
| 18 | class OgreSceneCameraDepthRenderingRun : public OgreRenderingRun,
|
---|
| 19 | public SceneCameraDepthRenderingRun
|
---|
| 20 | {
|
---|
| 21 | public:
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | @brief Constructor.
|
---|
| 25 |
|
---|
| 26 | @param sharedRuns a pointer to the OgreSharedRuns this run belongs to
|
---|
[2264] | 27 | @param name the name of the depth texture to be created
|
---|
[790] | 28 | @param playerView pointer to the player's viewport
|
---|
| 29 | */
|
---|
| 30 | OgreSceneCameraDepthRenderingRun(OgreSharedRuns* sharedRuns,
|
---|
| 31 | String name,
|
---|
| 32 | Viewport* playerView);
|
---|
[2320] | 33 |
|
---|
| 34 | virtual ~OgreSceneCameraDepthRenderingRun(){}
|
---|
| 35 |
|
---|
[790] | 36 | /**
|
---|
| 37 | @brief returns the name of the camera depth texture
|
---|
| 38 | */
|
---|
| 39 | String getDepthTextureName(){return name;}
|
---|
| 40 |
|
---|
[2320] | 41 | void freeAllResources();
|
---|
[2379] | 42 |
|
---|
| 43 | bool renderableQueued (Renderable *rend, uint8 groupID, ushort priority, Technique **ppTech);
|
---|
| 44 |
|
---|
[790] | 45 |
|
---|
| 46 | protected:
|
---|
| 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 | };
|
---|