WEBGL_polygon_mode
WebGL working group (public_webgl 'at' khronos.org)
Members of the WebGL working group
Last modified date: November 06, 2023
Revision: 2
WebGL extension #53
Written against the WebGL API 1.0 specification.
This extension exposes the ANGLE_polygon_mode functionality to WebGL.
There are no WebGL-specific behavioral changes.
Consult the above extension for documentation, issues and new functions and enumerants.
[Exposed=(Window,Worker), LegacyNoInterfaceObject] interface WEBGL_polygon_mode { const GLenum POLYGON_MODE_WEBGL = 0x0B40; const GLenum POLYGON_OFFSET_LINE_WEBGL = 0x2A02; const GLenum LINE_WEBGL = 0x1B01; const GLenum FILL_WEBGL = 0x1B02; undefined polygonModeWEBGL(GLenum face, GLenum mode); };
face
must be FRONT_AND_BACK
.
mode
must be LINE_WEBGL
or FILL_WEBGL
(default).
POLYGON_OFFSET_LINE_WEBGL
is accepted as the cap
parameter.
POLYGON_OFFSET_LINE_WEBGL
is accepted as the cap
parameter.
POLYGON_OFFSET_LINE_WEBGL
is accepted as the cap
parameter.
New enums POLYGON_MODE_WEBGL
and POLYGON_OFFSET_LINE_WEBGL
are accepted as the pname
parameter.
The return type of this method depends on the parameter queried:
pname | returned type |
---|---|
POLYGON_MODE_WEBGL | GLenum |
POLYGON_OFFSET_LINE_WEBGL | GLboolean |
Revision 1, 2023/06/01
Revision 2, 2023/11/06