17 INLINE TexMatrixAttrib::
24 INLINE TexMatrixAttrib::
35 Stages::const_iterator si;
36 si = _stages.find(StageNode(stage));
37 if (si != _stages.
end()) {
38 return (*si)._override;
40 nassert_raise(
"Specified TextureStage not included in attrib");
51 if ((geom_rendering & Geom::GR_point_sprite) != 0) {
53 geom_rendering |= Geom::GR_point_sprite_tex_matrix;
57 return geom_rendering;
63 INLINE TexMatrixAttrib::StageNode::
76 INLINE
bool TexMatrixAttrib::StageNode::
77 operator < (
const TexMatrixAttrib::StageNode &other)
const {
78 if (_stage != other._stage) {
79 return _stage < other._stage;
81 if (_transform != other._transform) {
82 return _transform < other._transform;
84 return _override < other._override;
91 INLINE
bool TexMatrixAttrib::CompareTextureStagePointer::
92 operator () (
const TexMatrixAttrib::StageNode &a,
93 const TexMatrixAttrib::StageNode &b)
const {
94 return a._stage < b._stage;
iterator_0 end()
Returns the iterator that marks the end of the ordered vector.
int get_override(TextureStage *stage) const
Returns the override value associated with the indicated stage.
Applies a transform matrix to UV's before they are rendered.
Defines the properties of a named stage of the multitexture pipeline.
int get_geom_rendering(int geom_rendering) const
Returns the union of the Geom::GeomRendering bits that will be required once this TexMatrixAttrib is ...