SolidKit3D.Drawing.ShapeRenderer.DrawObjectAxis

From Solid Graphics Wiki

Jump to: navigation, search


SolidKit3D.Drawing.ShapeRenderer.DrawObjectAxis
Namespace: SolidKit3D.Drawing
Member of: ShapeRenderer class
Assembly: SolidKit.dll

The DrawObjectAxis function draws specified object's axis.

The function uses OpenGL functions for drawing the axis, so the axis is drawn into active/current OpenGL rendering context window. The function uses current rendering context's line width, and lighting model to draw the axis.

public static void DrawObjectAxis( ObjectPosInfoList objectPosInfo, ref Vector axis, ref Color color, float scale );


Parameters

objectPosInfo Object's position and size information. The axis is drawn centered on the centerPoint of the last ObjectPosInfo struct item in the objectPosInfo list.
axis the axis direction relative to the object's coordinate system
color color to use for drawing the axis
scale The size of axis to draw. The resulting size of the axis length is calculated by multiplying the objects bounding sphere diameter by the scale value.

See Also


   


SolidKit Library Documentation

Personal tools