00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef CLEARABLEREGION_H
00020 #define CLEARABLEREGION_H
00021
00022 #include "pandabase.h"
00023 #include "luse.h"
00024
00025
00026
00027
00028
00029
00030
00031
00032 class EXPCL_PANDA ClearableRegion {
00033 public:
00034 INLINE ClearableRegion();
00035 INLINE ClearableRegion(const ClearableRegion ©);
00036 INLINE void operator = (const ClearableRegion ©);
00037
00038 INLINE void copy_clear_settings(const ClearableRegion ©);
00039
00040 PUBLISHED:
00041 INLINE void set_clear_color_active(bool clear_color_active);
00042 INLINE bool get_clear_color_active() const;
00043
00044 INLINE void set_clear_depth_active(bool clear_depth_active);
00045 INLINE bool get_clear_depth_active() const;
00046
00047 INLINE void set_clear_color(const Colorf &color);
00048 INLINE const Colorf &get_clear_color() const;
00049
00050 INLINE void set_clear_depth(float depth);
00051 INLINE float get_clear_depth() const;
00052
00053 INLINE bool is_any_clear_active() const;
00054
00055 private:
00056
00057 enum Flags {
00058 F_clear_color_active = 0x0001,
00059 F_clear_depth_active = 0x0002,
00060 };
00061 int _flags;
00062
00063 Colorf _clear_color;
00064 float _clear_depth;
00065 };
00066
00067 #include "clearableRegion.I"
00068
00069 #endif