Skip to content

Commit c0b4b2c

Browse files
committed
Add gl_PATCHES to the primitive modes
1 parent ceefa7f commit c0b4b2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Graphics/Rendering/OpenGL/GL/PrimitiveMode.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ data PrimitiveMode =
6666
| Polygon
6767
-- ^ Draws a single, convex polygon. Vertices 1 through /N/ define this
6868
-- polygon.
69+
| Patches
70+
-- ^ Only used in conjunction with tessellation. The number of vertices per
71+
-- patch is configurable.
6972
deriving ( Eq, Ord, Show )
7073

7174
marshalPrimitiveMode :: PrimitiveMode -> GLenum
@@ -80,6 +83,7 @@ marshalPrimitiveMode x = case x of
8083
Quads -> gl_QUADS
8184
QuadStrip -> gl_QUAD_STRIP
8285
Polygon -> gl_POLYGON
86+
Patches -> gl_PATCHES
8387

8488
unmarshalPrimitiveMode :: GLenum -> PrimitiveMode
8589
unmarshalPrimitiveMode x

0 commit comments

Comments
 (0)