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
-
TestSphere
- 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
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.