设为首页 加入收藏

TOP

【Spine】Spine Runtime for Delphi移植笔记(三) - spine.types
2017-10-10 12:04:54 】 浏览:1354
Tags: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.

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

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇【Spine】Spine Runtime for Delp.. 下一篇【Spine】Spine Runtime for Delp..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目