Gawain: remove GL enum from primitive API
authorMike Erwin <significant.bit@gmail.com>
Sat, 8 Apr 2017 05:19:25 +0000 (01:19 -0400)
committerMike Erwin <significant.bit@gmail.com>
Sat, 8 Apr 2017 05:19:48 +0000 (01:19 -0400)
commitd5883bb1ba6e4cfdd70bd3b8c0531a22c616b1be
tree238cd5d5987b804b1b08851c59d95c24b16b1055
parent0947c97fade7a5400e22d85b1f61c5a0f552976a
Gawain: remove GL enum from primitive API

Callers now have to use Gawain's PRIM enum to specify geometric primitives.

This makes the API more bullet-proof (at least less vulnerable) since GLenum covers waaay more than GL_POINTS, GL_LINES, etc.

Also prepares us for Vulkan.
intern/gawain/gawain/batch.h
intern/gawain/gawain/primitive.h
intern/gawain/src/batch.c
intern/gawain/src/immediate.c
intern/gawain/src/primitive.c