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:
authorCampbell Barton <ideasman42@gmail.com>2018-01-22 03:32:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-22 03:32:03 +0300
commit759aaad0f3853a3a80b26bdad96efde6b035d294 (patch)
tree741682493386814ebbcf823a74417148d0e12c29 /source/blender/draw/intern/draw_cache.c
parentd629f2a8a350fe0c130d4a1e3a610d4d1ed36e3c (diff)
Cleanup: commends
Avoid copy-pasting same comments.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 0b5cedb7799..c759a29ee0c 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -1886,7 +1886,7 @@ Gwn_Batch *DRW_cache_bone_envelope_distance_outline_get(void)
const float x = cosf(alpha);
const float y = -sinf(alpha);
- /* { X, Y, head/tail, inner/outer border } */
+ /* { X, Y, head/tail, inner/outer border } */
GWN_vertbuf_attr_set(vbo, pos_id, v_idx++, (const float[4]){x, y, head_tail, 0.0f});
GWN_vertbuf_attr_set(vbo, pos_id, v_idx++, (const float[4]){x, y, head_tail, 1.0f});
if (is_headtail_transition) {
@@ -1920,7 +1920,7 @@ Gwn_Batch *DRW_cache_bone_envelope_wire_outline_get(void)
/* Two lines between head and tail circles. */
/* Encoded lines, vertex shader gives them final correct value. */
- /* { X, Y, head/tail, inner/outer border } */
+ /* { X, Y, head/tail, inner/outer border } */
GWN_vertbuf_attr_set(vbo, pos_id, v_idx++, (const float[4]){ 1.0f, 0.0f, 0.0f, 0.0f});
GWN_vertbuf_attr_set(vbo, pos_id, v_idx++, (const float[4]){ 1.0f, 0.0f, 1.0f, 0.0f});
GWN_vertbuf_attr_set(vbo, pos_id, v_idx++, (const float[4]){-1.0f, 0.0f, 0.0f, 0.0f});
@@ -1956,7 +1956,7 @@ Gwn_Batch *DRW_cache_bone_envelope_head_wire_outline_get(void)
const float x = cosf(alpha);
const float y = -sinf(alpha);
- /* { X, Y, head/tail, inner/outer border } */
+ /* { X, Y, head/tail, inner/outer border } */
GWN_vertbuf_attr_set(vbo, pos_id, v_idx++, (const float[4]){ x, y, 0.0f, 0.0f});
}
@@ -2036,8 +2036,12 @@ Gwn_Batch *DRW_cache_bone_arrows_get(void)
/** \name Camera
* \{ */
-/* We could make these more generic functions.
- * although filling 1d lines is not common. */
+/**
+ * We could make these more generic functions.
+ * although filling 1d lines is not common.
+ *
+ * \note Use x coordinate to identify the vertex the vertex shader take care to place it appropriately.
+ */
static const float camera_coords_frame_bounds[5] = {
0.0f, /* center point */
@@ -2092,7 +2096,6 @@ Gwn_Batch *DRW_cache_camera_get(void)
static Gwn_VertFormat format = { 0 };
static struct { uint pos; } attr_id;
if (format.attrib_ct == 0) {
- /* Use x coordinate to identify the vertex the vertex shader take care to place it appropriately. */
attr_id.pos = GWN_vertformat_attr_add(&format, "pos", GWN_COMP_F32, 1, GWN_FETCH_FLOAT);
}
@@ -2126,7 +2129,6 @@ Gwn_Batch *DRW_cache_camera_frame_get(void)
static Gwn_VertFormat format = { 0 };
static struct { uint pos; } attr_id;
if (format.attrib_ct == 0) {
- /* Use x coordinate to identify the vertex the vertex shader take care to place it appropriately. */
attr_id.pos = GWN_vertformat_attr_add(&format, "pos", GWN_COMP_F32, 1, GWN_FETCH_FLOAT);
}
@@ -2153,9 +2155,6 @@ Gwn_Batch *DRW_cache_camera_tria_get(void)
static Gwn_VertFormat format = { 0 };
static struct { uint pos; } attr_id;
if (format.attrib_ct == 0) {
- /* use x coordinate to identify the vertex
- * the vertex shader take care to place it
- * appropriatelly */
attr_id.pos = GWN_vertformat_attr_add(&format, "pos", GWN_COMP_F32, 1, GWN_FETCH_FLOAT);
}