C# Class Alexandria.Engines.Sciagi.Resources.PictureInstruction

An operation used for drawing a Picture with a PictureRenderer.
Afficher le fichier Open project: Burton-Radons/Alexandria Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Method Details

PeekByte() protected static méthode

Peek at a byte without reading it.
protected static PeekByte ( Stream stream ) : byte
stream Stream
Résultat byte

PeekContinue() protected static méthode

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

PictureInstruction() public méthode

Initialise the instruction.
public PictureInstruction ( PictureExtendedOpcode extendedOpcode ) : System
extendedOpcode PictureExtendedOpcode
Résultat System

PictureInstruction() public méthode

Initialise the instruction.
public PictureInstruction ( PictureOpcode opcode ) : System
opcode PictureOpcode
Résultat System

ReadAbsoluteCoordinates() protected static méthode

Read absolute coordinates from the stream.
protected static ReadAbsoluteCoordinates ( Stream stream ) : Vector2i
stream Stream
Résultat Vector2i

ReadAbsoluteCoordinatesList() protected static méthode

Read a list of absolute coordinates from the stream.
protected static ReadAbsoluteCoordinatesList ( Stream stream ) : List
stream Stream
Résultat List

ReadByte() protected static méthode

Read a byte from the stream.
protected static ReadByte ( Stream stream ) : byte
stream Stream
Résultat byte

ReadInstruction() public static méthode

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

ReadMediumRelativeCoordinates() protected static méthode

Read medium relative coordinates from the stream.
protected static ReadMediumRelativeCoordinates ( Stream stream, Vector2i start ) : Vector2i
stream Stream
start Vector2i
Résultat Vector2i

ReadPatternNumber() protected static méthode

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

ReadShortRelativeCoordinates() protected static méthode

Read short relative coordinates from the stream.
protected static ReadShortRelativeCoordinates ( Stream stream, Vector2i to ) : Vector2i
stream Stream
to Vector2i
Résultat Vector2i

Render() public abstract méthode

Render the instruction.
public abstract Render ( PictureRenderer renderer ) : void
renderer PictureRenderer
Résultat void

Skip() protected static méthode

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