ObjectDCL Banner

RenderMode Property

Description

Sets the render mode of the BlockView, (i.e. shaded, hidden, wire frame).

Type

This property is an integer. The valid values are:

  • 0 (2d Optimized)
  • 1 (Bounding Box)
  • 2 (Wire Frame)
  • 3 (Hidden Line)
  • 4 (Flat Shaded)
  • 5 (Gouraud Shaded)
  • 6 (Flat Shaded with Wire Frame)
  • 7 (Gouraud Shared with Wire Frame)

Applies For

BlockView.

Invoking From Old API

Can be passed as "RenderMode" to Control_SetProperty and Control_GetProperty's string property name where applicable.

Getter Example

CopyCode imageCopy Code
; Get the property from the control
(setq Value (Odcl_Control_GetRenderMode MyProject_MyForm_MyControl))

(setq Value (Odcl_Control_GetRenderMode "MyProject" "MyForm" "MyControl"))

Setter Example

CopyCode imageCopy Code
; Set the property to the control
(Odcl_Control_SetRenderMode MyProject_MyForm_MyControl 2)

(Odcl_Control_SetRenderMode "MyProject" "MyForm" "MyControl" 6)