[1425] | 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 "PhaseTextureRenderingRun.h"
|
---|
| 12 | #include "OgreSharedRuns.h"
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | /**
|
---|
| 16 | @brief ColorCubeMapRenderingRun used in an OGRE environment.
|
---|
| 17 | */
|
---|
| 18 | class OgrePhaseTextureRenderingRun : public OgreRenderingRun,
|
---|
| 19 | public PhaseTextureRenderingRun
|
---|
| 20 | {
|
---|
| 21 | public:
|
---|
| 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 map texture to be created
|
---|
| 28 | @param light the light source this depth shadow map belongs to
|
---|
| 29 | @param resolutionX the resolution width of the depth shadow map
|
---|
| 30 | @param resolutionY the resolution height of the depth shadow map
|
---|
| 31 | @param materialName the name of the material to be used when rendering the depth shadow map
|
---|
| 32 | */
|
---|
| 33 | OgrePhaseTextureRenderingRun( String name,
|
---|
| 34 | unsigned int resolutionX,
|
---|
| 35 | unsigned int resolutionY,
|
---|
| 36 | String materialName);
|
---|
| 37 |
|
---|
| 38 | /**
|
---|
| 39 | @brief returns the depth shadow map texture created by this run
|
---|
| 40 | */
|
---|
| 41 | String getPhaseTextureName(){return name;}
|
---|
| 42 |
|
---|
| 43 | protected:
|
---|
| 44 | /**
|
---|
| 45 | @brief the name of the material to be used when rendering the depth shadow map
|
---|
| 46 | */
|
---|
| 47 | String materialName;
|
---|
| 48 | /**
|
---|
| 49 | @brief the name of the phase texture that was created by this run
|
---|
| 50 | */
|
---|
| 51 | String name;
|
---|
| 52 | /**
|
---|
| 53 | @brief a pointer to the phase texture that was created by this run
|
---|
| 54 | */
|
---|
| 55 | Texture* phaseTexture;
|
---|
| 56 | Camera* phaseCamera;
|
---|
| 57 |
|
---|
| 58 | //inherited
|
---|
| 59 | void updateFrame(unsigned long frameNum);
|
---|
| 60 | inline void createPhaseTexture();
|
---|
| 61 |
|
---|
| 62 | };
|
---|