Programming API Reference: SharpGfx

Class public abstract Visual

is IDisposable
Represents an object (or a hierarchical group of objects) that is placed at a particular position, rotation and size in the virtual world.
Property public IEnumerable<VisualChildren { get }: returns the visuals that have been added directly to this visual.
Property public Matrix4 Transform { get; set; }: the transform-matrix applied to this visual.
Property public IEnumerable<VisualDescendants { get }: returns this visual and recursively all that have been added to it.

Constructor()

Create a new visual.
  • string name: not used by the framework.

Method public void Add()

Add a child visual to below this.

Method public abstract void Render()

Do not call this from application programs.

    Method public virtual Visual Scale()

    Scale all descendants in all axis directions by the same factor.
    • float factor: in world units.

    Method public virtual Visual Scale()

    Scale descendants by varying factors in the different axis directions.

    Method public virtual Visual Translate()

    Translate descendants by a vector.
    • Vector3 direction: in world units.

    Method public virtual Visual RotateX()

    Rotate descendants around the x axis.
    • float angle: in radians

    Method public virtual Visual RotateY()

    Rotate descendants around the y axis.
    • float angle: in radians

    Method public virtual Visual RotateZ()

    Rotate descendants around the z axis.
    • float angle: in radians