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
GLVertexPoint 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
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
floatPoint coord x [object].
y
floatPoint coord y [object].
z
floatPoint coord z [object].
color
Color?Point color.
Properties
Vertex
Point vertex.
public GLVertex Vertex { get; set; }
Property Value
Vertexes
Enumerate primitive gl vertexes.
public override IEnumerable<GLVertex> Vertexes { get; }
Property Value
Methods
CopySpecialized(GLPrimitiveBase)
protected override void CopySpecialized(GLPrimitiveBase other)
Parameters
other
GLPrimitiveBase
MakeInstance()
protected override GLPrimitiveBase MakeInstance()
Returns
Mirror(in Matrix4x4)
Create a mirrored primitive against given xy plane.
public override GLPrimitiveBase? Mirror(in Matrix4x4 xyPlane)
Parameters
xyPlane
Matrix4x4XY 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
boolIf true header will prepended to form a complete command.