Class TestSphere
- Namespace
- AlphaFramework.World.Components
- Assembly
- AlphaFramework.World.dll
Renders a simple (optionally textured) sphere for benchmarks, etc.
public class TestSphere : Render, ICloneable
- Inheritance
-
objectTestSphere
- Implements
- Inherited Members
- Extension Methods
Properties
Alpha
The level of transparency from 0 (solid) to 255 (invisible), 256 for alpha channel, -256 for binary alpha channel, 257 for additive blending.
public int Alpha { get; set; }
Property Value
Radius
The radius of the sphere.
public float Radius { get; set; }
Property Value
Slices
The number of vertical slices to divide the sphere into.
public int Slices { get; set; }
Property Value
Stacks
The number of horizontal stacks to divide the sphere into.
public int Stacks { get; set; }
Property Value
Texture
The filename of the texture to place on the sphere.
public string? Texture { get; set; }
Property Value
Methods
Clone()
Creates a deep copy of this instance.
public override Render Clone()
Returns
CloneFromTo(TestSphere, TestSphere)
Copies all members declared by TestSphere from one instance to another.
protected static void CloneFromTo(TestSphere from, TestSphere to)
Parameters
fromTestSpheretoTestSphere
CloneTestSphere()
Creates a deep copy of this TestSphere instance.
public TestSphere CloneTestSphere()
Returns
- TestSphere
The new copy of the TestSphere.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.