diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-05-29 20:37:02 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-05-29 20:37:02 +0300 |
commit | 1fa216487d69c79ef81ccf679090e2bfea5b64fd (patch) | |
tree | c67c0e9c388b8a58dc0e6f13b3ed1ef341958645 /intern/gawain | |
parent | 818268b394f810f864c7eff29ab89b3bf787b072 (diff) |
Gawain: update comments to match latest API
Diffstat (limited to 'intern/gawain')
-rw-r--r-- | intern/gawain/gawain/vertex_buffer.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/intern/gawain/gawain/vertex_buffer.h b/intern/gawain/gawain/vertex_buffer.h index 1e3819b74e5..bc5518cc4fc 100644 --- a/intern/gawain/gawain/vertex_buffer.h +++ b/intern/gawain/gawain/vertex_buffer.h @@ -14,11 +14,10 @@ #include "vertex_format.h" // How to create a VertexBuffer: -// 1) verts = create_VertexBuffer() or init_VertexBuffer(verts) -// 2) add_attrib(verts->format, ...) -// 3) allocate_vertex_data(verts, vertex_ct) <-- finalizes/packs vertex format -// 4) fillAttrib(verts, pos, application_pos_buffer) -// 5) prime_VertexBuffer(verts); +// 1) verts = VertexBuffer_create() or VertexBuffer_init(verts) +// 2) VertexFormat_add_attrib(verts->format, ...) +// 3) VertexBuffer_allocate_data(verts, vertex_ct) <-- finalizes/packs vertex format +// 4) VertexBuffer_fill_attrib(verts, pos, application_pos_buffer) // Is VertexBuffer always used as part of a Batch? @@ -41,7 +40,7 @@ unsigned VertexBuffer_size(const VertexBuffer*); void VertexBuffer_allocate_data(VertexBuffer*, unsigned v_ct); void VertexBuffer_resize_data(VertexBuffer*, unsigned v_ct); -// The most important setAttrib variant is the untyped one. Get it right first. +// The most important set_attrib variant is the untyped one. Get it right first. // It takes a void* so the app developer is responsible for matching their app data types // to the vertex attribute's type and component count. They're in control of both, so this // should not be a problem. |