Skip to content

Interface: SsTextureOptions ​

Defined in: packages/react-native-spritestudio/src/core/SsTextureRegistry.ts:21

How a cellmap's texture is sampled.

The caller's choice, never the cellmap's. filter is Linear by default (FilterMode.Nearest for crisp pixel art) and the tiles are Clamp. Left to the paint's default, drawVertices samples nearest-neighbour and every scaled or rotated sprite comes out jaggy.

Properties ​

filter? ​

optional filter?: FilterMode

Defined in: packages/react-native-spritestudio/src/core/SsTextureRegistry.ts:22


tileX? ​

optional tileX?: TileMode

Defined in: packages/react-native-spritestudio/src/core/SsTextureRegistry.ts:23


tileY? ​

optional tileY?: TileMode

Defined in: packages/react-native-spritestudio/src/core/SsTextureRegistry.ts:24