Table of Contents

Class GLPoint

Namespace
SearchAThing.OpenGL.Core
Assembly
netcore-opengl-core.dll
public class GLPoint : GLPrimitiveBase, IGLPoint, IGLPrimitive, IGLVertexManagerObject, INotifyPropertyChanged
Inheritance
GLPoint
Implements
Inherited Members
Extension Methods

Constructors

GLPoint(GLVertex)

Create an opengl point by given vertex.

public GLPoint(GLVertex v)

Parameters

v GLVertex

Point vertex [object].

GLPoint(in Vector3, in Color?)

Create an opengl point by given coordinate and optional vertex color.

public GLPoint(in Vector3 coord, in Color? color = null)

Parameters

coord Vector3

Point position [object].

color Color?

Point color.

GLPoint(float, float, float, in Color?)

Create an opengl point by given coordinate and optional vertex color.

public GLPoint(float x, float y, float z, in Color? color = null)

Parameters

x float

Point coord x [object].

y float

Point coord y [object].

z float

Point coord z [object].

color Color?

Point color.

Properties

Vertex

Point vertex.

public GLVertex Vertex { get; set; }

Property Value

GLVertex

Vertexes

Enumerate primitive gl vertexes.

public override IEnumerable<GLVertex> Vertexes { get; }

Property Value

IEnumerable<GLVertex>

Methods

CopySpecialized(GLPrimitiveBase)

protected override void CopySpecialized(GLPrimitiveBase other)

Parameters

other GLPrimitiveBase

MakeInstance()

protected override GLPrimitiveBase MakeInstance()

Returns

GLPrimitiveBase

Mirror(in Matrix4x4)

Create a mirrored primitive against given xy plane.

public override GLPrimitiveBase? Mirror(in Matrix4x4 xyPlane)

Parameters

xyPlane Matrix4x4

XY mirror plane.

Returns

GLPrimitiveBase

Mirrored primitive.

SimpleCmd(bool)

Retrieve e simple cmd representation of this primtiive.
Its a textual representation of primitive information useful to regen in a separate tool.

public override string SimpleCmd(bool includeHeader = true)

Parameters

includeHeader bool

If true header will prepended to form a complete command.

Returns

string