aboutsummaryrefslogtreecommitdiff
path: root/include/smcolor.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-17 23:49:44 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-17 23:49:44 +0800
commitd961ae306461e1606d37539f512a5d907490531b (patch)
tree346b7c15df4cd50a16e38594063e25b25cb22a30 /include/smcolor.hpp
parent3b2a801f86f4ce7cdca8681b619fe3ff88307ef2 (diff)
downloadSMELT-d961ae306461e1606d37539f512a5d907490531b.tar.xz
Fixed a bug in smColorRGBA.
Fix and modify smMatrix::lookat. Allow disabling z-test in 3d mode. Add smvec4d.
Diffstat (limited to 'include/smcolor.hpp')
-rw-r--r--include/smcolor.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/smcolor.hpp b/include/smcolor.hpp
index 94ff4f3..a7feb65 100644
--- a/include/smcolor.hpp
+++ b/include/smcolor.hpp
@@ -27,7 +27,7 @@ public:
friend smColorRGBA operator *(smColorRGBA a,float b){return smColorRGBA(b*a.r,b*a.g,b*a.b,b*a.a);}
friend smColorRGBA operator /(smColorRGBA a,float b){return smColorRGBA(a.r/b,a.g/b,a.b/b,a.a/b);}
void setHWColor(DWORD col){a=GETA(col)/255.;r=GETR(col)/255.;g=GETG(col)/255.;b=GETB(col)/255.;}
- DWORD getHWColor(){clamp();return RGBA(r,g,b,a);}
+ DWORD getHWColor(){clamp();return RGBA(r*255.,g*255.,b*255.,a*255.);}
};
class smColorHSVA
{