C# Class GraphicsEngine.Graphics.Rasterizer

Inheritance: IRasterizer
Show file Open project: ckarcz/GraphicsEngine

Public Properties

Property Type Description
Colors ushort[]
HorizontalWireFrameChar byte
UpLeftWireFrameChar byte
UpRightWireFrameChar byte
VerticleWireFrameChar byte

Public Methods

Method Description
ClearImage ( byte clearCharacter = null, byte clearColor = null ) : void
DrawAxes ( ITransformation transformation, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawLine ( ITransformation transformation, Vector2 point1, Vector2 point2, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawLine ( ITransformation transformation, Vector3 point1, Vector3 point2, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshBoundingBox ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshBoundingBox ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshCenters ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshCenters ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshFilled ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshFilled ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshVertices ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshVertices ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshWired ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawMeshWired ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPoint ( ITransformation transformation, Vector2 point, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPoint ( ITransformation transformation, Vector3 point, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPoints ( ITransformation transformation, IEnumerable points, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPoints ( ITransformation transformation, IEnumerable points, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPolygonFilled ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPolygonFilled ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPolygonWired ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawPolygonWired ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
DrawStringHorizontal ( ITransformation transformation, Vector2 location, string messageString, ushort colorOverride = null ) : void
DrawStringVertical ( ITransformation transformation, Vector2 location, string messageString, ushort colorOverride = null ) : void
GetPixelCharacter ( int x, int y ) : byte?
GetPixelColor ( int x, int y ) : ushort?
Rasterize ( ) : IGraphicsBuffer
Rasterizer ( int width, int height ) : System.Collections.Generic

Private Methods

Method Description
GetPolygonEdges ( IEnumerable vectors ) : IEnumerable
GetPolygonEdges ( IEnumerable vectors ) : IEnumerable
IsNotCulled ( int x, int y, float z, bool ignoreZ = false ) : bool

Method Details

ClearImage() public method

public ClearImage ( byte clearCharacter = null, byte clearColor = null ) : void
clearCharacter byte
clearColor byte
return void

DrawAxes() public method

public DrawAxes ( ITransformation transformation, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
colorOverride ushort
pixelOverride byte
return void

DrawLine() public method

public DrawLine ( ITransformation transformation, Vector2 point1, Vector2 point2, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
point1 Vector2
point2 Vector2
colorOverride ushort
pixelOverride byte
return void

DrawLine() public method

public DrawLine ( ITransformation transformation, Vector3 point1, Vector3 point2, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
point1 Vector3
point2 Vector3
colorOverride ushort
pixelOverride byte
return void

DrawMeshBoundingBox() public method

public DrawMeshBoundingBox ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
meshes IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawMeshBoundingBox() public method

public DrawMeshBoundingBox ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
mesh IMesh
colorOverride ushort
pixelOverride byte
return void

DrawMeshCenters() public method

public DrawMeshCenters ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
meshes IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawMeshCenters() public method

public DrawMeshCenters ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
mesh IMesh
colorOverride ushort
pixelOverride byte
return void

DrawMeshFilled() public method

public DrawMeshFilled ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
meshes IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawMeshFilled() public method

public DrawMeshFilled ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
mesh IMesh
colorOverride ushort
pixelOverride byte
return void

DrawMeshVertices() public method

public DrawMeshVertices ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
meshes IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawMeshVertices() public method

public DrawMeshVertices ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
mesh IMesh
colorOverride ushort
pixelOverride byte
return void

DrawMeshWired() public method

public DrawMeshWired ( ITransformation transformation, IEnumerable meshes, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
meshes IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawMeshWired() public method

public DrawMeshWired ( ITransformation transformation, IMesh mesh, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
mesh IMesh
colorOverride ushort
pixelOverride byte
return void

DrawPoint() public method

public DrawPoint ( ITransformation transformation, Vector2 point, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
point Vector2
colorOverride ushort
pixelOverride byte
return void

DrawPoint() public method

public DrawPoint ( ITransformation transformation, Vector3 point, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
point Vector3
colorOverride ushort
pixelOverride byte
return void

DrawPoints() public method

public DrawPoints ( ITransformation transformation, IEnumerable points, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
points IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawPoints() public method

public DrawPoints ( ITransformation transformation, IEnumerable points, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
points IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawPolygonFilled() public method

public DrawPolygonFilled ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
vectors IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawPolygonFilled() public method

public DrawPolygonFilled ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
vectors IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawPolygonWired() public method

public DrawPolygonWired ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
vectors IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawPolygonWired() public method

public DrawPolygonWired ( ITransformation transformation, IEnumerable vectors, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
vectors IEnumerable
colorOverride ushort
pixelOverride byte
return void

DrawStringHorizontal() public method

public DrawStringHorizontal ( ITransformation transformation, Vector2 location, string messageString, ushort colorOverride = null ) : void
transformation ITransformation
location Vector2
messageString string
colorOverride ushort
return void

DrawStringVertical() public method

public DrawStringVertical ( ITransformation transformation, Vector2 location, string messageString, ushort colorOverride = null ) : void
transformation ITransformation
location Vector2
messageString string
colorOverride ushort
return void

GetPixelCharacter() public method

public GetPixelCharacter ( int x, int y ) : byte?
x int
y int
return byte?

GetPixelColor() public method

public GetPixelColor ( int x, int y ) : ushort?
x int
y int
return ushort?

Rasterize() public method

public Rasterize ( ) : IGraphicsBuffer
return IGraphicsBuffer

Rasterizer() public method

public Rasterizer ( int width, int height ) : System.Collections.Generic
width int
height int
return System.Collections.Generic

Property Details

Colors public static property

public static ushort[] Colors
return ushort[]

HorizontalWireFrameChar public static property

public static byte HorizontalWireFrameChar
return byte

UpLeftWireFrameChar public static property

public static byte UpLeftWireFrameChar
return byte

UpRightWireFrameChar public static property

public static byte UpRightWireFrameChar
return byte

VerticleWireFrameChar public static property

public static byte VerticleWireFrameChar
return byte