# GeomVertexAnimationSpec

from pandac.PandaModules import GeomVertexAnimationSpec

Class : GeomVertexAnimationSpec
Description : This object describes how the vertex animation, if any, represented in a GeomVertexData is encoded.
Vertex animation includes soft-skinned skeleton animation and morphs (blend shapes), and might be performed on the CPU by Panda, or passed down to the graphics backed to be performed on the hardware (depending on the hardware's advertised capabilities).
Changing this setting doesn't by itself change the way the animation is actually performed; this just specifies how the vertices are set up to be animated.

## Inheritance:

GeomVertexAnimationSpec: GeomEnums
GeomEnums:

## Methods of GeomVertexAnimationSpec:

getAnimationType
getIndexedTransforms
getNumTransforms
operator =
output
setHardware
setNone
setPanda

## Constants in GeomEnums:

UHClient | (UsageHint)
UHStream | (UsageHint)
UHDynamic | (UsageHint)
UHStatic | (UsageHint)
UHUnspecified | (UsageHint)
GRIndexedPoint | (GeomRendering)
GRIndexedOther | (GeomRendering)
GRIndexedBits | (GeomRendering)
GRPoint | (GeomRendering)
GRPointUniformSize | (GeomRendering)
GRPerPointSize | (GeomRendering)
GRPointPerspective | (GeomRendering)
GRPointAspectRatio | (GeomRendering)
GRPointScale | (GeomRendering)
GRPointRotate | (GeomRendering)
GRPointSprite | (GeomRendering)
GRPointSpriteTexMatrix | (GeomRendering)
GRPointBits | (GeomRendering)
GRTriangleStrip | (GeomRendering)
GRTriangleFan | (GeomRendering)
GRLineStrip | (GeomRendering)
GRCompositeBits | (GeomRendering)
GRFlatFirstVertex | (GeomRendering)
GRFlatLastVertex | (GeomRendering)
GRShadeModelBits | (GeomRendering)
GRTexcoordLightVector | (GeomRendering)
SMUniform | (ShadeModel)
SMSmooth | (ShadeModel)
SMFlatFirstVertex | (ShadeModel)
SMFlatLastVertex | (ShadeModel)
PTNone | (PrimitiveType)
PTPolygons | (PrimitiveType)
PTLines | (PrimitiveType)
PTPoints | (PrimitiveType)
NTUint8 | (NumericType)
NTUint16 | (NumericType)
NTUint32 | (NumericType)
NTPackedDcba | (NumericType)
NTPackedDabc | (NumericType)
NTFloat32 | (NumericType)
COther | (Contents)
CPoint | (Contents)
CClipPoint | (Contents)
CVector | (Contents)
CTexcoord | (Contents)
CColor | (Contents)
CIndex | (Contents)
CMorphDelta | (Contents)
ATNone | (AnimationType)
ATPanda | (AnimationType)
ATHardware | (AnimationType)

getAnimationType GeomEnums::AnimationType GeomVertexAnimationSpec::get_animation_type(void) const; Description: Returns the type of animation represented by this spec.

getIndexedTransforms bool GeomVertexAnimationSpec::get_indexed_transforms(void) const; Description: This is only meaningful for animation_type AT_hardware. If true, it indicates that the format uses indexed animation tables. It is false if each vertex will reference the first _num_transforms table entries only.

getNumTransforms int GeomVertexAnimationSpec::get_num_transforms(void) const; Description: This is only meaningful for animation_type AT_hardware. It specifies the maximum number of transforms that might be simultaneously applied to any one vertex by the data in this format.

operator = void GeomVertexAnimationSpec::operator =(GeomVertexAnimationSpec const &other); Description:

output void GeomVertexAnimationSpec::output(ostream &out) const; Description:

setHardware void GeomVertexAnimationSpec::set_hardware(int num_transforms, bool indexed_transforms); Description: Specifies that vertex animation is to be performed by the graphics hardware (or at least by the graphics backend API, which is actually still free to animate the vertices on the CPU). This is only legal if the graphics hardware can support the specified limits on number of transforms and/or indexed transforms. Also, no current graphics API's support morphing.

setNone void GeomVertexAnimationSpec::set_none(void); Description: Specifies that no vertex animation is represented by this spec.

setPanda void GeomVertexAnimationSpec::set_panda(void); Description: Specifies that vertex animation is to be performed by Panda. This is the most general setting and can handle any kind of vertex animation represented.