Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    VertexPositionColorTextureSwizzle Struct

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Describes a custom vertex format structure that contains position, color, texture and swizzle information.

    public struct VertexPositionColorTextureSwizzle : IEquatable<VertexPositionColorTextureSwizzle>, IVertex
    Name Description
    Constructors
    VertexPositionColorTextureSwizzle(Vector4, Color, Color, Vector2, SwizzleMode)

    Initializes a new instance of the VertexPositionColorTextureSwizzle struct.

    Fields
    ColorAdd

    The vertex color.

    ColorScale

    The vertex color.

    Layout

    The vertex layout of this struct.

    Position

    XYZ position.

    Size

    Defines structure byte size.

    Swizzle

    The Swizzle mode

    TextureCoordinate

    UV texture coordinates.

    Methods
    Equals(VertexPositionColorTextureSwizzle)
    Equals(Object)
    FlipWinding()
    GetHashCode()
    GetLayout()
    ToString()
    Operators
    Equality(VertexPositionColorTextureSwizzle, VertexPositionColorTextureSwizzle)
    Inequality(VertexPositionColorTextureSwizzle, VertexPositionColorTextureSwizzle)
    | Improve this Doc View Source

    Constructors


    VertexPositionColorTextureSwizzle(Vector4, Color, Color, Vector2, SwizzleMode)

    Initializes a new instance of the VertexPositionColorTextureSwizzle struct.

    public VertexPositionColorTextureSwizzle(Vector4 position, Color color, Color colorAdd, Vector2 textureCoordinate, SwizzleMode swizzle)
    Parameters
    Type Name Description
    Vector4 position

    The position of this vertex.

    Color color

    The color of this vertex.

    Color colorAdd
    Vector2 textureCoordinate

    UV texture coordinates.

    SwizzleMode swizzle

    The swizzle mode

    | Improve this Doc View Source

    Fields


    ColorAdd

    The vertex color.

    public Color4 ColorAdd
    Field Value
    Type Description
    Color4

    ColorScale

    The vertex color.

    public Color4 ColorScale
    Field Value
    Type Description
    Color4

    Layout

    The vertex layout of this struct.

    public static readonly VertexDeclaration Layout
    Field Value
    Type Description
    VertexDeclaration

    Position

    XYZ position.

    public Vector4 Position
    Field Value
    Type Description
    Vector4

    Size

    Defines structure byte size.

    public static readonly int Size
    Field Value
    Type Description
    System.Int32

    Swizzle

    The Swizzle mode

    public float Swizzle
    Field Value
    Type Description
    System.Single

    TextureCoordinate

    UV texture coordinates.

    public Vector2 TextureCoordinate
    Field Value
    Type Description
    Vector2
    | Improve this Doc View Source

    Methods


    Equals(VertexPositionColorTextureSwizzle)

    public bool Equals(VertexPositionColorTextureSwizzle other)
    Parameters
    Type Name Description
    VertexPositionColorTextureSwizzle 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(VertexPositionColorTextureSwizzle, VertexPositionColorTextureSwizzle)

    public static bool operator ==(VertexPositionColorTextureSwizzle left, VertexPositionColorTextureSwizzle right)
    Parameters
    Type Name Description
    VertexPositionColorTextureSwizzle left
    VertexPositionColorTextureSwizzle right
    Returns
    Type Description
    System.Boolean

    Inequality(VertexPositionColorTextureSwizzle, VertexPositionColorTextureSwizzle)

    public static bool operator !=(VertexPositionColorTextureSwizzle left, VertexPositionColorTextureSwizzle right)
    Parameters
    Type Name Description
    VertexPositionColorTextureSwizzle left
    VertexPositionColorTextureSwizzle right
    Returns
    Type Description
    System.Boolean

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation