Table of Contents

Struct GLVertexStruct

Namespace
SearchAThing.OpenGL.Core
Assembly
netcore-opengl-core.dll

Structure used by the vertex manager when register a vertex inside it.
This structure has an explicit layout for unmanaged access by the gpu and its used in GLControl during the phase of rendering.

public struct GLVertexStruct
Inherited Members

Fields

Flags

Vertex flags.

public uint Flags

Field Value

uint

MatColor

Vertex color encoded in vector4 (range 0..1) as (red, green, blue, alpha).
Alpha=1 (full opaque).
Alpha=0 (full transparent).

public Vector4 MatColor

Field Value

Vector4

MatProp

Describe the strength (0..1) of the ambient, diffuse, specular light effects.

public Vector3 MatProp

Field Value

Vector3

Normal

Vertex (effective) normal [local].

public Vector3 Normal

Field Value

Vector3
See Also

Position

Vertex position [local].

public Vector3 Position

Field Value

Vector3

TextureST

Texture mapping position in the range [0,0]...[1,1].

public Vector2 TextureST

Field Value

Vector2

Methods

ToString()

public override string ToString()

Returns

string

See Also

GLVertexArrayObject<PacketStructure>