Inheritance diagram for ColorCubeMapRenderingRun:
Public Member Functions | |
ColorCubeMapRenderingRun (unsigned long startFrame, unsigned long updateInterval, unsigned int resolution, bool useDistCalc, bool useFaceAngleCalc, float distTolerance, float angleTolerance, bool updateAllFace) | |
Constructor. | |
Protected Member Functions | |
virtual void | createColorCubeMap ()=0 |
Creates a cubemap texture used for the color-cubemap. | |
virtual void | updateCubeFace (int facenum)=0 |
Updates one face of the cubemap. | |
virtual bool | faceNeedsUpdate (int facenum)=0 |
Checks if a cubemap face needs to be updated. | |
virtual void | updateFrame (unsigned long frameNum) |
This function does the actual update in a frame. | |
Protected Attributes | |
bool | updateAllFace |
defines if all cubemap faces should be updated in a frame or only one face per frame | |
unsigned char | currentFace |
the number of the face to be updated | |
unsigned int | resolution |
the resolution of the cubemap texture that was created by this run | |
bool | useDistCalc |
a flag to skip cube face update if object is far away or too small. | |
bool | useFaceAngleCalc |
a flag to skip cube face update the face is neglible. | |
float | distTolerance |
A value used in face skip test. | |
float | angleTolerance |
A value used in face skip test. |
A color cubemap is a cubemap of the colors of the surrounding environment.
|
Constructor.
|
|
Checks if a cubemap face needs to be updated. If the object we are updating the cubemap for is far from the camera, or too small, or the given cubemapface does not have significant effect on the rendering the face can be skipped.
Implemented in OgreColorCubeMapRenderingRun. |
|
Updates one face of the cubemap.
Implemented in OgreColorCubeMapRenderingRun. |
|
This function does the actual update in a frame.
Reimplemented from RenderingRun. |
|
A value used in face skip test. The higher this value gets the more precise, but slower the method will be. |
|
A value used in face skip test. The higher this value gets the more precise, but slower the method will be. |
|
a flag to skip cube face update if object is far away or too small.
|
|
a flag to skip cube face update the face is neglible.
|