Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-02-11 00:43:25 +0300
committerJulian Eisel <eiseljulian@gmail.com>2017-02-11 02:43:03 +0300
commitb97864203ecd4df2b7b5d297c2e0203705c8f431 (patch)
tree0769c25805c983f5b890d61124f4900913e0c08a /source/blender/gpu/gawain/batch.h
parentaf2df3624842cf1a8c2c98d51ca0b82ed0920295 (diff)
Gawain : Added Batch_init()
to init a batch without allocating memory
Diffstat (limited to 'source/blender/gpu/gawain/batch.h')
-rw-r--r--source/blender/gpu/gawain/batch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/gawain/batch.h b/source/blender/gpu/gawain/batch.h
index 8b5c48cca79..a328d649663 100644
--- a/source/blender/gpu/gawain/batch.h
+++ b/source/blender/gpu/gawain/batch.h
@@ -38,6 +38,7 @@ typedef struct Batch{
} Batch;
Batch* Batch_create(PrimitiveType, VertexBuffer*, ElementList*);
+void Batch_init(Batch* batch, PrimitiveType prim_type, VertexBuffer* verts, ElementList* elem);
void Batch_discard(Batch*); // verts & elem are not discarded
void Batch_discard_all(Batch*); // including verts & elem