MaterialSetTransparency Class Reference

Action to change this instance transparency. More...

Inheritance diagram for MaterialSetTransparency:
IMaterialPassAction

Public Member Functions

 MaterialSetTransparency (const OpenViBE::Kernel::IKernelContext &rKernelContext, Ogre::Real transparency)
 The contructor stores the argument.
 
virtual ~MaterialSetTransparency ()
 Destructor.
 
- Public Member Functions inherited from IMaterialPassAction
 IMaterialPassAction (const OpenViBE::Kernel::IKernelContext &rKernelContext)
 The contructor.
 
virtual ~IMaterialPassAction ()
 Destructor.
 

Protected Attributes

Ogre::Real _transparency
 The argument. It is given to the function.
 

Additional Inherited Members

- Protected Member Functions inherited from IMaterialPassAction
virtual void subEntityAction (SubEntityMaterial *subEntity) const
 The action calls each pass of each technique.
 

Detailed Description

Action to change this instance transparency.

Parameters
transparencyThe new transparency. Values will be clamped to [0.0f..1.0f].
Note
This changes transparency. A value of 0 means full opacity, while 1 means full transparency (invisible)
If transparency equals 0, it will use the original material instead of the copy (the copy is mandatory transparent, and thus might be slower than the original).