21 INLINE
void EggMaterial::
22 set_diff(
const LColor &diff) {
32 INLINE
void EggMaterial::
42 INLINE
bool EggMaterial::
44 return (_flags & F_diff) != 0;
59 return LColor(1.0, 1.0, 1.0, 1.0);
68 INLINE
void EggMaterial::
69 set_amb(
const LColor &amb) {
79 INLINE
void EggMaterial::
89 INLINE
bool EggMaterial::
91 return (_flags & F_amb) != 0;
106 return LColor(1.0, 1.0, 1.0, 1.0);
115 INLINE
void EggMaterial::
116 set_emit(
const LColor &emit) {
126 INLINE
void EggMaterial::
136 INLINE
bool EggMaterial::
138 return (_flags & F_emit) != 0;
153 return LColor(0.0, 0.0, 0.0, 1.0);
162 INLINE
void EggMaterial::
163 set_spec(
const LColor &spec) {
173 INLINE
void EggMaterial::
183 INLINE
bool EggMaterial::
185 return (_flags & F_spec) != 0;
200 return LColor(0.0, 0.0, 0.0, 1.0);
209 INLINE
void EggMaterial::
210 set_shininess(
double shininess) {
211 _shininess = shininess;
212 _flags |= F_shininess;
220 INLINE
void EggMaterial::
222 _flags &= ~F_shininess;
230 INLINE
bool EggMaterial::
231 has_shininess()
const {
232 return (_flags & F_shininess) != 0;
240 INLINE
double EggMaterial::
241 get_shininess()
const {
242 if (has_shininess()) {
254 INLINE
void EggMaterial::
255 set_local(
bool local) {
265 INLINE
void EggMaterial::
275 INLINE
bool EggMaterial::
277 return (_flags & F_local) != 0;
285 INLINE
bool EggMaterial::
299 INLINE UniqueEggMaterials::
300 UniqueEggMaterials(
int eq) : _eq(eq) {
308 INLINE
bool UniqueEggMaterials::
LColor get_amb() const
It is legal to call this even if has_amb() returns false.
bool sorts_less_than(const EggMaterial &other, int eq) const
An ordering operator to compare two materials for sorting order.
This is the base class for all three-component vectors and points.
LColor get_spec() const
It is legal to call this even if has_spec() returns false.
LColor get_emit() const
It is legal to call this even if has_emit() returns false.
LColor get_diff() const
It is legal to call this even if has_diff() returns false.