TexMatrixAttrib

class TexMatrixAttrib

Bases: RenderAttrib

Applies a transform matrix to UV’s before they are rendered.

Inheritance diagram

digraph inheritanced191b9dc68 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "RenderAttrib" [URL="acron.core.RenderAttrib.html#acron.core.RenderAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderAttrib" [arrowsize=0.75,style=""]; "TexMatrixAttrib" [URL="acron.core.TexMatrixAttrib.html#acron.core.TexMatrixAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderAttrib" -> "TexMatrixAttrib" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
TexMatrixAttrib.add_stage()

Returns a new TexMatrixAttrib just like this one, with the indicated transform for the given stage. If this stage already exists, its transform is replaced.

static TexMatrixAttrib.get_class_slot()
static TexMatrixAttrib.get_class_type()
TexMatrixAttrib.get_geom_rendering()

Returns the union of the Geom::GeomRendering bits that will be required once this TexMatrixAttrib is applied to a geom which includes the indicated geom_rendering bits.

TexMatrixAttrib.get_mat()

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.

TexMatrixAttrib.get_num_stages()

Returns the number of stages that are represented by this attrib.

TexMatrixAttrib.get_override()

Returns the override value associated with the indicated stage.

TexMatrixAttrib.get_stage()

Returns the nth stage that is represented by this attrib. The TextureStages are in no particular order.

TexMatrixAttrib.get_transform()

Returns the transformation associated with the indicated texture stage, or identity matrix if nothing is associated with the indicated stage.

TexMatrixAttrib.has_stage()

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).

TexMatrixAttrib.is_empty()

Returns true if no stages are defined in the TexMatrixAttrib, false if at least one is.

static TexMatrixAttrib.make()

Constructs a TexMatrixAttrib that applies no stages at all.

Constructs a TexMatrixAttrib that applies the indicated matrix to the default texture stage. This interface is deprecated.

Deprecated: Use the constructor that takes a TextureStage instead.

Constructs a TexMatrixAttrib that applies the indicated transform to the named texture stage.

static TexMatrixAttrib.make_default()

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

TexMatrixAttrib.remove_stage()

Returns a new TexMatrixAttrib just like this one, with the indicated stage removed.