【Spine】Spine Runtime for Delphi移植笔记(三) - spine.types

////////////////////////////////////////////////////////////////////////////////
//Generic delphi runtime v3.6 for Spine animation tool                        //
//Runtime port by cjk (hzi1980@163.com)                                       //
////////////////////////////////////////////////////////////////////////////////

unit spine.types;

interface

type
  TPageFormat        = (pfAlpha,
                        pfIntensity,
                        pfLuminanceAlpha,
                        pfRGB565,
                        pfRGBA4444,
                        pfRGB888,
                        pfRGBA8888
                        );

  TPageTextureFilter = (ptfNearest,
                        ptfLinear,
                        ptfMipMap,
                        ptfMipMapNearestNearest,
                        ptfMipMapLinearNearest,
                        ptfMipMapNearestLinear,
                        ptfMipMapLinearLinear
                        );

  TPageTextureWrap   = (ptwMirroredRepeat,
                        ptwClampToEdge,
                        ptwRepeat
                        );

  TAttachmentType    = (atRegion,
                        atBoundingbox,
                        atMesh,
                        atLinkedmesh,
                        atPath,
                        atPoint,
                        atClipping
                        );

  TTransformMode     = (tmNormal = 0,                 // 0000
                        tmOnlyTranslation = 7,        // 0111
                        tmNoRotationOrReflection = 1, // 0001
                        tmNoScale = 2,                // 0010
                        tmNoScaleOrReflection = 6     // 0110
                        );

  TBlendMode         = (bmNormal,
                        bmAdditive,
                        bmMultiply,
                        bmScreen
                        );

  TPositionMode      = (pmFixed,
                        pmPercent
                        );

  TSpacingMode       = (smLength,
                        smFixed,
                        smPercent
                        );

  TRotateMode        = (rmTangent,
                        rmChain,
                        rmChainScale
                        );

  TMixPose           = (mpSetup,
                        mpCurrent,
                        mpCurrentLayered
                        );

  TMixDirection      = (mdIn,
                        mdOut
                        );

  TTimelineType      = (ttRotate = 0,
                        ttTranslate,
                        ttScale,
                        ttShear,
                        ttAttachment,
                        ttColor,
                        ttDeform,
                        ttEvent,
                        ttDrawOrder,
                        ttIkConstraint,
                        ttTransformConstraint,
                        ttPathConstraintPosition,
                        ttPathConstraintSpacing,
                        ttPathConstraintMix,
                        ttTwoColor
                        );

implementation

end.

枚举,因为还没全部移植完,可能还会补充一些。

posted @ 2017-07-29 14:09 水中盗影 阅读(...) 评论(...) 编辑 收藏