C# Класс Alexandria.Engines.Sciagi.Resources.PictureInstruction

An operation used for drawing a Picture with a PictureRenderer.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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