/
EugenyCh7
/
Puppet2D.Net
Обзор
Документация
Войти
/
EugenyCh7
/
Puppet2D.Net
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Puppet2D.Graphics/PrimitiveType.cs
49 строк
2 KB
EugenyCh7
comments fix
24 июл 2025, 22:54
24 июл 2025, 22:54
421ed1f
Код
Авторство
О чём код?
using System; namespace Puppet2D.Graphics { /// <summary> /// Types of primitives that a <see cref="VertexArray"/> or <see cref="VertexBuffer"/> can render. /// </summary> /// /// <remarks> /// Points and lines have no area, therefore their thickness /// will always be 1 pixel, regardless the current transform /// and view. /// </remarks> public enum PrimitiveType { /// <summary>Individual Points</summary> Points, /// <summary>Individual, Disconnected Lines; each pair of points forms a line</summary> Lines, /// <summary>Connected Lines; each point starts at the previous point to form a line</summary> LineStrip, /// <summary>Individual, Disconnected Triangles</summary> Triangles, /// <summary>Connected Triangles; each point uses the two previous points to form a triangle</summary> TriangleStrip, /// <summary>Connected Triangles; each point uses the first point and the previous point to form a triangle</summary> TriangleFan, /// <summary>Quadrilaterals; each set of four points forms a 4-sided shape</summary> Quads, /// <summary><c>DEPRECATED:</c> Use <see cref="LineStrip">LineStrip</see></summary> [Obsolete("LineStrip")] LinesStrip = LineStrip, /// <summary><c>DEPRECATED:</c> Use <see cref="TriangleStrip">TriangleStrip</see></summary> [Obsolete("Use TriangleStrip")] TrianglesStrip = TriangleStrip, /// <summary><c>DEPRECATED:</c> Use <see cref="TriangleFan">TriangleFan</see></summary> [Obsolete("Use TriangleFan")] TrianglesFan = TriangleFan, } }