Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GeometricPrimitive.Cube Class

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

    A cube has six faces, each one pointing in a different direction.

    System.Object → GeometricPrimitive.Cube
    Derived from GeometricPrimitive.Cube:

    public static class Cube
    Name Description
    Methods
    New(Vector3, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    New(GraphicsDevice, Vector3, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    New(GraphicsDevice, Single, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    New(Single, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    | Improve this Doc View Source

    Methods


    New(Vector3, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    public static GeometricMeshData<VertexPositionNormalTexture> New(Vector3 size, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
    Parameters
    Type Name Description
    Vector3 size

    The size.

    System.Single uScale

    Scale U coordinates between 0 and the values of this parameter.

    System.Single vScale

    Scale V coordinates 0 and the values of this parameter.

    System.Boolean toLeftHanded

    if set to true vertices and indices will be transformed to left handed. Default is false.

    Returns
    Type Description
    GeometricMeshData<VertexPositionNormalTexture>

    A cube.


    New(GraphicsDevice, Vector3, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    public static GeometricPrimitive New(GraphicsDevice device, Vector3 size, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
    Parameters
    Type Name Description
    GraphicsDevice device

    The device.

    Vector3 size

    The size.

    System.Single uScale

    Scale U coordinates between 0 and the values of this parameter.

    System.Single vScale

    Scale V coordinates 0 and the values of this parameter.

    System.Boolean toLeftHanded

    if set to true vertices and indices will be transformed to left handed. Default is false.

    Returns
    Type Description
    GeometricPrimitive

    A cube.


    New(GraphicsDevice, Single, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    public static GeometricPrimitive New(GraphicsDevice device, float size = 1F, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
    Parameters
    Type Name Description
    GraphicsDevice device

    The device.

    System.Single size

    The size.

    System.Single uScale

    Scale U coordinates between 0 and the values of this parameter.

    System.Single vScale

    Scale V coordinates 0 and the values of this parameter.

    System.Boolean toLeftHanded

    if set to true vertices and indices will be transformed to left handed. Default is false.

    Returns
    Type Description
    GeometricPrimitive

    A cube.


    New(Single, Single, Single, Boolean)

    Creates a cube with six faces each one pointing in a different direction.

    public static GeometricMeshData<VertexPositionNormalTexture> New(float size = 1F, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
    Parameters
    Type Name Description
    System.Single size

    The size.

    System.Single uScale

    Scale U coordinates between 0 and the values of this parameter.

    System.Single vScale

    Scale V coordinates 0 and the values of this parameter.

    System.Boolean toLeftHanded

    if set to true vertices and indices will be transformed to left handed. Default is false.

    Returns
    Type Description
    GeometricMeshData<VertexPositionNormalTexture>

    A cube.


    • Improve this Doc
    • View Source
    In This Article

    Back to top

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