DrawContext.kl

Types

DrawContext (object)

バージョン 1.12.0 で追加.

The DrawContext is used to provide contextual information during a custom draw. Please see the OGLInlineDrawing for an example of this.

Members

Viewport viewport the viewport used for this drawing
Mat44 projectionMat the camera projection matrix
Mat44 viewMat camera view matrix
Mat33 invViewMat inverse view matrix as Mat44
Vec3[] lightPositions Array of lights position
Color[] lightColors Corresponding array of light colors
Scalar time The DCC’s current time
RTVal[String][String] viewportParams viewport parameters

Methods

  DrawContext ( in DrawContext other )
  DrawContext ()
DrawContext clone ? ()
RTVal[String] getCurrentViewportParams ! ()
DrawContext getInstance ? ()
RTVal[String] getViewportParams ! ( in String name )
  resetAllViewportParams ! ()
  setCurrentViewportParams ! ( in RTVal params[String] )
  setViewportParams ! ( in String name, in RTVal params[String] )

Functions

DrawContext_GetInstance

DrawContext DrawContext_GetInstance ()

Get the DrawContext singleton, or construct it if it didn’t already exist.