C# Class GraphicsEngine.Graphics.Rasterizer

Inheritance: IRasterizer
Afficher le fichier Open project: ckarcz/GraphicsEngine

Méthodes publiques

Свойство Type Description
Colors ushort[]
HorizontalWireFrameChar byte
UpLeftWireFrameChar byte
UpRightWireFrameChar byte
VerticleWireFrameChar byte

Méthodes publiques

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

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

Method Details

ClearImage() public méthode

public ClearImage ( byte clearCharacter = null, byte clearColor = null ) : void
clearCharacter byte
clearColor byte
Résultat void

DrawAxes() public méthode

public DrawAxes ( ITransformation transformation, ushort colorOverride = null, byte pixelOverride = null ) : void
transformation ITransformation
colorOverride ushort
pixelOverride byte
Résultat void

DrawLine() public méthode

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
Résultat void

DrawLine() public méthode

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
Résultat void

DrawMeshBoundingBox() public méthode

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

DrawMeshBoundingBox() public méthode

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

DrawMeshCenters() public méthode

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

DrawMeshCenters() public méthode

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

DrawMeshFilled() public méthode

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

DrawMeshFilled() public méthode

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

DrawMeshVertices() public méthode

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

DrawMeshVertices() public méthode

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

DrawMeshWired() public méthode

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

DrawMeshWired() public méthode

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

DrawPoint() public méthode

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

DrawPoint() public méthode

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

DrawPoints() public méthode

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

DrawPoints() public méthode

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

DrawPolygonFilled() public méthode

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

DrawPolygonFilled() public méthode

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

DrawPolygonWired() public méthode

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

DrawPolygonWired() public méthode

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

DrawStringHorizontal() public méthode

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

DrawStringVertical() public méthode

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

GetPixelCharacter() public méthode

public GetPixelCharacter ( int x, int y ) : byte?
x int
y int
Résultat byte?

GetPixelColor() public méthode

public GetPixelColor ( int x, int y ) : ushort?
x int
y int
Résultat ushort?

Rasterize() public méthode

public Rasterize ( ) : IGraphicsBuffer
Résultat IGraphicsBuffer

Rasterizer() public méthode

public Rasterizer ( int width, int height ) : System.Collections.Generic
width int
height int
Résultat System.Collections.Generic

Property Details

Colors public_oe static_oe property

public static ushort[] Colors
Résultat ushort[]

HorizontalWireFrameChar public_oe static_oe property

public static byte HorizontalWireFrameChar
Résultat byte

UpLeftWireFrameChar public_oe static_oe property

public static byte UpLeftWireFrameChar
Résultat byte

UpRightWireFrameChar public_oe static_oe property

public static byte UpRightWireFrameChar
Résultat byte

VerticleWireFrameChar public_oe static_oe property

public static byte VerticleWireFrameChar
Résultat byte