CSS Logo XNACS1Lib Library Documentation
XNACS1Primitive.SetTextureSpriteSheet Method 

Game-Themed Introductory Programming Project   

Defines a texture specified for a primitive to behave like a sprite sheet with the specified number of sprites. The default sprite to be drawn is the top left sprite in the sheet. Example: The texture for a given primitive has 16 sprites in it, arranged in a 4 by 4 pattern. By default, all 16 sprites will be displayed, stretched to fit the primitive. Calling this method allows you to specify the number of sprites in the texture. The texture of the sprite sheet to be used. The number of columns in the sprite sheet (number of sprites in a single row). Number of rows in the sprite sheet. The padding between sprites and on the top and left edge.

public void SetTextureSpriteSheet(
   String SpriteSheetTexture,
   Int32 numColumns,
   Int32 numRows,
   Int32 padding
);

See Also

XNACS1Primitive Class | XNACS1Lib Namespace | UseSpriteSheet | SetTextureSpriteAnimationFrames | UseSpriteSheetAnimation | CurrentSpriteSheetFrameY | CurrentSpriteSheetFrameX