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>2019-04-21 18:18:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-21 23:30:08 +0300
commite9a01c1d2f6edaf2902f82c73c98ff7d25627878 (patch)
tree93a40a63e99ba4a2ff2af0e66891b7e18f1db2db /source/blender/imbuf/intern/dds/Color.h
parentfaabf92a7e891b355faf8ba6e2e2461e94262aab (diff)
Cleanup: comments (long lines) in imbuf
Diffstat (limited to 'source/blender/imbuf/intern/dds/Color.h')
-rw-r--r--source/blender/imbuf/intern/dds/Color.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/source/blender/imbuf/intern/dds/Color.h b/source/blender/imbuf/intern/dds/Color.h
index 16432ffa715..36e2615759b 100644
--- a/source/blender/imbuf/intern/dds/Color.h
+++ b/source/blender/imbuf/intern/dds/Color.h
@@ -47,9 +47,20 @@ class Color32 {
{
setRGBA(R, G, B, A);
}
- //Color32(unsigned char c[4]) { setRGBA(c[0], c[1], c[2], c[3]); }
- //Color32(float R, float G, float B) { setRGBA(uint(R*255), uint(G*255), uint(B*255), 0xFF); }
- //Color32(float R, float G, float B, float A) { setRGBA(uint(R*255), uint(G*255), uint(B*255), uint(A*255)); }
+#if 0
+ Color32(unsigned char c[4])
+ {
+ setRGBA(c[0], c[1], c[2], c[3]);
+ }
+ Color32(float R, float G, float B)
+ {
+ setRGBA(uint(R * 255), uint(G * 255), uint(B * 255), 0xFF);
+ }
+ Color32(float R, float G, float B, float A)
+ {
+ setRGBA(uint(R * 255), uint(G * 255), uint(B * 255), uint(A * 255));
+ }
+#endif
Color32(unsigned int U) : u(U)
{
}