TexMatrixAttrib
-
class TexMatrixAttrib
Bases:
RenderAttribApplies a transform matrix to UV’s before they are rendered.
Inheritance diagram
-
ConstPointerTo<RenderAttrib> add_stage(TextureStage *stage, TransformState const *transform, int override = 0) const
Returns a new
TexMatrixAttribjust like this one, with the indicated transform for the given stage. If this stage already exists, its transform is replaced.
-
static int get_class_slot(void)
-
static TypeHandle get_class_type(void)
-
int get_geom_rendering(int geom_rendering) const
Returns the union of the Geom::GeomRendering bits that will be required once this
TexMatrixAttribis applied to a geom which includes the indicated geom_rendering bits.
-
LMatrix4 const &get_mat(TextureStage *stage) const
Returns the transformation matrix associated with the default texture stage.
Returns the transformation matrix associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.
-
int get_num_stages(void) const
Returns the number of stages that are represented by this attrib.
-
int get_override(TextureStage *stage) const
Returns the override value associated with the indicated stage.
-
TextureStage *get_stage(int n) const
Returns the nth stage that is represented by this attrib. The
TextureStagesare in no particular order.
-
ConstPointerTo<TransformState> get_transform(TextureStage *stage) const
Returns the transformation associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.
-
bool has_stage(TextureStage *stage) const
Returns true if there is a transform associated with the indicated stage, or false otherwise (in which case get_transform(stage) will return the identity transform).
-
bool is_empty(void) const
Returns true if no stages are defined in the
TexMatrixAttrib, false if at least one is.
-
static ConstPointerTo<RenderAttrib> make(void)
-
static ConstPointerTo<RenderAttrib> make(LMatrix4 const &mat)
-
static ConstPointerTo<RenderAttrib> make(TextureStage *stage, TransformState const *transform)
Constructs a
TexMatrixAttribthat applies no stages at all.Constructs a
TexMatrixAttribthat applies the indicated matrix to the default texture stage. This interface is deprecated.Deprecated: Use the constructor that takes a
TextureStageinstead.Constructs a
TexMatrixAttribthat applies the indicated transform to the named texture stage.
-
static ConstPointerTo<RenderAttrib> make_default(void)
Returns a
RenderAttribthat corresponds to whatever the standard default properties for render attributes of this type ought to be.
-
ConstPointerTo<RenderAttrib> remove_stage(TextureStage *stage) const
Returns a new
TexMatrixAttribjust like this one, with the indicated stage removed.
-
ConstPointerTo<RenderAttrib> add_stage(TextureStage *stage, TransformState const *transform, int override = 0) const
