C# 클래스 CSharpGL.ZeroIndexRenderer

파일 보기 프로젝트 열기: bitzhuwei/CSharpGL 1 사용 예제들

공개 메소드들

메소드 설명
GetPickedGeometry ( RenderEventArgs arg, uint stageVertexId, int x, int y ) : PickedGeometry

비공개 메소드들

메소드 설명
GetLineSearcher ( DrawMode mode ) : ZeroIndexLineSearcher
GetPointSearcher ( DrawMode mode ) : ZeroIndexPointSearcher
OnPrimitiveTest ( uint lastVertexId, DrawMode mode ) : bool

现在,已经判定了鼠标在某个点上。 我需要判定此点是否出现在图元上。 now that I know the mouse is picking on some point, I need to make sure that point should appear.

PickPoint ( RenderEventArgs arg, uint stageVertexId, uint lastVertexId ) : PickedGeometry
PickWhateverItIs ( RenderEventArgs arg, uint stageVertexId, uint lastVertexId, DrawMode mode, PickingGeometryType typeOfMode ) : PickedGeometry
PickingLastLineInLineLoop ( uint &vertexIds, vec3 &positions ) : void
SearchLine ( RenderEventArgs arg, uint stageVertexId, int x, int y, uint lastVertexId, ZeroIndexLineSearcher searcher ) : PickedGeometry

Search line in triangles/triangle_strip/triangle_fan/ triangles_adjacency/triangle_strip_adjacency/ quads/quad_strip/polygon

SearchPoint ( RenderEventArgs arg, uint stageVertexId, int x, int y, uint lastVertexId, ZeroIndexPointSearcher searcher ) : PickedGeometry

ZeroIndexRenderer ( IBufferable model, ShaderCode shaderCodes, AttributeMap attributeMap, string positionNameInIBufferable )

用glDrarArrays进行渲染。

메소드 상세

GetPickedGeometry() 공개 메소드

public 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)).
리턴 PickedGeometry