31 virtual void write(std::ostream &out,
int indent_level)
const;
38 bool is_equivalent_to(
const EggMaterial &other,
int eq)
const;
39 bool sorts_less_than(
const EggMaterial &other,
int eq)
const;
41 INLINE
void set_base(
const LColor &base);
42 INLINE
void clear_base();
43 INLINE
bool has_base()
const;
44 INLINE LColor get_base()
const;
46 INLINE
void set_diff(
const LColor &diff);
47 INLINE
void clear_diff();
48 INLINE
bool has_diff()
const;
49 INLINE LColor get_diff()
const;
51 INLINE
void set_amb(
const LColor &amb);
52 INLINE
void clear_amb();
53 INLINE
bool has_amb()
const;
54 INLINE LColor get_amb()
const;
56 INLINE
void set_emit(
const LColor &emit);
57 INLINE
void clear_emit();
58 INLINE
bool has_emit()
const;
59 INLINE LColor get_emit()
const;
61 INLINE
void set_spec(
const LColor &spec);
62 INLINE
void clear_spec();
63 INLINE
bool has_spec()
const;
64 INLINE LColor get_spec()
const;
66 INLINE
void set_shininess(
double shininess);
67 INLINE
void clear_shininess();
68 INLINE
bool has_shininess()
const;
69 INLINE
double get_shininess()
const;
71 INLINE
void set_roughness(
double roughness);
72 INLINE
void clear_roughness();
73 INLINE
bool has_roughness()
const;
74 INLINE
double get_roughness()
const;
76 INLINE
void set_metallic(
double metallic);
77 INLINE
void clear_metallic();
78 INLINE
bool has_metallic()
const;
79 INLINE
double get_metallic()
const;
81 INLINE
void set_ior(
double ior);
82 INLINE
void clear_ior();
83 INLINE
bool has_ior()
const;
84 INLINE
double get_ior()
const;
86 INLINE
void set_local(
bool local);
87 INLINE
void clear_local();
88 INLINE
bool has_local()
const;
89 INLINE
bool get_local()
const;
92 MAKE_PROPERTY2(base, has_base, get_base, set_base, clear_base);
93 MAKE_PROPERTY2(diff, has_diff, get_diff, set_diff, clear_diff);
94 MAKE_PROPERTY2(amb, has_amb, get_amb, set_amb, clear_amb);
95 MAKE_PROPERTY2(emit, has_emit, get_emit, set_emit, clear_emit);
96 MAKE_PROPERTY2(spec, has_spec, get_spec, set_spec, clear_spec);
97 MAKE_PROPERTY2(shininess, has_shininess, get_shininess, set_shininess, clear_shininess);
98 MAKE_PROPERTY2(roughness, has_roughness, get_roughness, set_roughness, clear_roughness);
99 MAKE_PROPERTY2(metallic, has_metallic, get_metallic, set_metallic, clear_metallic);
100 MAKE_PROPERTY2(ior, has_ior, get_ior, set_ior, clear_ior);
102 MAKE_PROPERTY2(local, has_local, get_local, set_local, clear_local);
135 static void init_type() {
136 EggNode::init_type();
138 EggNode::get_class_type());
141 return get_class_type();
143 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A base class for things that may be directly added into the egg hierarchy.
TypeHandle is the identifier used to differentiate C++ class types.
An STL function object for sorting materials into order by properties.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...