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:
authorMike Erwin <significant.bit@gmail.com>2017-04-05 03:45:23 +0300
committerMike Erwin <significant.bit@gmail.com>2017-04-06 08:18:12 +0300
commitc2f5cd8f6454bf8256a39a5fc9cb075311e25c58 (patch)
treec0c9f803f810c2be81c9b302d814ac4989a559ed /source/blender/editors/space_view3d/drawobject.c
parent957b408458140d1cfc72395d62189918bac5b5c7 (diff)
Gawain: add VertexBuffer prefix to functions
See intern/gawain for the API change. Other files are updated to use the new names.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index eaa5ee3b9eb..19f8f6eae6f 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -5119,7 +5119,7 @@ static void drawDispListVerts(int dt, const void *data, unsigned int vert_ct, co
VertexBuffer *vbo = VertexBuffer_create_with_format(&format);
VertexBuffer_allocate_data(vbo, vert_ct);
- fillAttrib(vbo, pos_id, data);
+ VertexBuffer_fill_attrib(vbo, pos_id, data);
Batch *batch = Batch_create(dt, vbo, NULL);
Batch_set_builtin_program(batch, GPU_SHADER_3D_UNIFORM_COLOR);
@@ -5165,10 +5165,10 @@ static void drawDispListElem(bool quads, bool UNUSED(smooth), const float *data,
VertexBuffer *vbo = VertexBuffer_create_with_format(&format);
VertexBuffer_allocate_data(vbo, vert_ct);
- fillAttrib(vbo, pos_id, data);
+ VertexBuffer_fill_attrib(vbo, pos_id, data);
if (ndata) {
- fillAttrib(vbo, nor_id, ndata);
+ VertexBuffer_fill_attrib(vbo, nor_id, ndata);
}
Batch *batch = Batch_create(GL_TRIANGLES, vbo, ElementList_build(&elb));
@@ -5594,14 +5594,14 @@ static void draw_vertex_array(int dt, const float *vert, const float *nor, const
VertexBuffer_allocate_data(vbo, vert_ct);
if (stride == 0) {
- fillAttrib(vbo, pos_id, vert);
- if (nor) fillAttrib(vbo, nor_id, nor);
- if (color) fillAttrib(vbo, col_id, color);
+ VertexBuffer_fill_attrib(vbo, pos_id, vert);
+ if (nor) VertexBuffer_fill_attrib(vbo, nor_id, nor);
+ if (color) VertexBuffer_fill_attrib(vbo, col_id, color);
}
else {
- fillAttribStride(vbo, pos_id, stride, vert);
- if (nor) fillAttribStride(vbo, nor_id, stride, nor);
- if (color) fillAttribStride(vbo, col_id, stride, color);
+ VertexBuffer_fill_attrib_stride(vbo, pos_id, stride, vert);
+ if (nor) VertexBuffer_fill_attrib_stride(vbo, nor_id, stride, nor);
+ if (color) VertexBuffer_fill_attrib_stride(vbo, col_id, stride, color);
}
Batch *batch = Batch_create(dt, vbo, NULL);
@@ -6590,7 +6590,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit)
VertexBuffer *vbo = VertexBuffer_create_with_format(&format);
VertexBuffer_allocate_data(vbo, path->segments + 1);
- fillAttribStride(vbo, pos_id, sizeof(ParticleCacheKey), path->co);
+ VertexBuffer_fill_attrib_stride(vbo, pos_id, sizeof(ParticleCacheKey), path->co);
float *pcol = pathcol;
@@ -6600,7 +6600,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit)
pcol[3] = 0.25f;
}
- fillAttrib(vbo, col_id, pathcol);
+ VertexBuffer_fill_attrib(vbo, col_id, pathcol);
}
else if (timed) {
ParticleCacheKey *pkey = path;
@@ -6609,12 +6609,12 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit)
pcol[3] = 1.0f - fabsf((float)(CFRA) -pkey->time) / (float)pset->fade_frames;
}
- fillAttrib(vbo, col_id, pathcol);
+ VertexBuffer_fill_attrib(vbo, col_id, pathcol);
}
else {
/* FIXME: shader wants 4 color components but the cache only contains ParticleCacheKey
* So alpha is random */
- fillAttribStride(vbo, col_id, sizeof(ParticleCacheKey), path->col);
+ VertexBuffer_fill_attrib_stride(vbo, col_id, sizeof(ParticleCacheKey), path->col);
}
Batch *batch = Batch_create(GL_LINE_STRIP, vbo, NULL);
@@ -6683,11 +6683,11 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit)
VertexBuffer_allocate_data(vbo, point->totkey);
if (point->keys->flag & PEK_USE_WCO)
- fillAttribStride(vbo, pos_id, sizeof(PTCacheEditKey), point->keys->world_co);
+ VertexBuffer_fill_attrib_stride(vbo, pos_id, sizeof(PTCacheEditKey), point->keys->world_co);
else
- fillAttrib(vbo, pos_id, pd);
+ VertexBuffer_fill_attrib(vbo, pos_id, pd);
- fillAttrib(vbo, col_id, cd);
+ VertexBuffer_fill_attrib(vbo, col_id, cd);
Batch *batch = Batch_create(GL_POINTS, vbo, NULL);
Batch_set_builtin_program(batch, GPU_SHADER_3D_SMOOTH_COLOR);