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-07-08 13:47:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-08 13:49:03 +0300
commit9d43ed521cd085b91decfcfe9a437a5faa317f14 (patch)
treed8570517cec7623a43ab4f98732cf2198285548f /source/blender/draw/intern/draw_cache_impl_particles.c
parentb5811bccf8a64129e81a96f4bcf12815eae2e032 (diff)
Cleanup: abbreviate unsigned types (draw manager)
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_particles.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_particles.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_particles.c b/source/blender/draw/intern/draw_cache_impl_particles.c
index 28693b47c89..3cf47fb5e25 100644
--- a/source/blender/draw/intern/draw_cache_impl_particles.c
+++ b/source/blender/draw/intern/draw_cache_impl_particles.c
@@ -263,7 +263,7 @@ static void ensure_seg_pt_count(
}
}
-static void particle_pack_mcol(MCol *mcol, unsigned short r_scol[3])
+static void particle_pack_mcol(MCol *mcol, ushort r_scol[3])
{
/* Convert to linear ushort and swizzle */
r_scol[0] = unit_float_to_ushort_clamp(BLI_color_from_srgb_table[mcol->b]);
@@ -573,7 +573,7 @@ static int particle_batch_cache_fill_segments(
}
for (int k = 0; k < num_col_layers; k++) {
/* TODO Put the conversion outside the loop */
- unsigned short scol[4];
+ ushort scol[4];
particle_pack_mcol(
(is_simple && is_child) ?
&(*r_parent_mcol)[psys->child[i].parent][k] : &mcol[k],
@@ -600,7 +600,7 @@ static int particle_batch_cache_fill_segments(
}
for (int k = 0; k < num_col_layers; k++) {
/* TODO Put the conversion outside the loop */
- unsigned short scol[4];
+ ushort scol[4];
particle_pack_mcol(
(is_simple && is_child) ?
&(*r_parent_mcol)[psys->child[i].parent][k] : &mcol[k],
@@ -734,7 +734,7 @@ static int particle_batch_cache_fill_strands_data(
copy_v2_v2(t_uv, uv[k]);
}
for (int k = 0; k < num_col_layers; k++) {
- unsigned short *scol = (unsigned short *)GWN_vertbuf_raw_step(col_step + k);
+ ushort *scol = (ushort *)GWN_vertbuf_raw_step(col_step + k);
particle_pack_mcol(
(is_simple && is_child) ?
&(*r_parent_mcol)[psys->child[i].parent][k] : &mcol[k],
@@ -1196,7 +1196,7 @@ static void particle_batch_cache_ensure_pos(
}
static Gwn_VertFormat format = { 0 };
- static unsigned pos_id, rot_id, val_id;
+ static uint pos_id, rot_id, val_id;
int i, curr_point;
ParticleData *pa;
ParticleKey state;
@@ -1420,7 +1420,7 @@ static void particle_batch_cache_ensure_edit_inner_pos(
}
static Gwn_VertFormat format = { 0 };
- static unsigned pos_id, color_id;
+ static uint pos_id, color_id;
GWN_VERTBUF_DISCARD_SAFE(cache->edit_inner_pos);
@@ -1491,7 +1491,7 @@ static void particle_batch_cache_ensure_edit_tip_pos(
}
static Gwn_VertFormat format = { 0 };
- static unsigned pos_id, color_id;
+ static uint pos_id, color_id;
GWN_VERTBUF_DISCARD_SAFE(cache->edit_tip_pos);