Table of Contents

Interface IRender3DWidget

Namespace
RetroEditor.Plugins
Assembly
RetroEditor.dll

Interface for a 3D widget that renders a 3D scene

public interface IRender3DWidget

Properties

CameraFovY

Camera field of view in the Y direction (in degrees)

float CameraFovY { get; }

Property Value

float

CameraLookAt

Camera look-at point in the 3D scene

Vector3F CameraLookAt { get; }

Property Value

Vector3F

CameraOrthographic

Whether the camera is orthographic (true) or perspective (false)

bool CameraOrthographic { get; }

Property Value

bool

CameraPosition

Camera position in the 3D scene

Vector3F CameraPosition { get; }

Property Value

Vector3F

CameraUp

Camera up vector in the 3D scene

Vector3F CameraUp { get; }

Property Value

Vector3F

Height

Height in pixels of the final rendered image

uint Height { get; }

Property Value

uint

Lines

Array of lines to render in the 3D scene

Line[] Lines { get; }

Property Value

Line[]

Points

Array of points to render in the 3D scene

Point[] Points { get; }

Property Value

Point[]

Triangles

Array of triangles to render in the 3D scene

Triangle[] Triangles { get; }

Property Value

Triangle[]

Width

Width in pixels of the final rendered image

uint Width { get; }

Property Value

uint

Methods

Update(float)

Updates the 3D scene, called every update cycle

void Update(float seconds)

Parameters

seconds float