Gizmo

Description

abstract class Tinman.AddOns.Scenes.Gizmo

Derived from

ScreenLabel abstract
IUpdateableFrameTime
IRenderPreparable

Extended by

MapScaleGizmo sealed

Full source code is included in the Tinman 3D SDK download.

Abstract base class for IScreenLabel implementations that are intended to be used with ScreenGizmo.

Public / Attributes

Size


public attribute Size → (get,set)

value : Vec2I

The screen size.

The screen size of this gizmo.

Defaults to Vec2I.Zero.

Protected / Constructors

Gizmo


protected constructor Gizmo → ()

Creates a new instance of Gizmo.

Protected / Methods

Render2D


protected abstract method Render2D → (3)

in : Graphics

The graphics object to use. Will never be null.

size in : Vec2I

The screen size of the gizmo.

occluded in : bool

Render as occluded?

Renders the gizmo content.

The gizmo content must be rendered into the bounds [(0,0) .. (size.X,size.Y)[.

Protected / Attributes

AspectRatio


protected virtual attribute AspectRatio → (get)

value : RangeF

The allowed range of aspect ratio values (width divided by height).

The allowed aspect ratio of the screen gizmo.

The default implementation returns RangeF.Max.