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

The frame (I.E sprite) of a SPR chunk.
Inheritance: ITextureProvider
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Свойство Type Description
DEFAULT_PALT PALT
Version uint

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Init ( int width, int height ) : void

Private Methods

Méthode Description
Decode ( IoBuffer io ) : void

Decodes this SPRFrame.

Method Details

DecodeIfRequired() public méthode

public DecodeIfRequired ( ) : void
Résultat void

GetPixel() public méthode

public GetPixel ( int x, int y ) : Color
x int
y int
Résultat Color

GetTexture() public méthode

public GetTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D
device GraphicsDevice
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

Init() protected méthode

protected Init ( int width, int height ) : void
width int
height int
Résultat void

Read() public méthode

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

ReadDeferred() public méthode

public ReadDeferred ( uint version, IoBuffer io ) : void
version uint
io FSO.Files.Utils.IoBuffer
Résultat void

SPRFrame() public méthode

Constructs a new SPRFrame instance.
public SPRFrame ( SPR parent ) : System
parent SPR A SPR parent.
Résultat System

SetPixel() public méthode

public SetPixel ( int x, int y, Color color ) : void
x int
y int
color Color
Résultat void

Property Details

DEFAULT_PALT public_oe static_oe property

public static PALT,FSO.Files.Formats.IFF.Chunks DEFAULT_PALT
Résultat PALT

Version public_oe property

public uint Version
Résultat uint