mirror of https://github.com/AxioDL/zeus.git
Merge branch 'master' of https://github.com/AxioDL/zeus
This commit is contained in:
commit
8146bed6f1
|
@ -6,6 +6,7 @@
|
||||||
#include "TVectorUnion.hpp"
|
#include "TVectorUnion.hpp"
|
||||||
#if ZE_ATHENA_TYPES
|
#if ZE_ATHENA_TYPES
|
||||||
#include <athena/FileReader.hpp>
|
#include <athena/FileReader.hpp>
|
||||||
|
#include <athena/FileWriter.hpp>
|
||||||
#endif
|
#endif
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -95,6 +96,20 @@ public:
|
||||||
r = reader.readFloatBig();
|
r = reader.readFloatBig();
|
||||||
a = reader.readFloatBig();
|
a = reader.readFloatBig();
|
||||||
}
|
}
|
||||||
|
inline void writeRGBABig(athena::io::IStreamWriter& writer) const
|
||||||
|
{
|
||||||
|
writer.writeFloatBig(r);
|
||||||
|
writer.writeFloatBig(g);
|
||||||
|
writer.writeFloatBig(b);
|
||||||
|
writer.writeFloatBig(a);
|
||||||
|
}
|
||||||
|
inline void writeBGRABig(athena::io::IStreamWriter& writer) const
|
||||||
|
{
|
||||||
|
writer.writeFloatBig(b);
|
||||||
|
writer.writeFloatBig(g);
|
||||||
|
writer.writeFloatBig(r);
|
||||||
|
writer.writeFloatBig(a);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
inline bool operator==(const CColor& rhs) const { return (r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a); }
|
inline bool operator==(const CColor& rhs) const { return (r == rhs.r && g == rhs.g && b == rhs.b && a == rhs.a); }
|
||||||
|
|
Loading…
Reference in New Issue