C# Класс CSharpGL.ZeroIndexRenderer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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