Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Ogre::LayerBlendModeEx Class Reference

Class which manages blending of both colour and alpha components. More...

#include <OgreBlendMode.h>

List of all members.

Public Methods

bool operator== (const LayerBlendModeEx &rhs) const
bool operator!= (const LayerBlendModeEx &rhs) const

Public Attributes

LayerBlendType blendType
 The type of blending (colour or alpha). More...

LayerBlendOperationEx operation
 The operation to be applied. More...

LayerBlendSource source1
 The first source of colour/alpha. More...

LayerBlendSource source2
 The second source of colour/alpha. More...

ColourValue colourArg1
 Manual colour value for manual source1. More...

ColourValue colourArg2
 Manual colour value for manual source2. More...

Real alphaArg1
 Manual alpha value for manual source1. More...

Real alphaArg2
 Manual colour value for manual source1. More...

Real factor
 Manual blending factor. More...


Detailed Description

Class which manages blending of both colour and alpha components.

Remarks:
This class is a utility class used by both Material::TextureLayer and RenderSystem to wrap up the details of a blending operation. This blending operation could be used for blending colour or alpha in a texture layer. This class is really only for use by OGRE, since apps can deal with blending modes through the Material::TextureLayer class methods setColourOperation and setAlphaOperation.

It's worth noting that these operations are for blending between texture layers and not between rendered objects and the existing scene. If you wish to make an object blend with others in the scene, e.g. to make transparent objects etc, use the Material::setSceneBlending method.


Member Function Documentation

bool Ogre::LayerBlendModeEx::operator!= const LayerBlendModeEx &    rhs const [inline]
 

bool Ogre::LayerBlendModeEx::operator== const LayerBlendModeEx &    rhs const [inline]
 


Member Data Documentation

Real Ogre::LayerBlendModeEx::alphaArg1
 

Manual alpha value for manual source1.

Real Ogre::LayerBlendModeEx::alphaArg2
 

Manual colour value for manual source1.

LayerBlendType Ogre::LayerBlendModeEx::blendType
 

The type of blending (colour or alpha).

ColourValue Ogre::LayerBlendModeEx::colourArg1
 

Manual colour value for manual source1.

ColourValue Ogre::LayerBlendModeEx::colourArg2
 

Manual colour value for manual source2.

Real Ogre::LayerBlendModeEx::factor
 

Manual blending factor.

LayerBlendOperationEx Ogre::LayerBlendModeEx::operation
 

The operation to be applied.

LayerBlendSource Ogre::LayerBlendModeEx::source1
 

The first source of colour/alpha.

LayerBlendSource Ogre::LayerBlendModeEx::source2
 

The second source of colour/alpha.

Copyright © 2002 by The OGRE Team