GeometricPrimitive.Sphere Class
Namespace: Stride.Graphics.GeometricPrimitivesAssembly: Stride.Graphics.dll
A sphere primitive.
System.Object →
GeometricPrimitive.Sphere
Derived from GeometricPrimitive.Sphere:
public static class Sphere
Name | Description | |
---|---|---|
Methods | ||
New(GraphicsDevice, Single, Int32, Single, Single, Boolean) | Creates a sphere primitive. |
|
New(Single, Int32, Single, Single, Boolean) | Creates a sphere primitive. |
Methods
New(GraphicsDevice, Single, Int32, Single, Single, Boolean)
Creates a sphere primitive.
public static GeometricPrimitive New(GraphicsDevice device, float radius = 0.5F, int tessellation = 16, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The device. |
System.Single | radius | The radius. |
System.Int32 | tessellation | The tessellation. |
System.Single | uScale | The u scale. |
System.Single | vScale | The v scale. |
System.Boolean | toLeftHanded | if set to |
Returns
Type | Description |
---|---|
GeometricPrimitive | A sphere primitive. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | tessellation;Must be >= 3 |
New(Single, Int32, Single, Single, Boolean)
Creates a sphere primitive.
public static GeometricMeshData<VertexPositionNormalTexture> New(float radius = 0.5F, int tessellation = 16, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
Type | Name | Description |
---|---|---|
System.Single | radius | The radius. |
System.Int32 | tessellation | The tessellation. |
System.Single | uScale | The u scale. |
System.Single | vScale | The v scale. |
System.Boolean | toLeftHanded | if set to |
Returns
Type | Description |
---|---|
GeometricMeshData<VertexPositionNormalTexture> | A sphere primitive. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | tessellation;Must be >= 3 |