C# Class Emotion.Primitives.TransformRenderable

A transform which is renderable, and exposes a model matrix.
Inheritance: Emotion.Primitives.Transform, ITransformRenderable
Show file Open project: Cryru/Emotion

Public Methods

Method Description
Render ( RenderComposer composer ) : void

Render the renderable.

Protected Methods

Method Description
TransformRenderable ( Emotion.Primitives.Rectangle bounds ) : System.Numerics

Create a new renderable transform from a rectangle.

TransformRenderable ( Emotion.Primitives.Vector2 position, Emotion.Primitives.Vector2 size ) : System.Numerics

Create a new renderable transform from two vec2s.

TransformRenderable ( Emotion.Primitives.Vector3 position, Emotion.Primitives.Vector2 size ) : System.Numerics

Create a new renderable transform from a vec3 and a vec2.

TransformRenderable ( float x = 0f, float y = 0f, float z = 0f, float width = 0f, float height = 0f ) : System.Numerics

Create a new transform;

Method Details

Render() public abstract method

Render the renderable.
public abstract Render ( RenderComposer composer ) : void
composer RenderComposer
return void

TransformRenderable() protected method

Create a new renderable transform from a rectangle.
protected TransformRenderable ( Emotion.Primitives.Rectangle bounds ) : System.Numerics
bounds Emotion.Primitives.Rectangle The rectangle to create from.
return System.Numerics

TransformRenderable() protected method

Create a new renderable transform from two vec2s.
protected TransformRenderable ( Emotion.Primitives.Vector2 position, Emotion.Primitives.Vector2 size ) : System.Numerics
position Emotion.Primitives.Vector2 The position of the transform.
size Emotion.Primitives.Vector2 The size of the transform.
return System.Numerics

TransformRenderable() protected method

Create a new renderable transform from a vec3 and a vec2.
protected TransformRenderable ( Emotion.Primitives.Vector3 position, Emotion.Primitives.Vector2 size ) : System.Numerics
position Emotion.Primitives.Vector3 The position of the transform.
size Emotion.Primitives.Vector2 The size of the transform.
return System.Numerics

TransformRenderable() protected method

Create a new transform;
protected TransformRenderable ( float x = 0f, float y = 0f, float z = 0f, float width = 0f, float height = 0f ) : System.Numerics
x float The position of the transform on the X axis.
y float The position of the transform on the Y axis.
z float The position of the transform ont he Z axis.
width float The width of the transform.
height float The height of the transform.
return System.Numerics