C# Класс Nez.DeferredLighting.PolygonMesh

builds a Polygon from the passed in verts. Verts should be relative to 0,0 and contain the outer perimeter of the polygon. A center vert will be added and used to triangulate the polygon. If you need a transform matrix for the Polygon set the position/scale and then fetch the transformMatrix property.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
PolygonMesh ( Vector2 points ) : System
createRectangle ( ) : PolygonMesh
createSymmetricalPolygon ( int vertCount ) : PolygonMesh

creates a circular polygon

createSymmetricalPolygon ( int vertCount, float radius ) : PolygonMesh

creates a circular polygon

render ( ) : void

Приватные методы

Метод Описание
IDisposable ( ) : void
buildSymmetricalPolygon ( int vertCount, float radius ) : Vector2[]
generateVerts ( Vector2 points ) : Microsoft.Xna.Framework.Graphics.VertexPosition[]

Описание методов

PolygonMesh() публичный метод

public PolygonMesh ( Vector2 points ) : System
points Vector2
Результат System

createRectangle() публичный статический метод

public static createRectangle ( ) : PolygonMesh
Результат PolygonMesh

createSymmetricalPolygon() публичный статический метод

creates a circular polygon
public static createSymmetricalPolygon ( int vertCount ) : PolygonMesh
vertCount int Vert count.
Результат PolygonMesh

createSymmetricalPolygon() публичный статический метод

creates a circular polygon
public static createSymmetricalPolygon ( int vertCount, float radius ) : PolygonMesh
vertCount int Vert count.
radius float Radius.
Результат PolygonMesh

render() публичный метод

public render ( ) : void
Результат void