Pyrogenesis  trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
CAlphaMapCalculator Namespace Reference

Classes

struct  Blend4
 
struct  Blend8
 

Functions

template<class T >
bool MatchBlendShapeFlipped (const T &templateshape, const T &shape, unsigned int &flags)
 
template<class T >
int MatchBlendShape (const T &templateshape, const T &shape, unsigned int &flags)
 
template<class S , class T >
int LookupBlend (int tableSize, const S *table, const T &shape, unsigned int &flags)
 
int Calculate (BlendShape8 shape, unsigned int &flags)
 

Variables

const Blend4 Blends1Neighbour []
 
const Blend4 Blends2Neighbour []
 
const Blend8 Blends2Neighbour8 []
 
const Blend4 Blends3Neighbour []
 
const Blend8 Blends3Neighbour8 []
 
const Blend8 Blends4Neighbour8 []
 
const Blend8 Blends5Neighbour8 []
 
const Blend8 Blends6Neighbour8 []
 
const Blend8 Blends7Neighbour8 []
 

Function Documentation

int CAlphaMapCalculator::Calculate ( BlendShape8  shape,
unsigned int &  flags 
)
template<class S , class T >
int CAlphaMapCalculator::LookupBlend ( int  tableSize,
const S *  table,
const T shape,
unsigned int &  flags 
)
template<class T >
int CAlphaMapCalculator::MatchBlendShape ( const T templateshape,
const T shape,
unsigned int &  flags 
)
template<class T >
bool CAlphaMapCalculator::MatchBlendShapeFlipped ( const T templateshape,
const T shape,
unsigned int &  flags 
)

Variable Documentation

const Blend4 CAlphaMapCalculator::Blends1Neighbour[]
Initial value:
=
{
Blend4(BlendShape4(1,0,0,0), 12)
}
Definition: BlendShapes.h:21
const Blend4 CAlphaMapCalculator::Blends2Neighbour[]
Initial value:
=
{
Blend4(BlendShape4(0,1,1,0), 7),
Blend4(BlendShape4(1,0,1,0), 10)
}
Definition: BlendShapes.h:21
const Blend8 CAlphaMapCalculator::Blends2Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,0,0,0,0,0,0), 12),
Blend8(BlendShape8(1,0,0,0,0,1,0,0), 12),
Blend8(BlendShape8(0,1,0,1,0,0,0,0), 0) ,
Blend8(BlendShape8(0,1,0,0,0,1,0,0), 0)
}
Definition: BlendShapes.h:76
const Blend4 CAlphaMapCalculator::Blends3Neighbour[]
Initial value:
=
{
Blend4(BlendShape4(1,1,1,0), 4)
}
Definition: BlendShapes.h:21
const Blend8 CAlphaMapCalculator::Blends3Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,0,0,1,0,0,0), 10),
Blend8(BlendShape8(1,1,0,0,0,0,0,1), 12),
Blend8(BlendShape8(1,1,1,0,0,0,0,0), 1),
Blend8(BlendShape8(0,1,1,0,1,0,0,0), 7),
Blend8(BlendShape8(0,0,1,0,1,0,1,0), 4),
Blend8(BlendShape8(1,1,0,0,0,1,0,0), 12),
Blend8(BlendShape8(1,1,0,1,0,0,0,0), 12),
Blend8(BlendShape8(0,0,1,0,1,0,0,1), 7),
Blend8(BlendShape8(1,0,0,1,0,1,0,0), 12),
Blend8(BlendShape8(0,1,0,1,0,1,0,0), 0)
}
Definition: BlendShapes.h:76
const Blend8 CAlphaMapCalculator::Blends4Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,0,0,1,0,0,1), 10),
Blend8(BlendShape8(1,1,0,1,1,0,0,0), 10),
Blend8(BlendShape8(1,1,0,0,1,1,0,0), 10),
Blend8(BlendShape8(1,1,0,1,0,0,0,1), 12),
Blend8(BlendShape8(0,1,1,0,1,1,0,0), 7),
Blend8(BlendShape8(1,1,1,1,0,0,0,0), 1),
Blend8(BlendShape8(1,1,1,0,1,0,0,0), 3),
Blend8(BlendShape8(0,0,1,0,1,1,0,1), 7),
Blend8(BlendShape8(1,0,1,0,1,1,0,0), 4),
Blend8(BlendShape8(1,1,1,0,0,1,0,0), 1),
Blend8(BlendShape8(1,1,0,1,0,1,0,0), 12),
Blend8(BlendShape8(0,1,0,1,0,1,0,1), 0)
}
Definition: BlendShapes.h:76
const Blend8 CAlphaMapCalculator::Blends5Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,1,1,1,0,0,0), 2),
Blend8(BlendShape8(1,1,1,1,0,0,0,1), 1),
Blend8(BlendShape8(1,1,1,0,1,0,0,1), 3),
Blend8(BlendShape8(1,1,1,0,1,0,1,0), 11),
Blend8(BlendShape8(1,1,1,0,0,1,0,1), 1),
Blend8(BlendShape8(1,1,0,1,1,1,0,0), 10),
Blend8(BlendShape8(1,1,1,0,1,1,0,0), 3),
Blend8(BlendShape8(1,0,1,0,1,1,0,1), 4),
Blend8(BlendShape8(1,1,0,1,0,1,0,1), 12),
Blend8(BlendShape8(0,1,1,0,1,1,0,1), 7)
}
Definition: BlendShapes.h:76
const Blend8 CAlphaMapCalculator::Blends6Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,1,1,1,1,0,0), 2),
Blend8(BlendShape8(1,1,1,1,1,0,1,0), 8),
Blend8(BlendShape8(1,1,1,1,0,1,0,1), 1),
Blend8(BlendShape8(1,1,1,0,1,1,1,0), 6),
Blend8(BlendShape8(1,1,1,0,1,1,0,1), 3),
Blend8(BlendShape8(1,1,0,1,1,1,0,1), 10)
}
Definition: BlendShapes.h:76
const Blend8 CAlphaMapCalculator::Blends7Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,1,1,1,1,0,1), 2),
Blend8(BlendShape8(1,1,1,1,1,1,1,0), 9)
}
Definition: BlendShapes.h:76