This utility class is used to hold the information used to generate the matrices and other information required to automatically populate GpuProgramParameters.
More...
|
| AutoParamDataSource () |
|
const ColourValue & | getAmbientLightColour (void) const |
|
const Affine3 * | getBoneMatrixArray (void) const |
|
size_t | getBoneMatrixCount (void) const |
|
const Vector4 & | getCameraPosition (void) const |
|
const Vector4 & | getCameraPositionObjectSpace (void) const |
|
const Vector4 | getCameraRelativePosition (void) const |
|
Real | getCosTime_0_1 (Real x) const |
|
Real | getCosTime_0_2Pi (Real x) const |
|
Real | getCosTime_0_X (Real x) const |
|
const Camera * | getCurrentCamera () const |
| Returns the current bounded camera.
|
|
const Pass * | getCurrentPass (void) const |
|
const Renderable * | getCurrentRenderable (void) const |
|
const RenderTarget * | getCurrentRenderTarget (void) const |
|
ColourValue | getDerivedAmbientLightColour (void) const |
|
ColourValue | getDerivedSceneColour (void) const |
|
float | getFarClipDistance () const |
|
const ColourValue & | getFogColour (void) const |
|
const Vector4f & | getFogParams (void) const |
|
float | getFOV () const |
|
Real | getFPS () const |
|
Real | getFrameTime (void) const |
|
Matrix4 | getInverseProjectionMatrix () const |
|
Vector4f | getInverseTextureSize (size_t index) const |
|
Matrix4 | getInverseTransposeProjectionMatrix () const |
|
Matrix4 | getInverseTransposeViewMatrix () const |
|
Matrix4 | getInverseTransposeViewProjMatrix () const |
|
const Matrix4 & | getInverseTransposeWorldMatrix (void) const |
|
const Matrix4 & | getInverseTransposeWorldViewMatrix (void) const |
|
Matrix4 | getInverseTransposeWorldViewProjMatrix () const |
|
const Affine3 & | getInverseViewMatrix (void) const |
|
Real | getInverseViewportHeight () const |
|
Real | getInverseViewportWidth () const |
|
Matrix4 | getInverseViewProjMatrix (void) const |
|
const Affine3 & | getInverseWorldMatrix (void) const |
|
const Affine3 & | getInverseWorldViewMatrix (void) const |
|
Matrix4 | getInverseWorldViewProjMatrix () const |
|
Vector4 | getLightAs4DVector (size_t index) const |
|
Vector4f | getLightAttenuation (size_t index) const |
|
float | getLightCastsShadows (size_t index) const |
|
float | getLightCount () const |
|
const ColourValue & | getLightDiffuseColour (size_t index) const |
|
const ColourValue | getLightDiffuseColourWithPower (size_t index) const |
|
Vector3 | getLightDirection (size_t index) const |
|
float | getLightNumber (size_t index) const |
| Get the light which is 'index'th closest to the current object.
|
|
Vector3 | getLightPosition (size_t index) const |
|
Real | getLightPowerScale (size_t index) const |
|
const ColourValue & | getLightSpecularColour (size_t index) const |
|
const ColourValue | getLightSpecularColourWithPower (size_t index) const |
|
const Vector4 & | getLodCameraPosition (void) const |
|
const Vector4 & | getLodCameraPositionObjectSpace (void) const |
|
int | getMaterialLodIndex () const |
|
float | getNearClipDistance () const |
|
Vector4f | getPackedTextureSize (size_t index) const |
|
int | getPassNumber (void) const |
|
const Vector4f & | getPointParams () const |
|
const Matrix4 & | getProjectionMatrix (void) const |
|
const Vector4 & | getSceneDepthRange () const |
|
const ColourValue & | getShadowColour () const |
|
Real | getShadowExtrusionDistance (void) const |
|
const Vector4 & | getShadowSceneDepthRange (size_t index) const |
|
Real | getSinTime_0_1 (Real x) const |
|
Real | getSinTime_0_2Pi (Real x) const |
|
Real | getSinTime_0_X (Real x) const |
|
Vector4f | getSpotlightParams (size_t index) const |
|
const Matrix4 & | getSpotlightViewProjMatrix (size_t index) const |
|
const Matrix4 & | getSpotlightWorldViewProjMatrix (size_t index) const |
|
Real | getSurfaceAlphaRejectionValue (void) const |
|
const ColourValue & | getSurfaceAmbientColour (void) const |
|
const ColourValue & | getSurfaceDiffuseColour (void) const |
|
const ColourValue & | getSurfaceEmissiveColour (void) const |
|
Real | getSurfaceShininess (void) const |
|
const ColourValue & | getSurfaceSpecularColour (void) const |
|
Real | getTanTime_0_1 (Real x) const |
|
Real | getTanTime_0_2Pi (Real x) const |
|
Real | getTanTime_0_X (Real x) const |
|
Vector4f | getTextureSize (size_t index) const |
|
const Matrix4 & | getTextureTransformMatrix (size_t index) const |
|
const Matrix4 & | getTextureViewProjMatrix (size_t index) const |
|
const Matrix4 & | getTextureWorldViewProjMatrix (size_t index) const |
|
Real | getTime (void) const |
|
Real | getTime_0_1 (Real x) const |
|
Vector4f | getTime_0_1_packed (Real x) const |
|
Real | getTime_0_2Pi (Real x) const |
|
Vector4f | getTime_0_2Pi_packed (Real x) const |
|
Real | getTime_0_X (Real x) const |
|
Vector4f | getTime_0_X_packed (Real x) const |
|
Matrix4 | getTransposeProjectionMatrix () const |
|
Matrix4 | getTransposeViewMatrix () const |
|
Matrix4 | getTransposeViewProjMatrix () const |
|
Matrix4 | getTransposeWorldMatrix () const |
|
Matrix4 | getTransposeWorldViewMatrix () const |
|
Matrix4 | getTransposeWorldViewProjMatrix () const |
|
Vector3 | getViewDirection () const |
|
const Affine3 & | getViewMatrix (void) const |
|
Real | getViewportHeight () const |
|
Real | getViewportWidth () const |
|
const Matrix4 & | getViewProjectionMatrix (void) const |
|
Vector3 | getViewSideVector () const |
|
Vector3 | getViewUpVector () const |
|
const Affine3 & | getWorldMatrix (void) const |
|
const Affine3 * | getWorldMatrixArray (void) const |
|
size_t | getWorldMatrixCount (void) const |
|
const Affine3 & | getWorldViewMatrix (void) const |
|
const Matrix4 & | getWorldViewProjMatrix (void) const |
|
bool | hasLightList () const |
|
void | incPassNumber (void) |
|
void | setAmbientLightColour (const ColourValue &ambient) |
|
void | setCurrentCamera (const Camera *cam, bool useCameraRelative) |
| Updates the current camera.
|
|
void | setCurrentLightList (const LightList *ll) |
| Sets the light list that should be used, and it's base index from the global list.
|
|
void | setCurrentPass (const Pass *pass) |
| Sets the current pass.
|
|
void | setCurrentRenderable (const Renderable *rend) |
| Updates the current renderable.
|
|
void | setCurrentRenderTarget (const RenderTarget *target) |
| Sets the current render target.
|
|
void | setCurrentSceneManager (const SceneManager *sm) |
| Set the current scene manager for enquiring on demand.
|
|
void | setCurrentViewport (const Viewport *viewport) |
| Sets the current viewport.
|
|
void | setFog (FogMode mode, const ColourValue &colour, Real expDensity, Real linearStart, Real linearEnd) |
|
void | setMainCamBoundsInfo (VisibleObjectsBoundsInfo *info) |
| Sets the main camera's scene bounding information.
|
|
void | setPassNumber (const int passNumber) |
|
void | setPointParameters (bool attenuation, const Vector4f ¶ms) |
|
void | setShadowDirLightExtrusionDistance (Real dist) |
| Sets the shadow extrusion distance to be used for dir lights.
|
|
void | setShadowPointLightExtrusionDistance (Real dist) |
| Sets the shadow extrusion distance to be used for point lights.
|
|
void | setTextureProjector (const Frustum *frust, size_t index) |
| Sets the current texture projector for a index.
|
|
void | setWorldMatrices (const Affine3 *m, size_t count) |
| Sets the world matrices, avoid query from renderable again.
|
|
void | updateLightCustomGpuParameter (const GpuProgramParameters::AutoConstantEntry &constantEntry, GpuProgramParameters *params) const |
|
This utility class is used to hold the information used to generate the matrices and other information required to automatically populate GpuProgramParameters.
This class exercises a lazy-update scheme in order to avoid having to update all the information a GpuProgramParameters class could possibly want all the time. It relies on the SceneManager to update it when the base data has changed, and will calculate concatenated matrices etc only when required, passing back precalculated matrices when they are requested more than once when the underlying information has not altered.