C# 클래스 Alexandria.Engines.Sciagi.Resources.PictureInstruction

An operation used for drawing a Picture with a PictureRenderer.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 메소드들

메소드 설명
PictureInstruction ( PictureExtendedOpcode extendedOpcode ) : System

Initialise the instruction.

PictureInstruction ( PictureOpcode opcode ) : System

Initialise the instruction.

ReadInstruction ( Stream stream, PicturePatternFlags &patternFlags, byte &patternNumber ) : PictureInstruction

Read an instruction from the stream.

Render ( PictureRenderer renderer ) : void

Render the instruction.

보호된 메소드들

메소드 설명
PeekByte ( Stream stream ) : byte

Peek at a byte without reading it.

PeekContinue ( Stream stream ) : bool

Peek at the next byte and return whether it's not an opcode.

ReadAbsoluteCoordinates ( Stream stream ) : Vector2i

Read absolute coordinates from the stream.

ReadAbsoluteCoordinatesList ( Stream stream ) : List

Read a list of absolute coordinates from the stream.

ReadByte ( Stream stream ) : byte

Read a byte from the stream.

ReadMediumRelativeCoordinates ( Stream stream, Vector2i start ) : Vector2i

Read medium relative coordinates from the stream.

ReadPatternNumber ( Stream stream, PicturePatternFlags patternCode, byte &patternNumber ) : byte

Read a pattern number from the stream.

ReadShortRelativeCoordinates ( Stream stream, Vector2i to ) : Vector2i

Read short relative coordinates from the stream.

Skip ( Stream stream, int count = 1 ) : void

Skip a number of bytes in the stream.

메소드 상세

PeekByte() 보호된 정적인 메소드

Peek at a byte without reading it.
protected static PeekByte ( Stream stream ) : byte
stream Stream
리턴 byte

PeekContinue() 보호된 정적인 메소드

Peek at the next byte and return whether it's not an opcode.
protected static PeekContinue ( Stream stream ) : bool
stream Stream
리턴 bool

PictureInstruction() 공개 메소드

Initialise the instruction.
public PictureInstruction ( PictureExtendedOpcode extendedOpcode ) : System
extendedOpcode PictureExtendedOpcode
리턴 System

PictureInstruction() 공개 메소드

Initialise the instruction.
public PictureInstruction ( PictureOpcode opcode ) : System
opcode PictureOpcode
리턴 System

ReadAbsoluteCoordinates() 보호된 정적인 메소드

Read absolute coordinates from the stream.
protected static ReadAbsoluteCoordinates ( Stream stream ) : Vector2i
stream Stream
리턴 Vector2i

ReadAbsoluteCoordinatesList() 보호된 정적인 메소드

Read a list of absolute coordinates from the stream.
protected static ReadAbsoluteCoordinatesList ( Stream stream ) : List
stream Stream
리턴 List

ReadByte() 보호된 정적인 메소드

Read a byte from the stream.
protected static ReadByte ( Stream stream ) : byte
stream Stream
리턴 byte

ReadInstruction() 공개 정적인 메소드

Read an instruction from the stream.
public static ReadInstruction ( Stream stream, PicturePatternFlags &patternFlags, byte &patternNumber ) : PictureInstruction
stream Stream
patternFlags PicturePatternFlags
patternNumber byte
리턴 PictureInstruction

ReadMediumRelativeCoordinates() 보호된 정적인 메소드

Read medium relative coordinates from the stream.
protected static ReadMediumRelativeCoordinates ( Stream stream, Vector2i start ) : Vector2i
stream Stream
start Vector2i
리턴 Vector2i

ReadPatternNumber() 보호된 정적인 메소드

Read a pattern number from the stream.
protected static ReadPatternNumber ( Stream stream, PicturePatternFlags patternCode, byte &patternNumber ) : byte
stream Stream
patternCode PicturePatternFlags
patternNumber byte
리턴 byte

ReadShortRelativeCoordinates() 보호된 정적인 메소드

Read short relative coordinates from the stream.
protected static ReadShortRelativeCoordinates ( Stream stream, Vector2i to ) : Vector2i
stream Stream
to Vector2i
리턴 Vector2i

Render() 공개 추상적인 메소드

Render the instruction.
public abstract Render ( PictureRenderer renderer ) : void
renderer PictureRenderer
리턴 void

Skip() 보호된 정적인 메소드

Skip a number of bytes in the stream.
protected static Skip ( Stream stream, int count = 1 ) : void
stream Stream
count int
리턴 void