18 #include "pandabase.h"
33 virtual void write(ostream &out,
int indent_level)
const;
40 bool is_equivalent_to(
const EggMaterial &other,
int eq)
const;
41 bool sorts_less_than(
const EggMaterial &other,
int eq)
const;
43 INLINE
void set_diff(
const LColor &diff);
44 INLINE
void clear_diff();
45 INLINE
bool has_diff()
const;
46 INLINE
LColor get_diff()
const;
48 INLINE
void set_amb(
const LColor &amb);
49 INLINE
void clear_amb();
50 INLINE
bool has_amb()
const;
51 INLINE
LColor get_amb()
const;
53 INLINE
void set_emit(
const LColor &emit);
54 INLINE
void clear_emit();
55 INLINE
bool has_emit()
const;
56 INLINE
LColor get_emit()
const;
58 INLINE
void set_spec(
const LColor &spec);
59 INLINE
void clear_spec();
60 INLINE
bool has_spec()
const;
61 INLINE
LColor get_spec()
const;
63 INLINE
void set_shininess(
double shininess);
64 INLINE
void clear_shininess();
65 INLINE
bool has_shininess()
const;
66 INLINE
double get_shininess()
const;
68 INLINE
void set_local(
bool local);
69 INLINE
void clear_local();
70 INLINE
bool has_local()
const;
71 INLINE
bool get_local()
const;
96 static void init_type() {
98 register_type(_type_handle,
"EggMaterial",
99 EggNode::get_class_type());
102 return get_class_type();
104 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
125 #include "eggMaterial.I"
An STL function object for sorting materials into order by properties.
This is the base class for all three-component vectors and points.
A base class for things that may be directly added into the egg hierarchy.
TypeHandle is the identifier used to differentiate C++ class types.