C# Class MeshRenderer.Core.GDI.MeshRenderer

Renders a mesh.
Show file Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Methods

Method Description
MeshRenderer ( RenderData data, ColorManager renderColors ) : System

Initializes a new instance of the MeshRenderer class.

Render ( Graphics g, Zoom zoom ) : void

Renders the mesh.

Render ( Graphics g, Zoom zoom, bool fillTriangles ) : void

Renders the mesh.

RenderGeometry ( Graphics g, Zoom zoom ) : void

Renders only points and segments (no mesh triangles).

RenderMesh ( Graphics g, Zoom zoom ) : void

Renders only the mesh edges (no points or segments).

Private Methods

Method Description
RenderEdges ( Graphics g ) : void
RenderPoints ( Graphics g ) : void
RenderSegments ( Graphics g ) : void
RenderTriangles ( Graphics g, bool fillTriangles ) : void

Method Details

MeshRenderer() public method

Initializes a new instance of the MeshRenderer class.
public MeshRenderer ( RenderData data, ColorManager renderColors ) : System
data RenderData
renderColors ColorManager
return System

Render() public method

Renders the mesh.
public Render ( Graphics g, Zoom zoom ) : void
g System.Drawing.Graphics
zoom Zoom
return void

Render() public method

Renders the mesh.
public Render ( Graphics g, Zoom zoom, bool fillTriangles ) : void
g System.Drawing.Graphics
zoom Zoom
fillTriangles bool
return void

RenderGeometry() public method

Renders only points and segments (no mesh triangles).
public RenderGeometry ( Graphics g, Zoom zoom ) : void
g System.Drawing.Graphics
zoom Zoom
return void

RenderMesh() public method

Renders only the mesh edges (no points or segments).
public RenderMesh ( Graphics g, Zoom zoom ) : void
g System.Drawing.Graphics
zoom Zoom
return void