19 _num_point_sprites(0),
20 _point_geom_rendering(0),
30 _stages(copy._stages),
31 _no_texcoords(copy._no_texcoords),
32 _num_point_sprites(copy._num_point_sprites),
33 _point_geom_rendering(copy._point_geom_rendering),
34 _geom_rendering(copy._geom_rendering)
45 if ((geom_rendering & Geom::GR_point) != 0) {
46 geom_rendering |= _point_geom_rendering;
49 return geom_rendering | _geom_rendering;
55INLINE TexGenAttrib::ModeDef::
64INLINE
int TexGenAttrib::ModeDef::
65compare_to(
const TexGenAttrib::ModeDef &other)
const {
66 if (_mode != other._mode) {
67 return (
int)_mode < (int)other._mode ? -1 : 1;
73 compare = strcmp(_source_name.c_str(), other._source_name.c_str());
77 compare = _constant_value.compare_to(other._constant_value);
int compare_to(const NodePath &other) const
Returns a number less than zero if this NodePath sorts before the other one, greater than zero if it ...
Computes texture coordinates for geometry automatically based on vertex position and/or normal.
int get_geom_rendering(int geom_rendering) const
Returns the union of the Geom::GeomRendering bits that will be required once this TexGenAttrib is app...