C# Class Files.IFF.SPR2Frame

Inheritance: IDisposable
Show file Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Properties

Property Type Description
HasZBuffer bool
Texture Microsoft.Xna.Framework.Graphics.Texture2D
TransparentColor Color
Width ushort
XLocation ushort
YLocation ushort
ZBuffer byte[]

Public Methods

Method Description
Dispose ( ) : void
SPR2Frame ( FileReader Reader, GraphicsDevice Device, PALT Palette, uint SpriteVersion ) : System

Protected Methods

Method Description
Dispose ( bool CleanUpManagedResources ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool CleanUpManagedResources ) : void
CleanUpManagedResources bool
return void

SPR2Frame() public method

public SPR2Frame ( FileReader Reader, GraphicsDevice Device, PALT Palette, uint SpriteVersion ) : System
Reader System.IO.FileReader
Device GraphicsDevice
Palette PALT
SpriteVersion uint
return System

Property Details

HasZBuffer public property

public bool HasZBuffer
return bool

Texture public property

public Texture2D,Microsoft.Xna.Framework.Graphics Texture
return Microsoft.Xna.Framework.Graphics.Texture2D

TransparentColor public property

A 2-byte unsigned integer specifying the color index in this sprite's color palette that was used for pixels that are now fully transparent; furthermore, any pixels in the color channel defined with this color that were not given an alpha value must be assigned an opacity of zero and a z-buffer value of 255 (if the z-buffer channel is specified).
public Color TransparentColor
return Color

Width public property

public ushort Width
return ushort

XLocation public property

A 2-byte signed integer specifying the offset to add to the Y direction in order to align this sprite correctly, in the case of multi-tile objects.
public ushort XLocation
return ushort

YLocation public property

A 2-byte signed integer specifying the offset to add to the Y direction in order to align this sprite correctly, in the case of multi-tile objects.
public ushort YLocation
return ushort

ZBuffer public property

public byte[] ZBuffer
return byte[]