Click or drag to resize
SpriteSheet Class
Spritesheet define animation steps of a spritesheet texture. For example, if you have a spritesheet that describe 4 steps of a walking animation, this object define the steps of the spritesheet and its texture coords.
Inheritance Hierarchy
SystemObject
  GeonBit.Core.GraphicsSpriteSheet

Namespace:  GeonBit.Core.Graphics
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class SpriteSheet

The SpriteSheet type exposes the following members.

Constructors
  NameDescription
Public methodSpriteSheet
Create spritesheet without any steps (you need to add via AddStep).
Public methodSpriteSheet(Point)
Create spritesheet from constant steps count.
Top
Methods
  NameDescription
Public methodAddStep
Define a step in the spritesheet.
Public methodAssignNameToStep
Attach a string identifier to a spritesheet step.
Public methodBuildForConstStepSize
Build the entire spritesheet from a constant step size. Note: this only works for spritesheet with constant sprite size, eg all steps are at the same size.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetStep(Int32)
Get spritesheet step by index.
Public methodGetStep(String)
Get spritesheet step by string identifier (if set).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also