#include <material.h>
Inheritance diagram for Material:
Public Member Functions | |
virtual void | write_datagram (BamWriter *manager, Datagram &me) |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
void | register_with_read_factory () |
TypeHandle | get_class_type () |
void | init_type () |
Protected Member Functions | |
void | fillin (DatagramIterator &scan, BamReader *manager) |
Static Protected Member Functions | |
TypedWritable * | make_Material (const FactoryParams ¶ms) |
Private Types | |
enum | Flags { F_ambient = 0x001, F_diffuse = 0x002, F_specular = 0x004, F_emission = 0x008, F_local = 0x010, F_twoside = 0x020 } |
Private Member Functions | |
INLINE | Material (const Material ©) |
void | operator= (const Material ©) |
INLINE | ~Material () |
INLINE bool | has_ambient () const |
INLINE const Colorf & | get_ambient () const |
void | set_ambient (const Colorf &color) |
INLINE void | clear_ambient () |
INLINE bool | has_diffuse () const |
INLINE const Colorf & | get_diffuse () const |
void | set_diffuse (const Colorf &color) |
INLINE void | clear_diffuse () |
INLINE bool | has_specular () const |
INLINE const Colorf & | get_specular () const |
void | set_specular (const Colorf &color) |
INLINE void | clear_specular () |
INLINE bool | has_emission () const |
INLINE const Colorf & | get_emission () const |
void | set_emission (const Colorf &color) |
INLINE void | clear_emission () |
INLINE float | get_shininess () const |
INLINE void | set_shininess (float shininess) |
INLINE bool | get_local () const |
INLINE void | set_local (bool local) |
INLINE bool | get_twoside () const |
INLINE void | set_twoside (bool twoside) |
INLINE bool | operator== (const Material &other) const |
INLINE bool | operator!= (const Material &other) const |
INLINE bool | operator< (const Material &other) const |
int | compare_to (const Material &other) const |
void | output (ostream &out) const |
void | write (ostream &out, int indent) const |
Private Attributes | |
PUBLISHED | __pad0__: INLINE Material() |
Colorf | _ambient |
Colorf | _diffuse |
Colorf | _specular |
Colorf | _emission |
float | _shininess |
int | _flags |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 86 of file material.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 137 of file material.cxx. References _flags, get_ambient(), get_diffuse(), get_emission(), get_shininess(), get_specular(), has_ambient(), has_diffuse(), has_emission(), and has_specular(). |
|
Reimplemented from TypedWritable. Definition at line 262 of file material.cxx. References _ambient, _diffuse, _emission, _flags, _shininess, _specular, DatagramIterator::get_float32(), and DatagramIterator::get_int32(). Referenced by make_Material(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 116 of file material.h. References ReferenceCount::get_class_type(), and TypedWritableReferenceCount::init_type(). |
|
|
Reimplemented from ReferenceCount. Definition at line 105 of file material.h. Referenced by register_with_read_factory(). |
|
|
|
Referenced by GLGraphicsStateGuardian::apply_material(), CRGraphicsStateGuardian::apply_material(), output(), and write(). |
|
|
|
Referenced by GLGraphicsStateGuardian::apply_material(), CRGraphicsStateGuardian::apply_material(), output(), and write(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 113 of file material.h. References ReferenceCount::get_class_type(). |
|
Referenced by GLGraphicsStateGuardian::apply_material(), CRGraphicsStateGuardian::apply_material(), compare_to(), output(), and write(). |
|
Referenced by GLGraphicsStateGuardian::apply_material(), CRGraphicsStateGuardian::apply_material(), compare_to(), output(), and write(). |
|
Referenced by compare_to(), output(), and write(). |
|
Referenced by compare_to(), output(), and write(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 108 of file material.h. References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type(). Referenced by ConfigureFn(). |
|
Definition at line 243 of file material.cxx. References fillin(), params, and parse_params(). Referenced by register_with_read_factory(). |
|
|
|
|
|
Definition at line 41 of file material.cxx. References _ambient, _diffuse, _emission, _flags, _shininess, and _specular. |
|
|
|
Definition at line 166 of file material.cxx. References get_ambient(), get_diffuse(), get_emission(), get_local(), get_shininess(), get_specular(), get_twoside(), has_ambient(), has_diffuse(), has_emission(), and has_specular(). Referenced by operator<<(). |
|
Definition at line 217 of file material.cxx. References get_class_type(), BamReader::get_factory(), make_Material(), and Factory< TypedWritable >::register_factory(). Referenced by ConfigureFn(). |
|
Definition at line 63 of file material.cxx. |
|
Definition at line 83 of file material.cxx. |
|
Definition at line 122 of file material.cxx. References _emission, _flags, and F_emission. |
|
|
|
|
|
Definition at line 102 of file material.cxx. References _flags, _specular, and F_specular. |
|
|
|
Definition at line 191 of file material.cxx. References get_ambient(), get_diffuse(), get_emission(), get_local(), get_shininess(), get_specular(), get_twoside(), has_ambient(), has_diffuse(), has_emission(), has_specular(), and indent(). |
|
Implements TypedWritableReferenceCount. Definition at line 228 of file material.cxx. References _ambient, _diffuse, _emission, _flags, _shininess, _specular, Datagram::add_float32(), and Datagram::add_int32(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 37 of file material.h. |
|
Definition at line 80 of file material.h. Referenced by fillin(), operator=(), set_ambient(), and write_datagram(). |
|
Definition at line 81 of file material.h. Referenced by fillin(), operator=(), set_diffuse(), and write_datagram(). |
|
Definition at line 83 of file material.h. Referenced by fillin(), operator=(), set_emission(), and write_datagram(). |
|
Definition at line 94 of file material.h. Referenced by compare_to(), fillin(), operator=(), set_ambient(), set_diffuse(), set_emission(), set_specular(), and write_datagram(). |
|
Definition at line 84 of file material.h. Referenced by fillin(), operator=(), and write_datagram(). |
|
Definition at line 82 of file material.h. Referenced by fillin(), operator=(), set_specular(), and write_datagram(). |
|
Reimplemented from TypedWritableReferenceCount. Definition at line 33 of file material.cxx. |