VertexPositionNormalColor Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Describes a custom vertex format structure that contains position, normal and color information.
public struct VertexPositionNormalColor : IEquatable<VertexPositionNormalColor>, IVertex
Name | Description | |
---|---|---|
Constructors | ||
VertexPositionNormalColor(Vector3, Vector3, Color) | Initializes a new VertexPositionNormalColor instance. |
|
Fields | ||
Color | The color. |
|
Layout | The vertex layout of this structure. |
|
Normal | The vertex normal. |
|
Position | XYZ position. |
|
Size | Defines structure byte size. |
|
Methods | ||
Equals(VertexPositionNormalColor) | ||
Equals(Object) | ||
FlipWinding() | ||
GetHashCode() | ||
GetLayout() | ||
ToString() | ||
Operators | ||
Equality(VertexPositionNormalColor, VertexPositionNormalColor) | ||
Inequality(VertexPositionNormalColor, VertexPositionNormalColor) |
Constructors
VertexPositionNormalColor(Vector3, Vector3, Color)
Initializes a new VertexPositionNormalColor instance.
public VertexPositionNormalColor(Vector3 position, Vector3 normal, Color color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position of this vertex. |
Vector3 | normal | The vertex normal. |
Color | color | the color |
Fields
Color
The color.
public Color Color
Field Value
Type | Description |
---|---|
Color |
Layout
The vertex layout of this structure.
public static readonly VertexDeclaration Layout
Field Value
Type | Description |
---|---|
VertexDeclaration |
Normal
The vertex normal.
public Vector3 Normal
Field Value
Type | Description |
---|---|
Vector3 |
Position
XYZ position.
public Vector3 Position
Field Value
Type | Description |
---|---|
Vector3 |
Size
Defines structure byte size.
public static readonly int Size
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(VertexPositionNormalColor)
public bool Equals(VertexPositionNormalColor other)
Parameters
Type | Name | Description |
---|---|---|
VertexPositionNormalColor | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.ValueType.Equals(System.Object)
FlipWinding()
public void FlipWinding()
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
GetLayout()
public VertexDeclaration GetLayout()
Returns
Type | Description |
---|---|
VertexDeclaration |
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.ValueType.ToString()
|
Improve this Doc
View Source
Operators
Equality(VertexPositionNormalColor, VertexPositionNormalColor)
public static bool operator ==(VertexPositionNormalColor left, VertexPositionNormalColor right)
Parameters
Type | Name | Description |
---|---|---|
VertexPositionNormalColor | left | |
VertexPositionNormalColor | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(VertexPositionNormalColor, VertexPositionNormalColor)
public static bool operator !=(VertexPositionNormalColor left, VertexPositionNormalColor right)
Parameters
Type | Name | Description |
---|---|---|
VertexPositionNormalColor | left | |
VertexPositionNormalColor | right |
Returns
Type | Description |
---|---|
System.Boolean |