C# Class CSharpGL.InnerPickableRenderer

Afficher le fichier Open project: bitzhuwei/CSharpGL Class Usage Examples

Protected Properties

Свойство Type Description
uniformmMVP4Picking CSharpGL.UniformMat4

Private Properties

Свойство Type Description
GetPrimitiveRestartState PrimitiveRestartState
Render4InnerPicking void
Render4Picking void
UpdatePolygonMode void

Méthodes publiques

Méthode Description
GetPickedGeometry ( RenderEventArgs arg, uint stageVertexId, int x, int y ) : PickedGeometry

GetVertexCount ( ) : uint

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

Move vertexes' position accroding to difference on screen.

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

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

Move vertexes' position accroding to difference on screen.

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

Render4Picking ( RenderEventArgs arg ) : void

Méthodes protégées

Méthode Description
DoInitialize ( ) : void
FillPickedGeometrysPosition ( uint indexes ) : vec3[]
FillPickedGeometrysPosition ( uint firstIndex, int indexCount ) : vec3[]
PickingStateesOff ( ) : void
PickingStateesOn ( ) : void

Private Methods

Méthode Description
GetPrimitiveRestartState ( OneIndexBuffer indexBuffer ) : PrimitiveRestartState
Render4InnerPicking ( RenderEventArgs arg, IndexBuffer indexBuffer ) : void

在此Buffer中的图元进行N选1 select a primitive geometry(point, line, triangle, quad, polygon) from points/lines/triangles/quads/polygons in this renderer.

Render4Picking ( RenderEventArgs arg, IndexBuffer temporaryIndexBuffer ) : void

render with specified index buffer.

UpdatePolygonMode ( PickingGeometryType geometryType ) : void

Method Details

DoInitialize() protected méthode

protected DoInitialize ( ) : void
Résultat void

FillPickedGeometrysPosition() protected méthode

protected FillPickedGeometrysPosition ( uint indexes ) : vec3[]
indexes uint
Résultat vec3[]

FillPickedGeometrysPosition() protected méthode

protected FillPickedGeometrysPosition ( uint firstIndex, int indexCount ) : vec3[]
firstIndex uint
indexCount int
Résultat vec3[]

GetPickedGeometry() public abstract méthode

public abstract GetPickedGeometry ( RenderEventArgs arg, uint stageVertexId, int x, int y ) : PickedGeometry
arg RenderEventArgs
stageVertexId uint
x int mouse position(Left Down is (0, 0)).
y int mouse position(Left Down is (0, 0)).
Résultat PickedGeometry

GetVertexCount() public méthode

public GetVertexCount ( ) : uint
Résultat uint

MovePositions() public méthode

Move vertexes' position accroding to difference on screen.

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

public MovePositions ( System.Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport ) : void
differenceOnScreen System.Point
viewMatrix CSharpGL.mat4
projectionMatrix CSharpGL.mat4
viewport vec4
Résultat void

MovePositions() public méthode

Move vertexes' position accroding to difference on screen.

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

public MovePositions ( System.Point differenceOnScreen, CSharpGL.mat4 viewMatrix, CSharpGL.mat4 projectionMatrix, vec4 viewport, IEnumerable positionIndexes ) : void
differenceOnScreen System.Point
viewMatrix CSharpGL.mat4
projectionMatrix CSharpGL.mat4
viewport vec4
positionIndexes IEnumerable
Résultat void

PickingStateesOff() protected méthode

protected PickingStateesOff ( ) : void
Résultat void

PickingStateesOn() protected méthode

protected PickingStateesOn ( ) : void
Résultat void

Render4Picking() public méthode

public Render4Picking ( RenderEventArgs arg ) : void
arg RenderEventArgs
Résultat void

Property Details

uniformmMVP4Picking protected_oe property

uniform mat4 VMP; (in shader)
protected UniformMat4,CSharpGL uniformmMVP4Picking
Résultat CSharpGL.UniformMat4