Ogre::RTShader::ProgramProcessor::MergeParameter Class Reference

`#include <OgreShaderProgramProcessor.h>`

## Public Member Functions

| MergeParameter ()
| Class constructor. More...
void | addSourceParameter (ParameterPtr srcParam, int mask)
| Add source parameter to this merged. More...
void | clear ()
| Clear the state of this merge parameter. More...
ParameterPtr | getDestinationParameter (int usage, int index)
| Return the destination parameter. More...
int | getDestinationParameterMask (unsigned int index) const
| Return destination parameter mask by index. More...
ParameterPtr | getSourceParameter (unsigned int index)
| Return source parameter by index. More...
size_t | getSourceParameterCount () const
| Return the source parameter count. More...
int | getSourceParameterMask (unsigned int index) const
| Return source parameter mask by index. More...
int | getUsedFloatCount ()
| Return the number of used floats. More...

## Protected Member Functions

void | createDestinationParameter (int usage, int index)
| Creates the destination parameter by a given class and index. More...

## Protected Attributes

ParameterPtr | mDstParameter
int | mDstParameterMask [4]
ParameterPtr | mSrcParameter [4]
size_t | mSrcParameterCount
int | mSrcParameterMask [4]
int | mUsedFloatCount

## Detailed Description

Definition at line 83 of file OgreShaderProgramProcessor.h.

## Constructor & Destructor Documentation

## MergeParameter()

Ogre::RTShader::ProgramProcessor::MergeParameter::MergeParameter | ( |  | ) |

Class constructor.

## Member Function Documentation

## addSourceParameter()

void Ogre::RTShader::ProgramProcessor::MergeParameter::addSourceParameter | ( | ParameterPtr | srcParam,
|  | int | mask
| ) |  |

Add source parameter to this merged.

## clear()

void Ogre::RTShader::ProgramProcessor::MergeParameter::clear | ( |  | ) |

Clear the state of this merge parameter.

## createDestinationParameter()

void Ogre::RTShader::ProgramProcessor::MergeParameter::createDestinationParameter | ( | int | usage,
|  | int | index
| ) |  |

protected

Creates the destination parameter by a given class and index.

## getDestinationParameter()

ParameterPtr Ogre::RTShader::ProgramProcessor::MergeParameter::getDestinationParameter | ( | int | usage,
|  | int | index
| ) |  |

Return the destination parameter.

## getDestinationParameterMask()

int Ogre::RTShader::ProgramProcessor::MergeParameter::getDestinationParameterMask | ( | unsigned int | index | ) | const

Return destination parameter mask by index.

Definition at line 107 of file OgreShaderProgramProcessor.h.

## getSourceParameter()

ParameterPtr Ogre::RTShader::ProgramProcessor::MergeParameter::getSourceParameter | ( | unsigned int | index | ) |

Return source parameter by index.

Definition at line 101 of file OgreShaderProgramProcessor.h.

## getSourceParameterCount()

size_t Ogre::RTShader::ProgramProcessor::MergeParameter::getSourceParameterCount | ( |  | ) | const

Return the source parameter count.

Definition at line 98 of file OgreShaderProgramProcessor.h.

## getSourceParameterMask()

int Ogre::RTShader::ProgramProcessor::MergeParameter::getSourceParameterMask | ( | unsigned int | index | ) | const

Return source parameter mask by index.

Definition at line 104 of file OgreShaderProgramProcessor.h.

## getUsedFloatCount()

int Ogre::RTShader::ProgramProcessor::MergeParameter::getUsedFloatCount | ( |  | ) |

Return the number of used floats.

## Member Data Documentation

## mDstParameter

ParameterPtr Ogre::RTShader::ProgramProcessor::MergeParameter::mDstParameter

protected

Definition at line 123 of file OgreShaderProgramProcessor.h.

## mDstParameterMask

int Ogre::RTShader::ProgramProcessor::MergeParameter::mDstParameterMask[4]

protected

Definition at line 129 of file OgreShaderProgramProcessor.h.

## mSrcParameter

ParameterPtr Ogre::RTShader::ProgramProcessor::MergeParameter::mSrcParameter[4]

protected

Definition at line 125 of file OgreShaderProgramProcessor.h.

## mSrcParameterCount

size_t Ogre::RTShader::ProgramProcessor::MergeParameter::mSrcParameterCount

protected

Definition at line 131 of file OgreShaderProgramProcessor.h.

## mSrcParameterMask

int Ogre::RTShader::ProgramProcessor::MergeParameter::mSrcParameterMask[4]

protected

Definition at line 127 of file OgreShaderProgramProcessor.h.

## mUsedFloatCount

int Ogre::RTShader::ProgramProcessor::MergeParameter::mUsedFloatCount

protected

Definition at line 133 of file OgreShaderProgramProcessor.h.

The documentation for this class was generated from the following file:

- OgreShaderProgramProcessor.h

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.