diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-04 13:50:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-04 13:50:03 +0300 |
commit | 002b2066ac312d34f2d5e3a8031db140c3008f0a (patch) | |
tree | 424886595dd64c8e93e0e33f0ed23167d64526bb /source/blender/gpu/intern | |
parent | f3550242ed3d64a3cb81a698073cf94cf1b7326b (diff) |
Remove cpack
Places where it's removed are already replaced by newer logic.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_immediate_util.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_immediate_util.c b/source/blender/gpu/intern/gpu_immediate_util.c index 152f1f3dd98..40da4cf091b 100644 --- a/source/blender/gpu/intern/gpu_immediate_util.c +++ b/source/blender/gpu/intern/gpu_immediate_util.c @@ -34,12 +34,16 @@ #include "GPU_matrix.h" /** -* Pack color into 3 bytes -* -* \Note BGR format (i.e. 0xBBGGRR)... -* -* \param x color. -*/ + * Pack color into 3 bytes + * + * This define converts a numerical value to the equivalent 24-bit + * color, while not being endian-sensitive. On little-endians, this + * is the same as doing a 'naive' indexing, on big-endian, it is not! + * + * \note BGR format (i.e. 0xBBGGRR)... + * + * \param x color. + */ void imm_cpack(unsigned int x) { immUniformColor3ub(((x) & 0xFF), |