All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kzu_animation_util.h File Reference

Animation utilities Utility functions for specifying animations. More...

Namespaces

 kanzi
 

Enumerations

enum  KzuPropertyBinaryDataType { KZU_BINARY_DATA_TYPE_FLOAT, KZU_BINARY_DATA_TYPE_TEXTURE, KZU_BINARY_DATA_TYPE_MATRIX4X4 }
 Binary container type. More...
 
enum  KzuPropertyBinaryTargetAttribute {
  KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_TRANSLATION_X, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_TRANSLATION_Y, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_TRANSLATION_Z, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_SCALE_X,
  KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_SCALE_Y, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_SCALE_Z, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_ROTATION_Z, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_ROTATION_Y,
  KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_ROTATION_X, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_WHOLE_PROPERTY, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_R, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_G,
  KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_B, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_A, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_X, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_Y,
  KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_Z, KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_W
}
 Binary target attribute type. More...
 

Functions

KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateColorAnimation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcColorRGBA *colorStart, const struct KzcColorRGBA *colorEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates target color animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateVector2Animation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcVector2 *positionStart, const struct KzcVector2 *positionEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates vector2 animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateVector3Animation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcVector3 *positionStart, const struct KzcVector3 *positionEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates vector3 animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateFloatAnimation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, kzFloat valueStart, kzFloat valueEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates target float animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateMatrix3x3Animation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcMatrix3x3 *valueStart, const struct KzcMatrix3x3 *valueEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates target matrix3x3 animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateMatrix3x3AnimationSRT (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcVector2 *scaleStart, kzFloat rotateStart, const struct KzcVector2 *translationStart, const struct KzcVector2 *scaleEnd, kzFloat rotateEnd, const struct KzcVector2 *translationEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates target matrix3x3 animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateMatrix4x4Animation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcMatrix4x4 *valueStart, const struct KzcMatrix4x4 *valueEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates target matrix4x4 animation item. More...
 
KANZI_API
kanzi::AnimationClipSharedPtr 
kzuAnimationItemCreateMatrix4x4SRTAnimation (kanzi::Domain *domain, kzString relativePath, const struct KzuPropertyType *propertyType, const struct KzcVector3 *scaleStart, const struct KzcVector3 *rotationStart, const struct KzcVector3 *translationStart, const struct KzcVector3 *scaleEnd, const struct KzcVector3 *rotationEnd, const struct KzcVector3 *translationEnd, kzFloat duration, enum KzuAnimationInterpolation interpolation)
 Creates target matrix4x4 animation item. More...
 
KANZI_API kzsError kzuPropertyBinaryTargetAttributeConvertToBinaryDataType (const struct KzuPropertyType *propertyType, enum KzuPropertyBinaryTargetAttribute targetAttribute, enum KzuPropertyBinaryDataType *out_binaryDataType)
 Find out corresponding binary data type for binary target attribute. More...
 
KANZI_API kzsError kzuPropertyBinaryTargetAttributeConvertToTargetAttribute (const struct KzuPropertyType *propertyType, enum KzuPropertyBinaryTargetAttribute binaryTargetAttribute, kanzi::PropertyField *out_targetAttribute)
 Find out corresponding target attribute for binary target attribute. More...
 

Detailed Description

Animation utilities Utility functions for specifying animations.

Copyright 2008-2020 by Rightware. All rights reserved.

Enumeration Type Documentation

Binary container type.

Enumerator
KZU_BINARY_DATA_TYPE_FLOAT 
KZU_BINARY_DATA_TYPE_TEXTURE 
KZU_BINARY_DATA_TYPE_MATRIX4X4 

Binary target attribute type.

Enumerator
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_TRANSLATION_X 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_TRANSLATION_Y 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_TRANSLATION_Z 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_SCALE_X 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_SCALE_Y 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_SCALE_Z 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_ROTATION_Z 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_ROTATION_Y 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_ROTATION_X 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_WHOLE_PROPERTY 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_R 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_G 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_B 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_COLOR_A 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_X 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_Y 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_Z 
KZU_PROPERTY_BINARY_TARGET_ATTRIBUTE_VECTOR_W 

Function Documentation

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateColorAnimation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcColorRGBA colorStart,
const struct KzcColorRGBA colorEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates target color animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateVector2Animation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcVector2 positionStart,
const struct KzcVector2 positionEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates vector2 animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateVector3Animation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcVector3 positionStart,
const struct KzcVector3 positionEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates vector3 animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateFloatAnimation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
kzFloat  valueStart,
kzFloat  valueEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates target float animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateMatrix3x3Animation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcMatrix3x3 valueStart,
const struct KzcMatrix3x3 valueEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates target matrix3x3 animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateMatrix3x3AnimationSRT ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcVector2 scaleStart,
kzFloat  rotateStart,
const struct KzcVector2 translationStart,
const struct KzcVector2 scaleEnd,
kzFloat  rotateEnd,
const struct KzcVector2 translationEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates target matrix3x3 animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateMatrix4x4Animation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcMatrix4x4 valueStart,
const struct KzcMatrix4x4 valueEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates target matrix4x4 animation item.

KANZI_API kanzi::AnimationClipSharedPtr kzuAnimationItemCreateMatrix4x4SRTAnimation ( kanzi::Domain domain,
kzString  relativePath,
const struct KzuPropertyType propertyType,
const struct KzcVector3 scaleStart,
const struct KzcVector3 rotationStart,
const struct KzcVector3 translationStart,
const struct KzcVector3 scaleEnd,
const struct KzcVector3 rotationEnd,
const struct KzcVector3 translationEnd,
kzFloat  duration,
enum KzuAnimationInterpolation  interpolation 
)

Creates target matrix4x4 animation item.

KANZI_API kzsError kzuPropertyBinaryTargetAttributeConvertToBinaryDataType ( const struct KzuPropertyType propertyType,
enum KzuPropertyBinaryTargetAttribute  targetAttribute,
enum KzuPropertyBinaryDataType out_binaryDataType 
)

Find out corresponding binary data type for binary target attribute.

KANZI_API kzsError kzuPropertyBinaryTargetAttributeConvertToTargetAttribute ( const struct KzuPropertyType propertyType,
enum KzuPropertyBinaryTargetAttribute  binaryTargetAttribute,
kanzi::PropertyField out_targetAttribute 
)

Find out corresponding target attribute for binary target attribute.