From Solid Graphics Wiki

Jump to: navigation, search
Namespace: SKL3D
Member of: (this function is not member of any class)
Include: Skl3DDraw.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

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.

void DrawObjectAxis
         const ObjectPosInfoList & objectPosInfo,
         const Vector & axis,
         const Color & color,
         float scale = 1.0f


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