TexMatrixAttrib
from panda3d.core import TexMatrixAttrib
- class TexMatrixAttrib
Bases:
RenderAttrib
Applies a transform matrix to UV’s before they are rendered.
Inheritance diagram
- __init__(*args, **kwargs)
- addStage()
C++ Interface: add_stage(TexMatrixAttrib self, TextureStage stage, const TransformState transform, int override)
- /**
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.
*/
- add_stage()
C++ Interface: add_stage(TexMatrixAttrib self, TextureStage stage, const TransformState transform, int override)
- /**
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.
*/
- class_slot = 27
- getClassSlot()
C++ Interface: get_class_slot()
- getClassType()
C++ Interface: get_class_type()
- getGeomRendering()
C++ Interface: get_geom_rendering(TexMatrixAttrib self, int 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.
*/
- getMat()
C++ Interface: get_mat(TexMatrixAttrib self) get_mat(TexMatrixAttrib self, TextureStage stage)
- getNumStages()
C++ Interface: get_num_stages(TexMatrixAttrib self)
- /**
Returns the number of stages that are represented by this attrib.
*/
- getOverride()
C++ Interface: get_override(TexMatrixAttrib self, TextureStage stage)
- /**
Returns the override value associated with the indicated stage.
*/
- getStage()
C++ Interface: get_stage(TexMatrixAttrib self, int n)
- /**
Returns the nth stage that is represented by this attrib. The
TextureStages are in no particular order.
*/
- getStages()
- getTransform()
C++ Interface: get_transform(TexMatrixAttrib self, TextureStage stage)
- /**
Returns the transformation associated with the indicated texture stage, or
identity matrix if nothing is associated with the indicated stage.
*/
- get_class_slot()
C++ Interface: get_class_slot()
- get_class_type()
C++ Interface: get_class_type()
- get_geom_rendering()
C++ Interface: get_geom_rendering(TexMatrixAttrib self, int 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.
*/
- get_mat()
C++ Interface: get_mat(TexMatrixAttrib self) get_mat(TexMatrixAttrib self, TextureStage stage)
- get_num_stages()
C++ Interface: get_num_stages(TexMatrixAttrib self)
- /**
Returns the number of stages that are represented by this attrib.
*/
- get_override()
C++ Interface: get_override(TexMatrixAttrib self, TextureStage stage)
- /**
Returns the override value associated with the indicated stage.
*/
- get_stage()
C++ Interface: get_stage(TexMatrixAttrib self, int n)
- /**
Returns the nth stage that is represented by this attrib. The
TextureStages are in no particular order.
*/
- get_stages()
- get_transform()
C++ Interface: get_transform(TexMatrixAttrib self, TextureStage stage)
- /**
Returns the transformation associated with the indicated texture stage, or
identity matrix if nothing is associated with the indicated stage.
*/
- hasStage()
C++ Interface: has_stage(TexMatrixAttrib self, TextureStage 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).
*/
- has_stage()
C++ Interface: has_stage(TexMatrixAttrib self, TextureStage 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).
*/
- isEmpty()
C++ Interface: is_empty(TexMatrixAttrib self)
- /**
Returns true if no stages are defined in the TexMatrixAttrib, false if at
least one is.
*/
- is_empty()
C++ Interface: is_empty(TexMatrixAttrib self)
- /**
Returns true if no stages are defined in the TexMatrixAttrib, false if at
least one is.
*/
- make()
C++ Interface: make() make(const LMatrix4f mat) make(TextureStage stage, const TransformState transform)
- /**
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.
*/
- makeDefault()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/
- make_default()
C++ Interface: make_default()
- /**
Returns a RenderAttrib that corresponds to whatever the standard default
properties for render attributes of this type ought to be.
*/