We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceefa7f commit c0b4b2cCopy full SHA for c0b4b2c
src/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hs
@@ -66,6 +66,9 @@ data PrimitiveMode =
66
| Polygon
67
-- ^ Draws a single, convex polygon. Vertices 1 through /N/ define this
68
-- polygon.
69
+ | Patches
70
+ -- ^ Only used in conjunction with tessellation. The number of vertices per
71
+ -- patch is configurable.
72
deriving ( Eq, Ord, Show )
73
74
marshalPrimitiveMode :: PrimitiveMode -> GLenum
@@ -80,6 +83,7 @@ marshalPrimitiveMode x = case x of
80
83
Quads -> gl_QUADS
81
84
QuadStrip -> gl_QUAD_STRIP
82
85
Polygon -> gl_POLYGON
86
+ Patches -> gl_PATCHES
87
88
unmarshalPrimitiveMode :: GLenum -> PrimitiveMode
89
unmarshalPrimitiveMode x
0 commit comments