XNACS1Lib: CSS490 Spring 2011
Assembly: XNACS1Lib (in XNACS1Lib.dll) Version: 1.0.0.0
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.
Namespace: XNACS1LibAssembly: XNACS1Lib (in XNACS1Lib.dll) Version: 1.0.0.0
Syntax
C# |
---|
public void SetTextureSpriteSheet( string SpriteSheetTexture, int numColumns, int numRows, int padding ) |
Parameters
- SpriteSheetTexture
- Type: System..::..String
[Missing <param name="SpriteSheetTexture"/> documentation for "M:XNACS1Lib.XNACS1Primitive.SetTextureSpriteSheet(System.String,System.Int32,System.Int32,System.Int32)"]
- numColumns
- Type: System..::..Int32
[Missing <param name="numColumns"/> documentation for "M:XNACS1Lib.XNACS1Primitive.SetTextureSpriteSheet(System.String,System.Int32,System.Int32,System.Int32)"]
- numRows
- Type: System..::..Int32
[Missing <param name="numRows"/> documentation for "M:XNACS1Lib.XNACS1Primitive.SetTextureSpriteSheet(System.String,System.Int32,System.Int32,System.Int32)"]
- padding
- Type: System..::..Int32
[Missing <param name="padding"/> documentation for "M:XNACS1Lib.XNACS1Primitive.SetTextureSpriteSheet(System.String,System.Int32,System.Int32,System.Int32)"]