Gawain: remove GL enum from vertex format API
authorMike Erwin <significant.bit@gmail.com>
Fri, 7 Apr 2017 20:00:03 +0000 (16:00 -0400)
committerMike Erwin <significant.bit@gmail.com>
Fri, 7 Apr 2017 20:00:03 +0000 (16:00 -0400)
commitc1dc078840541bd64f95fdeca52267c75a061e04
tree86ac278dfa321e509e34a5afad9b5ab3300e6a6f
parent1ad52872604efb0a11011bcc7cd198c56ea97163
Gawain: remove GL enum from vertex format API

Callers now have to use Gawain's COMP enum to specify vertex attributes.

This makes the API more bullet-proof (at least less vulnerable) since GLenum covers waaay more than component types.

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