Action:
|
Gets the backface culling mode used when rendering entities.
|
|
Filename:
|
gl/gl_scm/gl_scm.cxx
|
|
APIs:
|
api_gl_get_cull_mode
|
|
Syntax:
|
(gl:cull-mode)
|
|
Arg Types:
|
None
|
|
Returns:
|
string
|
|
Description:
|
This extension sets the backface culling mode OpenGL uses when rendering entities. When backface culling is active, polygons whose normals point away from the eyepoint are not rendered. This is most obvious when the fill style is set to "edge" or "point". Normally you should use "auto" as GL renders faster if it can cull polys that face the wrong way.
|
|
|
The previous mode is returned. Culling modes are:
|
|
|
auto
|
backface culling depends on the sidedness of entities and faces. Double-sided faces are not culled, single sided are.
|
|
always
|
cull back facing faces regardless of sidedness.
|
|
never
|
cull back facing faces regardless of sidedness.
|
|
Limitations:
|
Supported on NT platforms only.
|
|
Example:
|
; gl:cull-mode
|
|
; Get the backface culling mode and fill style
|
|
; to display edges hidden by forward faces.
|
|
(view:gl)
|
|
;; #[view 41943049]
|
|
(gl:fill-style)
|
|
;; "filled"
|
|
(gl:cull-mode)
|
|
;; "auto"
|