Property | Type | Description | |
---|---|---|---|
PalData | byte[] | ||
PixelData | Color[] | ||
ZBufferData | byte[] |
Method | Description | |
---|---|---|
DecodeIfRequired ( ) : void | ||
GetPixel ( int x, int y ) : Color |
Gets a pixel from this SPR2Frame.
|
|
GetTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Gets a texture representing this SPR2Frame.
|
|
GetWorldTexture ( GraphicsDevice device ) : |
||
GetZTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Gets a z-texture representing this SPR2Frame.
|
|
Read ( uint version, |
Reads a SPR2 chunk from a stream.
|
|
ReadDeferred ( uint version, |
||
SPR2Frame ( |
||
SetData ( Color px, byte zpx, |
||
SetPalt ( |
||
SetPixel ( int x, int y, Color color ) : void |
Gets a pixel from this SPR2Frame.
|
|
Write ( |
Method | Description | |
---|---|---|
Decode ( |
Decodes this SPR2Frame.
|
public GetPixel ( int x, int y ) : Color | ||
x | int | X position of pixel. |
y | int | Y position of pixel. |
return | Color |
public GetTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
device | GraphicsDevice | GraphicsDevice instance used for drawing. |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public GetWorldTexture ( GraphicsDevice device ) : |
||
device | GraphicsDevice | |
return |
public GetZTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
device | GraphicsDevice | GraphicsDevice instance used for drawing. |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public Read ( uint version, |
||
version | uint | Version of the SPR2 that this frame belongs to. |
io | ||
guessedSize | uint | |
return | void |
public ReadDeferred ( uint version, |
||
version | uint | |
io | ||
return | void |
public SetData ( Color px, byte zpx, |
||
px | Color | |
zpx | byte | |
rect | ||
return | Color[] |
public SetPixel ( int x, int y, Color color ) : void | ||
x | int | X position of pixel. |
y | int | Y position of pixel. |
color | Color | |
return | void |