【Spine】Spine Runtime for Delphi移植笔记(三…

2018-06-17 18:56:49来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

////////////////////////////////////////////////////////////////////////////////
//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.

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

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:【PHP】文件写入和读取详解

下一篇:[示例] Firemonkey TreeView 父项勾选子项连动