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