00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef FLTPACKEDCOLOR_H
00016 #define FLTPACKEDCOLOR_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "luse.h"
00021 #include <math.h>
00022
00023 class FltRecordReader;
00024 class FltRecordWriter;
00025
00026
00027
00028
00029
00030
00031 class FltPackedColor {
00032 public:
00033 INLINE FltPackedColor();
00034
00035 INLINE LColor get_color() const;
00036 INLINE LRGBColor get_rgb() const;
00037 INLINE void set_color(const LColor &color);
00038 INLINE void set_rgb(const LRGBColor &rgb);
00039
00040 void output(ostream &out) const;
00041 bool extract_record(FltRecordReader &reader);
00042 bool build_record(FltRecordWriter &writer) const;
00043
00044 public:
00045 int _a;
00046 int _b;
00047 int _g;
00048 int _r;
00049 };
00050
00051 INLINE ostream &operator << (ostream &out, const FltPackedColor &color);
00052
00053 #include "fltPackedColor.I"
00054
00055 #endif
00056
00057
00058