DrawObjectPlane

From Solid Graphics Wiki

Jump to: navigation, search
DrawObjectPlane
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 DrawObjectPlane function draws specified object's plane.

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

void DrawObjectPlane
         (
         const ObjectPosInfoList & objectPosInfo,
         const Plane & plane,
         const Color & color,
         bool drawBoundary = false,
         float scale = 1.0f
         );


Parameters

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

See Also


   


SolidKit Library Documentation

Personal tools