C# Class FSO.Files.Formats.IFF.Chunks.SPRFrame

The frame (I.E sprite) of a SPR chunk.
Inheritance: ITextureProvider
显示文件 Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
DEFAULT_PALT PALT
Version uint

Public Methods

Method Description
DecodeIfRequired ( ) : void
GetPixel ( int x, int y ) : Color
GetTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D
Read ( uint version, IoBuffer io, uint guessedSize ) : void

Reads a SPRFrame from a stream.

ReadDeferred ( uint version, IoBuffer io ) : void
SPRFrame ( SPR parent ) : System

Constructs a new SPRFrame instance.

SetPixel ( int x, int y, Color color ) : void

Protected Methods

Method Description
Init ( int width, int height ) : void

Private Methods

Method Description
Decode ( IoBuffer io ) : void

Decodes this SPRFrame.

Method Details

DecodeIfRequired() public method

public DecodeIfRequired ( ) : void
return void

GetPixel() public method

public GetPixel ( int x, int y ) : Color
x int
y int
return Color

GetTexture() public method

public GetTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D
device GraphicsDevice
return Microsoft.Xna.Framework.Graphics.Texture2D

Init() protected method

protected Init ( int width, int height ) : void
width int
height int
return void

Read() public method

Reads a SPRFrame from a stream.
public Read ( uint version, IoBuffer io, uint guessedSize ) : void
version uint
io FSO.Files.Utils.IoBuffer
guessedSize uint
return void

ReadDeferred() public method

public ReadDeferred ( uint version, IoBuffer io ) : void
version uint
io FSO.Files.Utils.IoBuffer
return void

SPRFrame() public method

Constructs a new SPRFrame instance.
public SPRFrame ( SPR parent ) : System
parent SPR A SPR parent.
return System

SetPixel() public method

public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
return void

Property Details

DEFAULT_PALT public_oe static_oe property

public static PALT,FSO.Files.Formats.IFF.Chunks DEFAULT_PALT
return PALT

Version public_oe property

public uint Version
return uint