Class Sphere
Assembly: Genesis.dll
Syntax
public class Sphere : GameElement
Constructors
Sphere(string, Vec3, Vec3, Vec3)
Declaration
public Sphere(string name, Vec3 location, Vec3 size, Vec3 rotation)
Parameters
Sphere(string, Vec3, Vec3, Vec3, int, int, float)
Declaration
public Sphere(string name, Vec3 location, Vec3 size, Vec3 rotation, int latitudebands = 20, int longitudebands = 20, float radius = 0.5)
Parameters
Properties
Color
Declaration
public Color Color { get; set; }
Property Value
Material
Declaration
public Material Material { get; set; }
Property Value
Shader
Declaration
public ShaderProgram Shader { get; set; }
Property Value
Shape
Declaration
public SphereShape Shape { get; set; }
Property Value
Methods
CreateInstanceContainer(Material, int, int, float, bool)
Declaration
public static RenderInstanceContainer CreateInstanceContainer(Material material, int latitudebands = 20, int longitudebands = 20, float radius = 0.5, bool updateInstances = false)
Parameters
Returns
Init(Game, IRenderDevice)
Called when the game is initialized.
Declaration
public override void Init(Game game, IRenderDevice renderDevice)
Parameters
Type |
Name |
Description |
Game |
game |
The game instance.
|
IRenderDevice |
renderDevice |
The rendering device.
|
Overrides
OnRender(Game, IRenderDevice)
Called when the game is rendered.
Declaration
public override void OnRender(Game game, IRenderDevice renderDevice)
Parameters
Type |
Name |
Description |
Game |
game |
The game instance.
|
IRenderDevice |
renderDevice |
The rendering device.
|
Overrides
ToRenderInstance()
Declaration
public RenderInstanceContainer ToRenderInstance()
Returns