Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

renderer
Namespace CAlphaMapCalculator

   in AlphaMapCalculator.h
   in AlphaMapCalculator.cpp

namespace CAlphaMapCalculator

Blend4: structure mapping a blend shape for N,E,S,W to a particular map


Inner Classes, Typedefs, and Enums
struct CAlphaMapCalculator::Blend4
          Blend8: structure mapping a blend shape for N,NE,E,SE,S,SW,W,NW to a particular map
struct CAlphaMapCalculator::Blend8
          Data tables for mapping between shapes and blend maps
 
Field Summary
 const CAlphaMapCalculator::Blend4[] Blends1Neighbour
          
 const CAlphaMapCalculator::Blend4[] Blends2Neighbour
          
 const CAlphaMapCalculator::Blend8[] Blends2Neighbour8
          
 const CAlphaMapCalculator::Blend4[] Blends3Neighbour
          
 const CAlphaMapCalculator::Blend8[] Blends3Neighbour8
          
 const CAlphaMapCalculator::Blend8[] Blends4Neighbour8
          
 const CAlphaMapCalculator::Blend8[] Blends5Neighbour8
          
 const CAlphaMapCalculator::Blend8[] Blends6Neighbour8
          
 const CAlphaMapCalculator::Blend8[] Blends7Neighbour8
          
 
Method Summary
 int Calculate( BlendShape8 shape, unsigned int& flags )
          
 int LookupBlend( int tableSize, const S* table, const T& shape, unsigned int& flags )
          Calculate: return the index of the blend map that fits the given shape, and the set of flip/rotation flags to get the shape correctly oriented
 int MatchBlendShape( const T& templateshape, const T& shape, unsigned int& flags )
          LookupBlend: find and return the blendmap fitting the given shape by iterating through the given data table and testing each shape in flipped and rotated forms until a match is found
 bool MatchBlendShapeFlipped( const T& templateshape, const T& shape, unsigned int& flags )
          MatchBlendShape: try and find a matching blendmap, and the required flip/ rotation flags, to fit the given shape to the template
 

Field Detail

Blends1Neighbour

public const CAlphaMapCalculator::Blend4 Blends1Neighbour[];

Blends2Neighbour

public const CAlphaMapCalculator::Blend4 Blends2Neighbour[];

Blends2Neighbour8

public const CAlphaMapCalculator::Blend8 Blends2Neighbour8[];

Blends3Neighbour

public const CAlphaMapCalculator::Blend4 Blends3Neighbour[];

Blends3Neighbour8

public const CAlphaMapCalculator::Blend8 Blends3Neighbour8[];

Blends4Neighbour8

public const CAlphaMapCalculator::Blend8 Blends4Neighbour8[];

Blends5Neighbour8

public const CAlphaMapCalculator::Blend8 Blends5Neighbour8[];

Blends6Neighbour8

public const CAlphaMapCalculator::Blend8 Blends6Neighbour8[];

Blends7Neighbour8

public const CAlphaMapCalculator::Blend8 Blends7Neighbour8[];


Method Detail

Calculate

public int Calculate( BlendShape8 shape, unsigned int& flags );

LookupBlend

public int LookupBlend( int tableSize, const S* table, const T& shape, unsigned int& flags );
Calculate: return the index of the blend map that fits the given shape, and the set of flip/rotation flags to get the shape correctly oriented

MatchBlendShape

public int MatchBlendShape( const T& templateshape, const T& shape, unsigned int& flags );
LookupBlend: find and return the blendmap fitting the given shape by iterating through the given data table and testing each shape in flipped and rotated forms until a match is found

MatchBlendShapeFlipped

public bool MatchBlendShapeFlipped( const T& templateshape, const T& shape, unsigned int& flags );
MatchBlendShape: try and find a matching blendmap, and the required flip/ rotation flags, to fit the given shape to the template

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD