# EggTexture¶

from panda3d.egg import EggTexture

class EggTexture

Defines a texture map that may be applied to geometry.

Inheritance diagram

enum CombineChannel
enumerator CC_rgb = 0
enumerator CC_alpha = 1
enumerator CC_num_channels = 2
enum CombineIndex
enumerator CI_num_indices = 3
enum CombineMode
enumerator CM_unspecified = 0
enumerator CM_replace = 1
enumerator CM_modulate = 2
enumerator CM_add = 3
enumerator CM_add_signed = 4
enumerator CM_interpolate = 5
enumerator CM_subtract = 6
enumerator CM_dot3_rgb = 7
enumerator CM_dot3_rgba = 8
enum CombineOperand
enumerator CO_unspecified = 0
enumerator CO_src_color = 1
enumerator CO_one_minus_src_color = 2
enumerator CO_src_alpha = 3
enumerator CO_one_minus_src_alpha = 4
enum CombineSource
enumerator CS_unspecified = 0
enumerator CS_texture = 1
enumerator CS_constant = 2
enumerator CS_primary_color = 3
enumerator CS_previous = 4
enumerator CS_constant_color_scale = 5
enumerator CS_last_saved_result = 6
enum CompressionMode
enumerator CM_default = 0
enumerator CM_off = 1
enumerator CM_on = 2
enumerator CM_fxt1 = 3
enumerator CM_dxt1 = 4
enumerator CM_dxt2 = 5
enumerator CM_dxt3 = 6
enumerator CM_dxt4 = 7
enumerator CM_dxt5 = 8
enum EnvType
enumerator ET_unspecified = 0
enumerator ET_modulate = 1
enumerator ET_decal = 2
enumerator ET_blend = 3
enumerator ET_replace = 4
enumerator ET_add = 5
enumerator ET_blend_color_scale = 6
enumerator ET_modulate_glow = 7
enumerator ET_modulate_gloss = 8
enumerator ET_normal = 9
enumerator ET_normal_height = 10
enumerator ET_glow = 11
enumerator ET_gloss = 12
enumerator ET_height = 13
enumerator ET_selector = 14
enumerator ET_normal_gloss = 15
enum Equivalence
enumerator E_basename = 1
enumerator E_extension = 2
enumerator E_dirname = 4
enumerator E_complete_filename = 7
enumerator E_transform = 8
enumerator E_attributes = 16
enumerator E_tref_name = 32
enum FilterType
enumerator FT_unspecified = 0

Note that these type values match up, name-for-name, with a similar enumerated type in Panda’s Texture object. However, they do not match up numerically. You must convert between them using a switch statement.

enumerator FT_nearest = 1

Mag Filter and Min Filter

enumerator FT_linear = 2
enumerator FT_nearest_mipmap_nearest = 3

“mipmap point”

enumerator FT_linear_mipmap_nearest = 4

“mipmap linear”

enumerator FT_nearest_mipmap_linear = 5

“mipmap bilinear”

enumerator FT_linear_mipmap_linear = 6

“mipmap trilinear”

enum Format
enumerator F_unspecified = 0
enumerator F_rgba = 1
enumerator F_rgbm = 2
enumerator F_rgba12 = 3
enumerator F_rgba8 = 4
enumerator F_rgba4 = 5
enumerator F_rgba5 = 6
enumerator F_rgb = 7
enumerator F_rgb12 = 8
enumerator F_rgb8 = 9
enumerator F_rgb5 = 10
enumerator F_rgb332 = 11
enumerator F_red = 12
enumerator F_green = 13
enumerator F_blue = 14
enumerator F_alpha = 15
enumerator F_luminance = 16
enumerator F_luminance_alpha = 17
enumerator F_luminance_alphamask = 18
enumerator F_srgb = 19

Only for compatibility with .bam, use is discouraged!

enumerator F_srgb_alpha = 20

Only for compatibility with .bam, use is discouraged!

enum QualityLevel
enumerator QL_unspecified = 0
enumerator QL_default = 1
enumerator QL_fastest = 2
enumerator QL_normal = 3
enumerator QL_best = 4
enum TexGen
enumerator TG_unspecified = 0
enumerator TG_eye_sphere_map = 1
enumerator TG_world_cube_map = 2
enumerator TG_eye_cube_map = 3
enumerator TG_world_normal = 4
enumerator TG_eye_normal = 5
enumerator TG_world_position = 6
enumerator TG_eye_position = 7
enumerator TG_point_sprite = 8
enum TextureType
enumerator TT_unspecified = 0
enumerator TT_1d_texture = 1
enumerator TT_2d_texture = 2
enumerator TT_3d_texture = 3
enumerator TT_cube_map = 4
enum WrapMode
enumerator WM_unspecified = 0
enumerator WM_clamp = 1
enumerator WM_repeat = 2
enumerator WM_mirror = 3
enumerator WM_mirror_once = 4
enumerator WM_border_color = 5
__init__(copy: EggTexture)
__init__(tref_name: str, filename: panda3d.core.Filename)
affectsPolygonAlpha()bool

Returns true if this texture’s environment type or combine mode allows the texture to have an effect on the polygon’s alpha values, false otherwise.

property alpha_file_channelint
Getter

Returns the particular channel that has been specified for the alpha-file image, or 0 if no channel has been specified. See setAlphaFileChannel().

Setter

If a separate alpha-file is specified, this indicates which channel number should be extracted from this file to derive the alpha channel for the final image. The default is 0, which means the grayscale combination of r, g, b. Otherwise, this should be the 1-based channel number, for instance 1, 2, or 3 for r, g, or b, respectively, or 4 for the alpha channel of a four-component image.

property alpha_filename → Filename
Getter

Returns the separate file assigned for the alpha channel. It is an error to call this unless hasAlphaFilename() returns true. See setAlphaFilename().

Setter

Specifies a separate file that will be loaded in with the 1- or 3-component texture and applied as the alpha channel. This is useful when loading textures from file formats that do not support alpha, for instance jpg.

property alpha_fullpath → Filename
Getter

Returns the full pathname to the alpha file, if it is known; otherwise, returns the same thing as getAlphaFilename().

This function simply returns whatever was set by the last call to setAlphaFullpath(). This string is not written to the egg file; its main purpose is to record the full path to the alpha filename if it is known, for egg structures that are generated in-memory and then immediately converted to a scene graph.

Setter

Records the full pathname to the file, for the benefit of getAlphaFullpath().

property alpha_scaleint
Getter

Returns the alpha_scale value that has been specified for the texture, or 1 if no alpha_scale value has been specified.

Setter

Sets an additional factor that will scale the alpha component after the texture has been applied. This is used only when a combine mode is in effect.

The only legal values are 1, 2, or 4.

property anisotropic_degreeint
Getter

Returns the anisotropic filtering degree that has been specified for this texture, or 0 if nothing has been specified.

Setter

Sets the degree of anisotropic filtering for this texture. 1 is off; higher levels indicate filtering in effect.

assign(copy: EggTexture)EggTexture
property border_color → LColor
Getter

Returns the border color if one has been specified, or (0, 0, 0, 1) otherwise.

Setter

clearAlphaFileChannel()None

Removes the specification of a particular channel to use from the alpha- file image.

clearAlphaFilename()None
clearAlphaScale()None

Removes the alpha_scale from the texture and restores it to the default value of 1.

clearAnisotropicDegree()None

Removes the specification of anisotropic filtering from the texture.

clearBorderColor()None
clearColor()None
clearLodBias()None

Removes the specification of a maximum mipmap level from the texture.

clearMaxLod()None

Removes the specification of a maximum mipmap level from the texture.

clearMinLod()None

Removes the specification of a minimum mipmap level from the texture.

clearMultitexture()None

Resets the multitexture flags set by multitextureOver(). After this call, get_multitexture() will return false, and getMultitextureSort() will return 0.

clearNumViews()None

Removes the specification of the number of views for a 3-D multiview texture.

clearPriority()None

Removes the specification of multitexture priority from the texture. The default priority value is 0.

clearRgbScale()None

Removes the rgb_scale from the texture and restores it to the default value of 1.

clearStageName()None

Removes the named TextureStage specification.

clearUvName()None

Removes the restriction to a particular named set of texture coordinates and restores the texture to using the default texture coordinates.

property color → LColor
Getter

Returns the blend color if one has been specified, or (0, 0, 0, 1) otherwise.

Setter

property compression_mode → CompressionMode

Getter Setter

determineWrapU() → WrapMode

Determines the appropriate wrap in the U direction. This is different from getWrapU() in that if the U wrap is unspecified, it returns the overall wrap value.

determineWrapV() → WrapMode

Determines the appropriate wrap in the V direction. This is different from getWrapV() in that if the V wrap is unspecified, it returns the overall wrap value.

determineWrapW() → WrapMode

Determines the appropriate wrap in the W direction. This is different from getWrapW() in that if the W wrap is unspecified, it returns the overall wrap value.

property env_type → EnvType

Getter Setter

property format → Format

Getter Setter

getAlphaFileChannel()int

Returns the particular channel that has been specified for the alpha-file image, or 0 if no channel has been specified. See setAlphaFileChannel().

getAlphaFilename()panda3d.core.Filename

Returns the separate file assigned for the alpha channel. It is an error to call this unless hasAlphaFilename() returns true. See setAlphaFilename().

getAlphaFullpath()panda3d.core.Filename

Returns the full pathname to the alpha file, if it is known; otherwise, returns the same thing as getAlphaFilename().

This function simply returns whatever was set by the last call to setAlphaFullpath(). This string is not written to the egg file; its main purpose is to record the full path to the alpha filename if it is known, for egg structures that are generated in-memory and then immediately converted to a scene graph.

getAlphaScale()int

Returns the alpha_scale value that has been specified for the texture, or 1 if no alpha_scale value has been specified.

getAnisotropicDegree()int

Returns the anisotropic filtering degree that has been specified for this texture, or 0 if nothing has been specified.

getBorderColor()panda3d.core.LColor

Returns the border color if one has been specified, or (0, 0, 0, 1) otherwise.

static getClassType()panda3d.core.TypeHandle
getColor()panda3d.core.LColor

Returns the blend color if one has been specified, or (0, 0, 0, 1) otherwise.

getCombineMode(channel: CombineChannel) → CombineMode
getCombineOperand(channel: CombineChannel, n: int) → CombineOperand
getCombineSource(channel: CombineChannel, n: int) → CombineSource
getCompressionMode() → CompressionMode
getEnvType() → EnvType
getFormat() → Format
getLodBias()float

Returns the maximum mipmap level that has been specified for this texture.

getMagfilter() → FilterType
getMaxLod()float

Returns the maximum mipmap level that has been specified for this texture.

getMinLod()float

Returns the minimum mipmap level that has been specified for this texture.

getMinfilter() → FilterType
getMultitextureSort()int

Returns an integer that represents the depth to which this texture is layered on all other textures in the egg file. In general, if texture A is layered over texture B, then sort(A) > sort(B). If texture A is never layered over any other texture, then sort(A) == 0. More than that is difficult to guarantee.

getMultiview()bool

Returns the current setting of the multiview flag. See setMultiview().

getNumViews()int

Returns the specified number of views specified for the 3-D multiview texture. See setNumViews().

getPriority()int

Returns the multitexture importance value that has been specified for the texture, or 0 if no priority value has been specified.

getQualityLevel() → QualityLevel
getReadMipmaps()bool

Returns the current setting of the read_mipmaps flag. See setReadMipmaps().

getRgbScale()int

Returns the rgb_scale value that has been specified for the texture, or 1 if no rgb_scale value has been specified.

getSavedResult()bool

Returns the current setting of the saved_result flag. See setSavedResult().

getStageName()str

Returns the stage name that has been specified for this texture, or the tref name if no texture stage has explicitly been specified.

getTexGen() → TexGen
getTextureType() → TextureType
getUvName()str

Returns the texcoord name that has been specified for this texture, or the empty string if no texcoord name has explicitly been specified.

getWrapMode() → WrapMode
getWrapU() → WrapMode

Returns the amount specified for U wrap. This may be unspecified, even if there is an overall wrap value.

getWrapV() → WrapMode

Returns the amount specified for V wrap. This may be unspecified, even if there is an overall wrap value.

getWrapW() → WrapMode

Returns the amount specified for W wrap. This may be unspecified, even if there is an overall wrap value.

hasAlphaChannel(num_components: int)bool

Given the number of color components (channels) in the image file as actually read from the disk, return true if this texture seems to have an alpha channel or not. This depends on the EggTexture’s format as well as the number of channels.

hasAlphaFileChannel()bool

Returns true if a particular channel has been specified for the alpha-file image, false otherwise.

hasAlphaFilename()bool

Returns true if a separate file for the alpha component has been applied, false otherwise. See setAlphaFilename().

hasAlphaScale()bool

Returns true if an alpha_scale has been specified for the texture, false otherwise.

hasAnisotropicDegree()bool

Returns true if a value for the anisotropic filtering degree has been specified for this texture, false otherwise.

hasBorderColor()bool

Returns true if a border color has been specified for the texture.

hasColor()bool

Returns true if a blend color has been specified for the texture.

hasLodBias()bool

Returns true if a value for the maximum mipmap level has been specified for this texture, false otherwise.

hasMaxLod()bool

Returns true if a value for the maximum mipmap level has been specified for this texture, false otherwise.

hasMinLod()bool

Returns true if a value for the minimum mipmap level has been specified for this texture, false otherwise.

hasNumViews()bool

Returns true if the number of views has been specified for the 3-D multiview texture, false otherwise.

hasPriority()bool

Returns true if a priority value for multitexture importance has been specified for the texture, false otherwise.

hasRgbScale()bool

Returns true if an rgb_scale has been specified for the texture, false otherwise.

hasStageName()bool

Returns true if a stage name has been explicitly specified for this texture, false otherwise.

hasUvName()bool

Returns true if a texcoord name has been explicitly specified for this texture, false otherwise.

isEquivalentTo(other: EggTexture, eq: int)bool

Returns true if the two textures are equivalent in all relevant properties (according to eq), false otherwise.

The Equivalence parameter, eq, should be set to the bitwise OR of the following properties, according to what you consider relevant:

EggTexture::E_basename: The basename part of the texture filename, without the directory prefix or the filename extension.

EggTexture::E_extension: The extension part of the texture filename.

EggTexture::E_dirname: The directory prefix of the texture filename.

EggTexture::E_complete_filename: The union of the above three; that is, the complete filename, with directory, basename, and extension.

EggTexture::E_transform: The texture matrix.

EggTexture::E_attributes: All remaining texture attributes (mode, mipmap, etc.) except TRef name.

EggTexture::E_tref_name: The TRef name.

property lod_biasfloat
Getter

Returns the maximum mipmap level that has been specified for this texture.

Setter

Sets the mipmap level bias that is added to the mipmap level to be sampled.

property magfilter → FilterType

Getter Setter

property max_lodfloat
Getter

Returns the maximum mipmap level that has been specified for this texture.

Setter

Sets the maximum mipmap level that may be sampled.

property min_lodfloat
Getter

Returns the minimum mipmap level that has been specified for this texture.

Setter

Sets the minimum mipmap level that may be sampled.

property minfilter → FilterType

Getter Setter

multitextureOver(other: EggTexture)bool

Indicates that this texture should be layered on top of the other texture. This will guarantee that this->get_multitexture_sort() > other->get_multitexture_sort(), at least until clearMultitexture() is called on either one.

The return value is true if successful, or false if there is a failure because the other texture was already layered on top of this one (or there is a three- or more-way cycle).

property multitexture_sortint

Returns an integer that represents the depth to which this texture is layered on all other textures in the egg file. In general, if texture A is layered over texture B, then sort(A) > sort(B). If texture A is never layered over any other texture, then sort(A) == 0. More than that is difficult to guarantee.

property multiviewbool
Getter

Returns the current setting of the multiview flag. See setMultiview().

Setter

Sets the multiview flag.

