C# Class CSharpGL.BezierRenderer

Rendering a evaluator(a bezier curve or surface) and its control points.
Inheritance: PointsRenderer
Datei anzeigen Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method Description
Create ( IList controlPoints, BezierType type ) : BezierRenderer

Creates a renderer that renders a evaluator(a bezier curve or surface) and its control points.

MovePositions ( Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport ) : void

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

MovePositions ( Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport, IEnumerable positionIndexes ) : void

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

ToString ( ) : string

Protected Methods

Method Description
DoInitialize ( ) : void

DoRender ( RenderEventArgs arg ) : void

Private Methods

Method Description
BezierRenderer ( IList controlPoints, BezierType type, Points model, CSharpGL shaderCodes, CSharpGL attributeMap, string positionNameInIBufferable ) : System.Collections.Generic

Rendering a evaluator(a bezier curve or surface) and its control points.

UpdateEvaluator ( ) : void

Method Details

Create() public static method

Creates a renderer that renders a evaluator(a bezier curve or surface) and its control points.
public static Create ( IList controlPoints, BezierType type ) : BezierRenderer
controlPoints IList
type BezierType
return BezierRenderer

DoInitialize() protected method

protected DoInitialize ( ) : void
return void

DoRender() protected method

protected DoRender ( RenderEventArgs arg ) : void
arg RenderEventArgs
return void

MovePositions() public method

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

public MovePositions ( Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport ) : void
differenceOnScreen Point
viewMatrix CSharpGL.mat4
projectionMatrix CSharpGL.mat4
viewport vec4
return void

MovePositions() public method

Move vertexes' position accroding to difference on screen.

根据differenceOnScreen来修改指定索引处的顶点位置。

public MovePositions ( Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport, IEnumerable positionIndexes ) : void
differenceOnScreen Point
viewMatrix CSharpGL.mat4
projectionMatrix CSharpGL.mat4
viewport vec4
positionIndexes IEnumerable
return void

ToString() public method

public ToString ( ) : string
return string