Table of Contents

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
object
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

int

Radius

The radius of the sphere.

public float Radius { get; set; }

Property Value

float

Slices

The number of vertical slices to divide the sphere into.

public int Slices { get; set; }

Property Value

int

Stacks

The number of horizontal stacks to divide the sphere into.

public int Stacks { get; set; }

Property Value

int

Texture

The filename of the texture to place on the sphere.

public string? Texture { get; set; }

Property Value

string

Methods

Clone()

Creates a deep copy of this instance.

public override Render Clone()

Returns

Render

CloneFromTo(TestSphere, TestSphere)

Copies all members declared by TestSphere from one instance to another.

protected static void CloneFromTo(TestSphere from, TestSphere to)

Parameters

from TestSphere
to TestSphere

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.

See Also