C# 클래스 FSO.Files.Formats.IFF.Chunks.SPR2Frame

The frame (I.E sprite) of a SPR2 chunk.
상속: ITextureProvider, IWorldTextureProvider
파일 보기 프로젝트 열기: RHY3756547/FreeSO 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PalData byte[]
PixelData Color[]
ZBufferData byte[]

공개 메소드들

메소드 설명
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 ) : WorldTexture
GetZTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D

Gets a z-texture representing this SPR2Frame.

Read ( uint version, IoBuffer io, uint guessedSize ) : void

Reads a SPR2 chunk from a stream.

ReadDeferred ( uint version, IoBuffer io ) : void
SPR2Frame ( SPR2 parent ) : System
SetData ( Color px, byte zpx, Rectangle rect ) : Color[]
SetPalt ( PALT p ) : void
SetPixel ( int x, int y, Color color ) : void

Gets a pixel from this SPR2Frame.

Write ( IoWriter io ) : void

비공개 메소드들

메소드 설명
Decode ( IoBuffer io ) : void

Decodes this SPR2Frame.

메소드 상세

DecodeIfRequired() 공개 메소드

public DecodeIfRequired ( ) : void
리턴 void

GetPixel() 공개 메소드

Gets a pixel from this SPR2Frame.
public GetPixel ( int x, int y ) : Color
x int X position of pixel.
y int Y position of pixel.
리턴 Color

GetTexture() 공개 메소드

Gets a texture representing this SPR2Frame.
public GetTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D
device GraphicsDevice GraphicsDevice instance used for drawing.
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

GetWorldTexture() 공개 메소드

public GetWorldTexture ( GraphicsDevice device ) : WorldTexture
device GraphicsDevice
리턴 FSO.Files.Utils.WorldTexture

GetZTexture() 공개 메소드

Gets a z-texture representing this SPR2Frame.
public GetZTexture ( GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D
device GraphicsDevice GraphicsDevice instance used for drawing.
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

Read() 공개 메소드

Reads a SPR2 chunk from a stream.
public Read ( uint version, IoBuffer io, uint guessedSize ) : void
version uint Version of the SPR2 that this frame belongs to.
io FSO.Files.Utils.IoBuffer
guessedSize uint
리턴 void

ReadDeferred() 공개 메소드

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

SPR2Frame() 공개 메소드

public SPR2Frame ( SPR2 parent ) : System
parent SPR2
리턴 System

SetData() 공개 메소드

public SetData ( Color px, byte zpx, Rectangle rect ) : Color[]
px Color
zpx byte
rect Microsoft.Xna.Framework.Rectangle
리턴 Color[]

SetPalt() 공개 메소드

public SetPalt ( PALT p ) : void
p PALT
리턴 void

SetPixel() 공개 메소드

Gets a pixel from this SPR2Frame.
public SetPixel ( int x, int y, Color color ) : void
x int X position of pixel.
y int Y position of pixel.
color Color
리턴 void

Write() 공개 메소드

public Write ( IoWriter io ) : void
io FSO.Files.Utils.IoWriter
리턴 void

프로퍼티 상세

PalData 공개적으로 프로퍼티

public byte[] PalData
리턴 byte[]

PixelData 공개적으로 프로퍼티

public Color[] PixelData
리턴 Color[]

ZBufferData 공개적으로 프로퍼티

public byte[] ZBufferData
리턴 byte[]