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
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
MatProp
Describe the strength (0..1) of the ambient, diffuse, specular light effects.
public Vector3 MatProp
Field Value
Normal
Vertex (effective) normal [local].
public Vector3 Normal
Field Value
- See Also
Position
Vertex position [local].
public Vector3 Position
Field Value
TextureST
Texture mapping position in the range [0,0]...[1,1].
public Vector2 TextureST
Field Value
Methods
ToString()
public override string ToString()
Returns
See Also
GLVertexArrayObject<PacketStructure>