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

Deals with rendering for a Picture.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Canvas PictureCanvas
DitherPalette byte[]
DrawVisual bool
PatternCircles byte[][]
PatternFlags PicturePatternFlags
PatternNumber byte
PatternTextureOffsets byte[]
PatternTextures byte[]
Position Vector2i

공개 메소드들

메소드 설명
DrawCel ( PictureCel cel ) : void

Enable visual and priority layers, set the priority to that specified by the cel, then draw a PictureCel.

DrawFloodfill ( Vector2i at ) : void

Draw a floodfill.

DrawImage ( Vector2i position, Vector2i size, int data, int offset, int pitch, int maskIndex ) : void

Draw an image onto the visual

DrawLineTo ( Vector2i end ) : void

Draw a line from the current position to the end position.

DrawMoveTo ( Vector2i position ) : void

Change the current position.

DrawPatternAt ( Vector2i position ) : void

Draw a pattern.

DrawPixel ( Vector2i at ) : void

Draw a single pixel.

DrawPixel ( int x, int y ) : void

Draw a single pixel.

PictureRenderer ( PictureCanvas canvas ) : System

Initialise the renderer.

Render ( ICollection instructions ) : void

Draw the instructions.

Render ( IEnumerable instructions, int count ) : void

Draw a set of instructions.

메소드 상세

DrawCel() 공개 메소드

Enable visual and priority layers, set the priority to that specified by the cel, then draw a PictureCel.
public DrawCel ( PictureCel cel ) : void
cel PictureCel
리턴 void

DrawFloodfill() 공개 메소드

Draw a floodfill.
public DrawFloodfill ( Vector2i at ) : void
at Vector2i
리턴 void

DrawImage() 공개 메소드

Draw an image onto the visual
public DrawImage ( Vector2i position, Vector2i size, int data, int offset, int pitch, int maskIndex ) : void
position Vector2i
size Vector2i
data int
offset int
pitch int
maskIndex int
리턴 void

DrawLineTo() 공개 메소드

Draw a line from the current position to the end position.
public DrawLineTo ( Vector2i end ) : void
end Vector2i
리턴 void

DrawMoveTo() 공개 메소드

Change the current position.
public DrawMoveTo ( Vector2i position ) : void
position Vector2i
리턴 void

DrawPatternAt() 공개 메소드

Draw a pattern.
public DrawPatternAt ( Vector2i position ) : void
position Vector2i
리턴 void

DrawPixel() 공개 메소드

Draw a single pixel.
public DrawPixel ( Vector2i at ) : void
at Vector2i
리턴 void

DrawPixel() 공개 메소드

Draw a single pixel.
public DrawPixel ( int x, int y ) : void
x int
y int
리턴 void

PictureRenderer() 공개 메소드

Initialise the renderer.
public PictureRenderer ( PictureCanvas canvas ) : System
canvas PictureCanvas
리턴 System

Render() 공개 메소드

Draw the instructions.
public Render ( ICollection instructions ) : void
instructions ICollection
리턴 void

Render() 공개 메소드

Draw a set of instructions.
public Render ( IEnumerable instructions, int count ) : void
instructions IEnumerable
count int
리턴 void

프로퍼티 상세

Canvas 공개적으로 프로퍼티

Get the drawing canvas.
public PictureCanvas,Alexandria.Engines.Sciagi.Resources Canvas
리턴 PictureCanvas

DitherPalette 공개적으로 프로퍼티

Get the dithering palette.
public byte[] DitherPalette
리턴 byte[]

DrawVisual 공개적으로 프로퍼티

Get or set whether to draw to the different rasters.
public bool DrawVisual
리턴 bool

PatternCircles 공개적으로 정적으로 프로퍼티

Contains patterns for circles.
public static byte[][] PatternCircles
리턴 byte[][]

PatternFlags 공개적으로 프로퍼티

Get the drawing pattern flags.
public PicturePatternFlags PatternFlags
리턴 PicturePatternFlags

PatternNumber 공개적으로 프로퍼티

Get the drawing pattern number.
public byte PatternNumber
리턴 byte

PatternTextureOffsets 공개적으로 정적으로 프로퍼티

Contains offsets for texture patterns.
public static byte[] PatternTextureOffsets
리턴 byte[]

PatternTextures 공개적으로 정적으로 프로퍼티

Contains texture patterns.
public static byte[] PatternTextures
리턴 byte[]

Position 공개적으로 프로퍼티

Get the drawing positions.
public Vector2i Position
리턴 Vector2i