C# Class Files.IFF.SPR2Frame

Inheritance: IDisposable
显示文件 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_oe property

public bool HasZBuffer
return bool

Texture public_oe property

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

TransparentColor public_oe 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_oe property

public ushort Width
return ushort

XLocation public_oe 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_oe 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_oe property

public byte[] ZBuffer
return byte[]