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