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;
55 INLINE TexGenAttrib::ModeDef::
64 INLINE
int TexGenAttrib::ModeDef::
65 compare_to(
const TexGenAttrib::ModeDef &other)
const {
66 if (_mode != other._mode) {
67 return (
int)_mode < (int)other._mode ? -1 : 1;
69 int compare = _light.compare_to(other._light);
73 compare = strcmp(_source_name.c_str(), other._source_name.c_str());
77 compare = _constant_value.compare_to(other._constant_value);
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...
Computes texture coordinates for geometry automatically based on vertex position and/or normal.