Struct SimpleVertex ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Simple vertex with position and color for debug rendering.
csharp
public record struct SimpleVertex : IEquatable<SimpleVertex>Implements ​
Constructors ​
SimpleVertex(Vector3, Color32) ​
Simple vertex with position and color for debug rendering.
csharp
public SimpleVertex(Vector3 Position, Color32 Color)Parameters ​
Position Vector3
Color Color32
Fields ​
SizeInBytes ​
Size of a in bytes.
csharp
public static readonly int SizeInBytesField Value ​
Properties ​
Color ​
csharp
public Color32 Color { readonly get; set; }Property Value ​
Position ​
csharp
public Vector3 Position { readonly get; set; }Property Value ​
Methods ​
BindDefaultShaderLayout(int, int) ​
Enables and configures the position and color vertex attributes on the given VAO.
csharp
public static void BindDefaultShaderLayout(int vao, int shaderProgram)Parameters ​
vao int
Target vertex array object.
shaderProgram int
Shader program used to look up attribute locations.

