diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-06 07:59:04 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-06 08:18:12 +0300 |
commit | 0debbe2b7f7177678c9bce9046c1499b698ac969 (patch) | |
tree | 9a1fb242aae9be44b3479d2a747411b6e0c04822 /intern | |
parent | c2f5cd8f6454bf8256a39a5fc9cb075311e25c58 (diff) |
Gawain: VertexFormat_add_attrib (function name change)
See intern/gawain for the API change. Other files are updated to use the new name. Also updated every call site to the recommended style:
unsigned int foo = VertexFormat_add_attrib(format, "foo", COMP_ ... )
Diffstat (limited to 'intern')
-rw-r--r-- | intern/gawain/gawain/vertex_format.h | 2 | ||||
-rw-r--r-- | intern/gawain/src/vertex_format.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/gawain/gawain/vertex_format.h b/intern/gawain/gawain/vertex_format.h index 4ed9e58f376..fcebaec8772 100644 --- a/intern/gawain/gawain/vertex_format.h +++ b/intern/gawain/gawain/vertex_format.h @@ -64,7 +64,7 @@ typedef struct { void VertexFormat_clear(VertexFormat*); void VertexFormat_copy(VertexFormat* dest, const VertexFormat* src); -unsigned add_attrib(VertexFormat*, const char* name, VertexCompType, unsigned comp_ct, VertexFetchMode); +unsigned VertexFormat_add_attrib(VertexFormat*, const char* name, VertexCompType, unsigned comp_ct, VertexFetchMode); // format conversion diff --git a/intern/gawain/src/vertex_format.c b/intern/gawain/src/vertex_format.c index d42398f3a4f..b1fb7721e38 100644 --- a/intern/gawain/src/vertex_format.c +++ b/intern/gawain/src/vertex_format.c @@ -106,7 +106,7 @@ static const char* copy_attrib_name(VertexFormat* format, const char* name) return name_copy; } -unsigned add_attrib(VertexFormat* format, const char* name, VertexCompType comp_type, unsigned comp_ct, VertexFetchMode fetch_mode) +unsigned VertexFormat_add_attrib(VertexFormat* format, const char* name, VertexCompType comp_type, unsigned comp_ct, VertexFetchMode fetch_mode) { #if TRUST_NO_ONE assert(format->attrib_ct < MAX_VERTEX_ATTRIBS); // there's room for more |