Table of Contents

Class Primitives

Namespace
SharpPluginLoader.Core.Rendering
Assembly
SharpPluginLoader.Core.dll

Provides methods for rendering 3D "primitives".

public static class Primitives
Inheritance
Primitives
Inherited Members

Methods

RenderCapsule(MtCapsule, MtColor)

Renders a capsule at the given position with the given radius and color.

public static void RenderCapsule(MtCapsule capsule, MtColor color)

Parameters

capsule MtCapsule

The capsule to render.

color MtColor

The color of the capsule.

RenderCapsule(MtCapsule, Vector4)

Renders a capsule at the given position with the given radius and color.

public static void RenderCapsule(MtCapsule capsule, Vector4 color)

Parameters

capsule MtCapsule

The capsule to render.

color Vector4

The color of the capsule.

RenderLine(MtLineSegment, MtColor)

Renders a line with the given color.

public static void RenderLine(MtLineSegment line, MtColor color)

Parameters

line MtLineSegment

The line to render.

color MtColor

The color of the line.

RenderLine(MtLineSegment, Vector4)

Renders a line with the given color.

public static void RenderLine(MtLineSegment line, Vector4 color)

Parameters

line MtLineSegment

The line to render.

color Vector4

The color of the line.

RenderLine(Vector3, Vector3, MtColor)

Renders a line at the given start and end position with the given color.

public static void RenderLine(Vector3 start, Vector3 end, MtColor color)

Parameters

start Vector3

The start position of the line.

end Vector3

The end position of the line.

color MtColor

The color of the line.

RenderLine(Vector3, Vector3, Vector4)

Renders a line at the given start and end position with the given color.

public static void RenderLine(Vector3 start, Vector3 end, Vector4 color)

Parameters

start Vector3

The start position of the line.

end Vector3

The end position of the line.

color Vector4

The color of the line.

RenderObb(MtObb, MtColor)

Renders an oriented bounding box at the given position with the given size and color.

public static void RenderObb(MtObb obb, MtColor color)

Parameters

obb MtObb

The oriented bounding box to render.

color MtColor

The color of the oriented bounding box.

RenderObb(MtObb, Vector4)

Renders an oriented bounding box at the given position with the given size and color.

public static void RenderObb(MtObb obb, Vector4 color)

Parameters

obb MtObb

The oriented bounding box to render.

color Vector4

The color of the oriented bounding box.

RenderSphere(MtSphere, MtColor)

Renders a sphere at the given position with the given radius and color.

public static void RenderSphere(MtSphere sphere, MtColor color)

Parameters

sphere MtSphere

The sphere to render.

color MtColor

The color of the sphere.

RenderSphere(MtSphere, Vector4)

Renders a sphere at the given position with the given radius and color.

public static void RenderSphere(MtSphere sphere, Vector4 color)

Parameters

sphere MtSphere

The sphere to render.

color Vector4

The color of the sphere.

RenderSphere(Vector3, float, MtColor)

Renders a sphere at the given position with the given radius and color.

public static void RenderSphere(Vector3 position, float radius, MtColor color)

Parameters

position Vector3

The position of the sphere.

radius float

The radius of the sphere.

color MtColor

The color of the sphere.

RenderSphere(Vector3, float, Vector4)

Renders a sphere at the given position with the given radius and color.

public static void RenderSphere(Vector3 position, float radius, Vector4 color)

Parameters

position Vector3

The position of the sphere.

radius float

The radius of the sphere.

color Vector4

The color of the sphere.