VertexPositionNormalTexture Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Describes a custom vertex format structure that contains position, normal and texture information.
public struct VertexPositionNormalTexture : IEquatable<VertexPositionNormalTexture>, IVertex
Name | Description | |
---|---|---|
Constructors | ||
VertexPositionNormalTexture(Vector3, Vector3, Vector2) | Initializes a new instance of the VertexPositionNormalTexture struct. |
|
Fields | ||
Layout | The vertex layout of this struct. |
|
Normal | The vertex normal. |
|
Position | XYZ position. |
|
Size | Defines structure byte size. |
|
TextureCoordinate | UV texture coordinates. |
|
Methods | ||
Equals(VertexPositionNormalTexture) | ||
Equals(Object) | ||
FlipWinding() | ||
GetHashCode() | ||
GetLayout() | ||
ToString() | ||
Operators | ||
Equality(VertexPositionNormalTexture, VertexPositionNormalTexture) | ||
Inequality(VertexPositionNormalTexture, VertexPositionNormalTexture) |
Constructors
VertexPositionNormalTexture(Vector3, Vector3, Vector2)
Initializes a new instance of the VertexPositionNormalTexture struct.
public VertexPositionNormalTexture(Vector3 position, Vector3 normal, Vector2 textureCoordinate)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position of this vertex. |
Vector3 | normal | The vertex normal. |
Vector2 | textureCoordinate | UV texture coordinates. |
Fields
Layout
The vertex layout of this struct.
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 |
TextureCoordinate
UV texture coordinates.
public Vector2 TextureCoordinate
Field Value
Type | Description |
---|---|
Vector2 |
Methods
Equals(VertexPositionNormalTexture)
public bool Equals(VertexPositionNormalTexture other)
Parameters
Type | Name | Description |
---|---|---|
VertexPositionNormalTexture | 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(VertexPositionNormalTexture, VertexPositionNormalTexture)
public static bool operator ==(VertexPositionNormalTexture left, VertexPositionNormalTexture right)
Parameters
Type | Name | Description |
---|---|---|
VertexPositionNormalTexture | left | |
VertexPositionNormalTexture | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(VertexPositionNormalTexture, VertexPositionNormalTexture)
public static bool operator !=(VertexPositionNormalTexture left, VertexPositionNormalTexture right)
Parameters
Type | Name | Description |
---|---|---|
VertexPositionNormalTexture | left | |
VertexPositionNormalTexture | right |
Returns
Type | Description |
---|---|
System.Boolean |