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
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
RenderLine(MtLineSegment, MtColor)
Renders a line with the given color.
public static void RenderLine(MtLineSegment line, MtColor color)
Parameters
line
MtLineSegmentThe line to render.
color
MtColorThe color of the line.
RenderLine(MtLineSegment, Vector4)
Renders a line with the given color.
public static void RenderLine(MtLineSegment line, Vector4 color)
Parameters
line
MtLineSegmentThe line to render.
color
Vector4The 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
Vector3The start position of the line.
end
Vector3The end position of the line.
color
MtColorThe 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
Vector3The start position of the line.
end
Vector3The end position of the line.
color
Vector4The 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
MtObbThe oriented bounding box to render.
color
MtColorThe 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
MtObbThe oriented bounding box to render.
color
Vector4The 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
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
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
Vector3The position of the sphere.
radius
floatThe radius of the sphere.
color
MtColorThe 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)