If multiview is true, the filename should contain a hash mark (‘#’), which will be filled in with the view number; and a multiview texture will be defined with a series of images, one for each view.

A multiview texture is most often used for stereo textures, but other uses are also possible, such as for texture animation.

property num_viewsint
Getter

Returns the specified number of views specified for the 3-D multiview texture. See setNumViews().

Setter

When loading a 3-D multiview texture, this parameter is necessary to specify how many views will be expected. The z size is determined implicitly from the number of images loaded.

property priorityint
Getter

Returns the multitexture importance value that has been specified for the texture, or 0 if no priority value has been specified.

Setter

Sets the importance of this texture with respect to other textures also applied on the same geometry. This is only meaningful in the presence of multitexturing.

property quality_level → QualityLevel

Getter Setter

property read_mipmapsbool
Getter

Returns the current setting of the read_mipmaps flag. See setReadMipmaps().

Setter

If read_mipmaps is true, the filename should contain a hash mark (‘#’), which will be filled in with the mipmap level number; and the texture will be defined with a series of images, one for each mipmap level.

If the filename is of a type that already requires a hash mark, such as a cube map or a 3-d texture, then the filename should now require two hash marks, and the first one indicates the mipmap level number, while the second indicates the face number or 3-d level number.

property rgb_scaleint
Getter

Returns the rgb_scale value that has been specified for the texture, or 1 if no rgb_scale value has been specified.

Setter

Sets an additional factor that will scale all three r, g, b components after the texture has been applied. This is used only when a combine mode is in effect.

The only legal values are 1, 2, or 4.

property saved_resultbool
Getter

Returns the current setting of the saved_result flag. See setSavedResult().

Setter

Sets the saved_result flag. When this is true, the output of this stage is not part of the normal pipeline–that is, it will not be supplied as the “previous” source for the next texture stage–but it will instead be supplied as the “last_saved_result” source for any future stages, until the next TextureStage with a saved_result set true is encountered.

This can be used to reuse the results of this texture stage as input to more than one stage later in the pipeline.

The last texture in the pipeline (the one with the highest sort value) should not have this flag set.

setAlphaFileChannel(alpha_file_channel: int)None

If a separate alpha-file is specified, this indicates which channel number should be extracted from this file to derive the alpha channel for the final image. The default is 0, which means the grayscale combination of r, g, b. Otherwise, this should be the 1-based channel number, for instance 1, 2, or 3 for r, g, or b, respectively, or 4 for the alpha channel of a four-component image.

setAlphaFilename(filename: panda3d.core.Filename)None

Specifies a separate file that will be loaded in with the 1- or 3-component texture and applied as the alpha channel. This is useful when loading textures from file formats that do not support alpha, for instance jpg.

setAlphaFullpath(fullpath: panda3d.core.Filename)None

Records the full pathname to the file, for the benefit of getAlphaFullpath().

setAlphaScale(alpha_scale: int)None

Sets an additional factor that will scale the alpha component after the texture has been applied. This is used only when a combine mode is in effect.

The only legal values are 1, 2, or 4.

setAnisotropicDegree(anisotropic_degree: int)None

Sets the degree of anisotropic filtering for this texture. 1 is off; higher levels indicate filtering in effect.

setBorderColor(border_color: panda3d.core.LColor)None
setColor(color: panda3d.core.LColor)None
setCombineMode(channel: CombineChannel, cm: CombineMode)None
setCombineOperand(channel: CombineChannel, n: int, co: CombineOperand)None
setCombineSource(channel: CombineChannel, n: int, cs: CombineSource)None
setCompressionMode(mode: CompressionMode)None
setEnvType(type: EnvType)None
setFormat(format: Format)None
setLodBias(lod_bias: float)None

Sets the mipmap level bias that is added to the mipmap level to be sampled.

setMagfilter(type: FilterType)None
setMaxLod(max_lod: float)None

Sets the maximum mipmap level that may be sampled.

setMinLod(min_lod: float)None

Sets the minimum mipmap level that may be sampled.

setMinfilter(type: FilterType)None
setMultiview(multiview: bool)None

Sets the multiview flag.

If multiview is true, the filename should contain a hash mark (‘#’), which will be filled in with the view number; and a multiview texture will be defined with a series of images, one for each view.

A multiview texture is most often used for stereo textures, but other uses are also possible, such as for texture animation.

setNumViews(num_views: int)None

When loading a 3-D multiview texture, this parameter is necessary to specify how many views will be expected. The z size is determined implicitly from the number of images loaded.

setPriority(priority: int)None

Sets the importance of this texture with respect to other textures also applied on the same geometry. This is only meaningful in the presence of multitexturing.

setQualityLevel(quality_level: QualityLevel)None
setReadMipmaps(read_mipmaps: bool)None

If read_mipmaps is true, the filename should contain a hash mark (‘#’), which will be filled in with the mipmap level number; and the texture will be defined with a series of images, one for each mipmap level.

If the filename is of a type that already requires a hash mark, such as a cube map or a 3-d texture, then the filename should now require two hash marks, and the first one indicates the mipmap level number, while the second indicates the face number or 3-d level number.

setRgbScale(rgb_scale: int)None

Sets an additional factor that will scale all three r, g, b components after the texture has been applied. This is used only when a combine mode is in effect.

The only legal values are 1, 2, or 4.

setSavedResult(saved_result: bool)None

Sets the saved_result flag. When this is true, the output of this stage is not part of the normal pipeline–that is, it will not be supplied as the “previous” source for the next texture stage–but it will instead be supplied as the “last_saved_result” source for any future stages, until the next TextureStage with a saved_result set true is encountered.

This can be used to reuse the results of this texture stage as input to more than one stage later in the pipeline.

The last texture in the pipeline (the one with the highest sort value) should not have this flag set.

setStageName(stage_name: str)None

Specifies the particular TextureStage this texture will be rendered on by name. If this is omitted, the texture will be rendered on the default TextureStage, unless some other stage-specific property is specificied, in which case the texture will be rendered on a TextureStage with the same name as the tref. This is in support of multitexturing.

Each different TextureStage in the world must be uniquely named.

setTexGen(tex_gen: TexGen)None
setTextureType(texture_type: TextureType)None
setUvName(uv_name: str)None

Specifies the named set of texture coordinates that this texture will use when it is applied to geometry. Geometry may have multiple sets of texture coordinates defined, by name.

If this is not specified for a particular texture, the default set of texture coordinates will be used.

setWrapMode(mode: WrapMode)None
setWrapU(mode: WrapMode)None
setWrapV(mode: WrapMode)None
setWrapW(mode: WrapMode)None
sortsLessThan(other: EggTexture, eq: int)bool

An ordering operator to compare two textures for sorting order. This imposes an arbitrary ordering useful to identify unique textures, according to the indicated Equivalence factor. See isEquivalentTo().

property stage_name → string
Getter

Returns the stage name that has been specified for this texture, or the tref name if no texture stage has explicitly been specified.

Setter

Specifies the particular TextureStage this texture will be rendered on by name. If this is omitted, the texture will be rendered on the default TextureStage, unless some other stage-specific property is specificied, in which case the texture will be rendered on a TextureStage with the same name as the tref. This is in support of multitexturing.

Each different TextureStage in the world must be uniquely named.

static stringCombineMode(string: str) → CombineMode

Returns the EggTextureCombineMode value associated with the given string representation, or CM_unspecified if the string does not match any known EggTextureCombineMode value.

static stringCombineOperand(string: str) → CombineOperand

Returns the EggTextureCombineOperand value associated with the given string representation, or CO_unspecified if the string does not match any known EggTextureCombineOperand value.

static stringCombineSource(string: str) → CombineSource

Returns the EggTextureCombineSource value associated with the given string representation, or CS_unspecified if the string does not match any known EggTextureCombineSource value.

static stringCompressionMode(string: str) → CompressionMode

Returns the EggTextureCompressionMode value associated with the given string representation, or CM_default if the string does not match any known EggTextureCompressionMode value.

static stringEnvType(string: str) → EnvType

Returns the EggTextureEnvType value associated with the given string representation, or ET_unspecified if the string does not match any known EggTextureEnvType value.

static stringFilterType(string: str) → FilterType

Returns the EggTextureFilterType value associated with the given string representation, or FT_unspecified if the string does not match any known EggTextureFilterType value.

static stringFormat(string: str) → Format

Returns the Format value associated with the given string representation, or F_unspecified if the string does not match any known Format value.

static stringQualityLevel(string: str) → QualityLevel

Returns the EggTextureTexGen value associated with the given string representation, or ET_unspecified if the string does not match any known EggTextureTexGen value.

static stringTexGen(string: str) → TexGen

Returns the EggTextureTexGen value associated with the given string representation, or ET_unspecified if the string does not match any known EggTextureTexGen value.

static stringTextureType(string: str) → TextureType

Returns the Texture_ype value associated with the given string representation, or TT_unspecified if the string does not match any known EggTextureTextureType value.

static stringWrapMode(string: str) → WrapMode

Returns the EggTextureWrapMode value associated with the given string representation, or WM_unspecified if the string does not match any known EggTextureWrapMode value.

property tex_gen → TexGen

Getter Setter

property texture_type → TextureType

Getter Setter

property uv_name → string
Getter

Returns the texcoord name that has been specified for this texture, or the empty string if no texcoord name has explicitly been specified.

Setter

Specifies the named set of texture coordinates that this texture will use when it is applied to geometry. Geometry may have multiple sets of texture coordinates defined, by name.

If this is not specified for a particular texture, the default set of texture coordinates will be used.

property wrap_mode → WrapMode

Getter Setter

property wrap_u → WrapMode
Getter

Returns the amount specified for U wrap. This may be unspecified, even if there is an overall wrap value.

Setter

property wrap_v → WrapMode
Getter

Returns the amount specified for V wrap. This may be unspecified, even if there is an overall wrap value.

Setter

property wrap_w → WrapMode
Getter

Returns the amount specified for W wrap. This may be unspecified, even if there is an overall wrap value.

Setter

write(out: panda3d.core.ostream, indent_level: int)None

Writes the texture definition to the indicated output stream in Egg format.