EggTexture
from panda3d.egg import EggTexture
- class EggTexture
Bases:
EggFilenameNode
,EggRenderMode
,EggTransform
Defines a texture map that may be applied to geometry.
Inheritance diagram
- CCAlpha = 1
- CCNumChannels = 2
- CCRgb = 0
- CC_alpha = 1
- CC_num_channels = 2
- CC_rgb = 0
- CINumIndices = 3
- CI_num_indices = 3
- CMAdd = 3
- CMAddSigned = 4
- CMDefault = 0
- CMDot3Rgb = 7
- CMDot3Rgba = 8
- CMDxt1 = 4
- CMDxt2 = 5
- CMDxt3 = 6
- CMDxt4 = 7
- CMDxt5 = 8
- CMFxt1 = 3
- CMInterpolate = 5
- CMModulate = 2
- CMOff = 1
- CMOn = 2
- CMReplace = 1
- CMSubtract = 6
- CMUnspecified = 0
- CM_add = 3
- CM_add_signed = 4
- CM_default = 0
- CM_dot3_rgb = 7
- CM_dot3_rgba = 8
- CM_dxt1 = 4
- CM_dxt2 = 5
- CM_dxt3 = 6
- CM_dxt4 = 7
- CM_dxt5 = 8
- CM_fxt1 = 3
- CM_interpolate = 5
- CM_modulate = 2
- CM_off = 1
- CM_on = 2
- CM_replace = 1
- CM_subtract = 6
- CM_unspecified = 0
- COOneMinusSrcAlpha = 4
- COOneMinusSrcColor = 2
- COSrcAlpha = 3
- COSrcColor = 1
- COUnspecified = 0
- CO_one_minus_src_alpha = 4
- CO_one_minus_src_color = 2
- CO_src_alpha = 3
- CO_src_color = 1
- CO_unspecified = 0
- CSConstant = 2
- CSConstantColorScale = 5
- CSLastSavedResult = 6
- CSPrevious = 4
- CSPrimaryColor = 3
- CSTexture = 1
- CSUnspecified = 0
- CS_constant = 2
- CS_constant_color_scale = 5
- CS_last_saved_result = 6
- CS_previous = 4
- CS_primary_color = 3
- CS_texture = 1
- CS_unspecified = 0
- EAttributes = 16
- EBasename = 1
- ECompleteFilename = 7
- EDirname = 4
- EExtension = 2
- ETAdd = 5
- ETBlend = 3
- ETBlendColorScale = 6
- ETDecal = 2
- ETEmission = 16
- ETGloss = 12
- ETGlow = 11
- ETHeight = 13
- ETModulate = 1
- ETModulateGloss = 8
- ETModulateGlow = 7
- ETNormal = 9
- ETNormalGloss = 15
- ETNormalHeight = 10
- ETReplace = 4
- ETSelector = 14
- ETUnspecified = 0
- ET_add = 5
- ET_blend = 3
- ET_blend_color_scale = 6
- ET_decal = 2
- ET_emission = 16
- ET_gloss = 12
- ET_glow = 11
- ET_height = 13
- ET_modulate = 1
- ET_modulate_gloss = 8
- ET_modulate_glow = 7
- ET_normal = 9
- ET_normal_gloss = 15
- ET_normal_height = 10
- ET_replace = 4
- ET_selector = 14
- ET_unspecified = 0
- ETransform = 8
- ETrefName = 32
- E_attributes = 16
- E_basename = 1
- E_complete_filename = 7
- E_dirname = 4
- E_extension = 2
- E_transform = 8
- E_tref_name = 32
- FAlpha = 15
- FBlue = 14
- FGreen = 13
- FLuminance = 16
- FLuminanceAlpha = 17
- FLuminanceAlphamask = 18
- FRed = 12
- FRgb = 7
- FRgb12 = 8
- FRgb332 = 11
- FRgb5 = 10
- FRgb8 = 9
- FRgba = 1
- FRgba12 = 3
- FRgba4 = 5
- FRgba5 = 6
- FRgba8 = 4
- FRgbm = 2
- FSluminance = 21
- FSluminanceAlpha = 22
- FSrgb = 19
- FSrgbAlpha = 20
- FTLinear = 2
- FTLinearMipmapLinear = 6
- FTLinearMipmapNearest = 4
- FTNearest = 1
- FTNearestMipmapLinear = 5
- FTNearestMipmapNearest = 3
- FTUnspecified = 0
- FT_linear = 2
- FT_linear_mipmap_linear = 6
- FT_linear_mipmap_nearest = 4
- FT_nearest = 1
- FT_nearest_mipmap_linear = 5
- FT_nearest_mipmap_nearest = 3
- FT_unspecified = 0
- FUnspecified = 0
- F_alpha = 15
- F_blue = 14
- F_green = 13
- F_luminance = 16
- F_luminance_alpha = 17
- F_luminance_alphamask = 18
- F_red = 12
- F_rgb = 7
- F_rgb12 = 8
- F_rgb332 = 11
- F_rgb5 = 10
- F_rgb8 = 9
- F_rgba = 1
- F_rgba12 = 3
- F_rgba4 = 5
- F_rgba5 = 6
- F_rgba8 = 4
- F_rgbm = 2
- F_sluminance = 21
- F_sluminance_alpha = 22
- F_srgb = 19
- F_srgb_alpha = 20
- F_unspecified = 0
- QLBest = 4
- QLDefault = 1
- QLFastest = 2
- QLNormal = 3
- QLUnspecified = 0
- QL_best = 4
- QL_default = 1
- QL_fastest = 2
- QL_normal = 3
- QL_unspecified = 0
- TGEyeCubeMap = 3
- TGEyeNormal = 5
- TGEyePosition = 7
- TGEyeSphereMap = 1
- TGPointSprite = 8
- TGUnspecified = 0
- TGWorldCubeMap = 2
- TGWorldNormal = 4
- TGWorldPosition = 6
- TG_eye_cube_map = 3
- TG_eye_normal = 5
- TG_eye_position = 7
- TG_eye_sphere_map = 1
- TG_point_sprite = 8
- TG_unspecified = 0
- TG_world_cube_map = 2
- TG_world_normal = 4
- TG_world_position = 6
- TT1dTexture = 1
- TT2dTexture = 2
- TT3dTexture = 3
- TTCubeMap = 4
- TTUnspecified = 0
- TT_1d_texture = 1
- TT_2d_texture = 2
- TT_3d_texture = 3
- TT_cube_map = 4
- TT_unspecified = 0
- WMBorderColor = 5
- WMClamp = 1
- WMMirror = 3
- WMMirrorOnce = 4
- WMRepeat = 2
- WMUnspecified = 0
- WM_border_color = 5
- WM_clamp = 1
- WM_mirror = 3
- WM_mirror_once = 4
- WM_repeat = 2
- WM_unspecified = 0
- __init__(*args, **kwargs)
- affectsPolygonAlpha()
C++ Interface: affects_polygon_alpha(EggTexture self)
- /**
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.
*/
- affects_polygon_alpha()
C++ Interface: affects_polygon_alpha(EggTexture self)
- /**
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.
*/
- alpha_file_channel
- alpha_filename
- alpha_fullpath
- alpha_scale
- anisotropic_degree
- border_color
- clearAlphaFileChannel()
C++ Interface: clear_alpha_file_channel(const EggTexture self)
- /**
Removes the specification of a particular channel to use from the alpha-
file image.
*/
- clearAlphaScale()
C++ Interface: clear_alpha_scale(const EggTexture self)
- /**
Removes the alpha_scale from the texture and restores it to the default
value of 1.
*/
- clearAnisotropicDegree()
C++ Interface: clear_anisotropic_degree(const EggTexture self)
- /**
Removes the specification of anisotropic filtering from the texture.
*/
- clearLodBias()
C++ Interface: clear_lod_bias(const EggTexture self)
- /**
Removes the specification of a maximum mipmap level from the texture.
*/
- clearMaxLod()
C++ Interface: clear_max_lod(const EggTexture self)
- /**
Removes the specification of a maximum mipmap level from the texture.
*/
- clearMinLod()
C++ Interface: clear_min_lod(const EggTexture self)
- /**
Removes the specification of a minimum mipmap level from the texture.
*/
- clearMultitexture()
C++ Interface: clear_multitexture(const EggTexture self)
- /**
Resets the multitexture flags set by multitexture_over(). After this call,
get_multitexture() will return false, and get_multitexture_sort() will
return 0.
*/
- clearNumViews()
C++ Interface: clear_num_views(const EggTexture self)
- /**
Removes the specification of the number of views for a 3-D multiview
texture.
*/
- clearPriority()
C++ Interface: clear_priority(const EggTexture self)
- /**
Removes the specification of multitexture priority from the texture. The
default priority value is 0.
*/
- clearRgbScale()
C++ Interface: clear_rgb_scale(const EggTexture self)
- /**
Removes the rgb_scale from the texture and restores it to the default value
of 1.
*/
- clearStageName()
C++ Interface: clear_stage_name(const EggTexture self)
- /**
Removes the named TextureStage specification.
*/
- clearUvName()
C++ Interface: clear_uv_name(const EggTexture self)
- /**
Removes the restriction to a particular named set of texture coordinates
and restores the texture to using the default texture coordinates.
*/
- clear_alpha_file_channel()
C++ Interface: clear_alpha_file_channel(const EggTexture self)
- /**
Removes the specification of a particular channel to use from the alpha-
file image.
*/
- clear_alpha_scale()
C++ Interface: clear_alpha_scale(const EggTexture self)
- /**
Removes the alpha_scale from the texture and restores it to the default
value of 1.
*/
- clear_anisotropic_degree()
C++ Interface: clear_anisotropic_degree(const EggTexture self)
- /**
Removes the specification of anisotropic filtering from the texture.
*/
- clear_lod_bias()
C++ Interface: clear_lod_bias(const EggTexture self)
- /**
Removes the specification of a maximum mipmap level from the texture.
*/
- clear_max_lod()
C++ Interface: clear_max_lod(const EggTexture self)
- /**
Removes the specification of a maximum mipmap level from the texture.
*/
- clear_min_lod()
C++ Interface: clear_min_lod(const EggTexture self)
- /**
Removes the specification of a minimum mipmap level from the texture.
*/
- clear_multitexture()
C++ Interface: clear_multitexture(const EggTexture self)
- /**
Resets the multitexture flags set by multitexture_over(). After this call,
get_multitexture() will return false, and get_multitexture_sort() will
return 0.
*/
- clear_num_views()
C++ Interface: clear_num_views(const EggTexture self)
- /**
Removes the specification of the number of views for a 3-D multiview
texture.
*/
- clear_priority()
C++ Interface: clear_priority(const EggTexture self)
- /**
Removes the specification of multitexture priority from the texture. The
default priority value is 0.
*/
- clear_rgb_scale()
C++ Interface: clear_rgb_scale(const EggTexture self)
- /**
Removes the rgb_scale from the texture and restores it to the default value
of 1.
*/
- clear_stage_name()
C++ Interface: clear_stage_name(const EggTexture self)
- /**
Removes the named TextureStage specification.
*/
- clear_uv_name()
C++ Interface: clear_uv_name(const EggTexture self)
- /**
Removes the restriction to a particular named set of texture coordinates
and restores the texture to using the default texture coordinates.
*/
- color
- compression_mode
- determineWrapU()
C++ Interface: determine_wrap_u(EggTexture self)
- /**
Determines the appropriate wrap in the U direction. This is different from
get_wrap_u() in that if the U wrap is unspecified, it returns the overall
wrap value.
*/
- determineWrapV()
C++ Interface: determine_wrap_v(EggTexture self)
- /**
Determines the appropriate wrap in the V direction. This is different from
get_wrap_v() in that if the V wrap is unspecified, it returns the overall
wrap value.
*/
- determineWrapW()
C++ Interface: determine_wrap_w(EggTexture self)
- /**
Determines the appropriate wrap in the W direction. This is different from
get_wrap_w() in that if the W wrap is unspecified, it returns the overall
wrap value.
*/
- determine_wrap_u()
C++ Interface: determine_wrap_u(EggTexture self)
- /**
Determines the appropriate wrap in the U direction. This is different from
get_wrap_u() in that if the U wrap is unspecified, it returns the overall
wrap value.
*/
- determine_wrap_v()
C++ Interface: determine_wrap_v(EggTexture self)
- /**
Determines the appropriate wrap in the V direction. This is different from
get_wrap_v() in that if the V wrap is unspecified, it returns the overall
wrap value.
*/
- determine_wrap_w()
C++ Interface: determine_wrap_w(EggTexture self)
- /**
Determines the appropriate wrap in the W direction. This is different from
get_wrap_w() in that if the W wrap is unspecified, it returns the overall
wrap value.
*/
- env_type
- format
- getAlphaFileChannel()
C++ Interface: get_alpha_file_channel(EggTexture self)
- /**
Returns the particular channel that has been specified for the alpha-file
image, or 0 if no channel has been specified. See
set_alpha_file_channel().
*/
- getAlphaFilename()
C++ Interface: get_alpha_filename(EggTexture self)
- /**
Returns the separate file assigned for the alpha channel. It is an error
to call this unless has_alpha_filename() returns true. See
set_alpha_filename().
*/
- getAlphaFullpath()
C++ Interface: get_alpha_fullpath(EggTexture self)
- /**
Returns the full pathname to the alpha file, if it is known; otherwise,
returns the same thing as get_alpha_filename().
This function simply returns whatever was set by the last call to
set_alpha_fullpath(). 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()
C++ Interface: get_alpha_scale(EggTexture self)
- /**
Returns the alpha_scale value that has been specified for the texture, or 1
if no alpha_scale value has been specified.
*/
- getAnisotropicDegree()
C++ Interface: get_anisotropic_degree(EggTexture self)
- /**
Returns the anisotropic filtering degree that has been specified for this
texture, or 0 if nothing has been specified.
*/
- getBorderColor()
C++ Interface: get_border_color(EggTexture self)
- /**
Returns the border color if one has been specified, or (0, 0, 0, 1)
otherwise.
*/
- getClassType()
C++ Interface: get_class_type()
- getColor()
C++ Interface: get_color(EggTexture self)
- /**
Returns the blend color if one has been specified, or (0, 0, 0, 1)
otherwise.
*/
- getLodBias()
C++ Interface: get_lod_bias(EggTexture self)
- /**
Returns the maximum mipmap level that has been specified for this texture.
*/
- getMaxLod()
C++ Interface: get_max_lod(EggTexture self)
- /**
Returns the maximum mipmap level that has been specified for this texture.
*/
- getMinLod()
C++ Interface: get_min_lod(EggTexture self)
- /**
Returns the minimum mipmap level that has been specified for this texture.
*/
- getMultitextureSort()
C++ Interface: get_multitexture_sort(EggTexture self)
- /**
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()
C++ Interface: get_multiview(EggTexture self)
- /**
Returns the current setting of the multiview flag. See set_multiview().
*/
- getNumViews()
C++ Interface: get_num_views(EggTexture self)
- /**
Returns the specified number of views specified for the 3-D multiview
texture. See set_num_views().
*/
- getPriority()
C++ Interface: get_priority(EggTexture self)
- /**
Returns the multitexture importance value that has been specified for the
texture, or 0 if no priority value has been specified.
*/
- getReadMipmaps()
C++ Interface: get_read_mipmaps(EggTexture self)
- /**
Returns the current setting of the read_mipmaps flag. See
set_read_mipmaps().
*/
- getRgbScale()
C++ Interface: get_rgb_scale(EggTexture self)
- /**
Returns the rgb_scale value that has been specified for the texture, or 1
if no rgb_scale value has been specified.
*/
- getSavedResult()
C++ Interface: get_saved_result(EggTexture self)
- /**
Returns the current setting of the saved_result flag. See
set_saved_result().
*/
- getStageName()
C++ Interface: get_stage_name(EggTexture self)
- /**
Returns the stage name that has been specified for this texture, or the
tref name if no texture stage has explicitly been specified.
*/
- getUvName()
C++ Interface: get_uv_name(EggTexture self)
- /**
Returns the texcoord name that has been specified for this texture, or the
empty string if no texcoord name has explicitly been specified.
*/
- getWrapU()
C++ Interface: get_wrap_u(EggTexture self)
- /**
Returns the amount specified for U wrap. This may be unspecified, even if
there is an overall wrap value.
*/
- getWrapV()
C++ Interface: get_wrap_v(EggTexture self)
- /**
Returns the amount specified for V wrap. This may be unspecified, even if
there is an overall wrap value.
*/
- getWrapW()
C++ Interface: get_wrap_w(EggTexture self)
- /**
Returns the amount specified for W wrap. This may be unspecified, even if
there is an overall wrap value.
*/
- get_alpha_file_channel()
C++ Interface: get_alpha_file_channel(EggTexture self)
- /**
Returns the particular channel that has been specified for the alpha-file
image, or 0 if no channel has been specified. See
set_alpha_file_channel().
*/
- get_alpha_filename()
C++ Interface: get_alpha_filename(EggTexture self)
- /**
Returns the separate file assigned for the alpha channel. It is an error
to call this unless has_alpha_filename() returns true. See
set_alpha_filename().
*/
- get_alpha_fullpath()
C++ Interface: get_alpha_fullpath(EggTexture self)
- /**
Returns the full pathname to the alpha file, if it is known; otherwise,
returns the same thing as get_alpha_filename().
This function simply returns whatever was set by the last call to
set_alpha_fullpath(). 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.
*/
- get_alpha_scale()
C++ Interface: get_alpha_scale(EggTexture self)
- /**
Returns the alpha_scale value that has been specified for the texture, or 1
if no alpha_scale value has been specified.
*/
- get_anisotropic_degree()
C++ Interface: get_anisotropic_degree(EggTexture self)
- /**
Returns the anisotropic filtering degree that has been specified for this
texture, or 0 if nothing has been specified.
*/
- get_border_color()
C++ Interface: get_border_color(EggTexture self)
- /**
Returns the border color if one has been specified, or (0, 0, 0, 1)
otherwise.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_color()
C++ Interface: get_color(EggTexture self)
- /**
Returns the blend color if one has been specified, or (0, 0, 0, 1)
otherwise.
*/
- get_combine_operand()
C++ Interface: get_combine_operand(EggTexture self, int channel, int n)
- /**
*/
- get_lod_bias()
C++ Interface: get_lod_bias(EggTexture self)
- /**
Returns the maximum mipmap level that has been specified for this texture.
*/
- get_max_lod()
C++ Interface: get_max_lod(EggTexture self)
- /**
Returns the maximum mipmap level that has been specified for this texture.
*/
- get_min_lod()
C++ Interface: get_min_lod(EggTexture self)
- /**
Returns the minimum mipmap level that has been specified for this texture.
*/
- get_multitexture_sort()
C++ Interface: get_multitexture_sort(EggTexture self)
- /**
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.
*/
- get_multiview()
C++ Interface: get_multiview(EggTexture self)
- /**
Returns the current setting of the multiview flag. See set_multiview().
*/
- get_num_views()
C++ Interface: get_num_views(EggTexture self)
- /**
Returns the specified number of views specified for the 3-D multiview
texture. See set_num_views().
*/
- get_priority()
C++ Interface: get_priority(EggTexture self)
- /**
Returns the multitexture importance value that has been specified for the
texture, or 0 if no priority value has been specified.
*/
- get_read_mipmaps()
C++ Interface: get_read_mipmaps(EggTexture self)
- /**
Returns the current setting of the read_mipmaps flag. See
set_read_mipmaps().
*/
- get_rgb_scale()
C++ Interface: get_rgb_scale(EggTexture self)
- /**
Returns the rgb_scale value that has been specified for the texture, or 1
if no rgb_scale value has been specified.
*/
- get_saved_result()
C++ Interface: get_saved_result(EggTexture self)
- /**
Returns the current setting of the saved_result flag. See
set_saved_result().
*/
- get_stage_name()
C++ Interface: get_stage_name(EggTexture self)
- /**
Returns the stage name that has been specified for this texture, or the
tref name if no texture stage has explicitly been specified.
*/
- get_uv_name()
C++ Interface: get_uv_name(EggTexture self)
- /**
Returns the texcoord name that has been specified for this texture, or the
empty string if no texcoord name has explicitly been specified.
*/
- get_wrap_u()
C++ Interface: get_wrap_u(EggTexture self)
- /**
Returns the amount specified for U wrap. This may be unspecified, even if
there is an overall wrap value.
*/
- get_wrap_v()
C++ Interface: get_wrap_v(EggTexture self)
- /**
Returns the amount specified for V wrap. This may be unspecified, even if
there is an overall wrap value.
*/
- get_wrap_w()
C++ Interface: get_wrap_w(EggTexture self)
- /**
Returns the amount specified for W wrap. This may be unspecified, even if
there is an overall wrap value.
*/
- hasAlphaChannel()
C++ Interface: has_alpha_channel(EggTexture self, int num_components)
- /**
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()
C++ Interface: has_alpha_file_channel(EggTexture self)
- /**
Returns true if a particular channel has been specified for the alpha-file
image, false otherwise.
*/
- hasAlphaFilename()
C++ Interface: has_alpha_filename(EggTexture self)
- /**
Returns true if a separate file for the alpha component has been applied,
false otherwise. See set_alpha_filename().
*/
- hasAlphaScale()
C++ Interface: has_alpha_scale(EggTexture self)
- /**
Returns true if an alpha_scale has been specified for the texture, false
otherwise.
*/
- hasAnisotropicDegree()
C++ Interface: has_anisotropic_degree(EggTexture self)
- /**
Returns true if a value for the anisotropic filtering degree has been
specified for this texture, false otherwise.
*/
- hasBorderColor()
C++ Interface: has_border_color(EggTexture self)
- /**
Returns true if a border color has been specified for the texture.
*/
- hasColor()
C++ Interface: has_color(EggTexture self)
- /**
Returns true if a blend color has been specified for the texture.
*/
- hasLodBias()
C++ Interface: has_lod_bias(EggTexture self)
- /**
Returns true if a value for the maximum mipmap level has been specified for
this texture, false otherwise.
*/
- hasMaxLod()
C++ Interface: has_max_lod(EggTexture self)
- /**
Returns true if a value for the maximum mipmap level has been specified for
this texture, false otherwise.
*/
- hasMinLod()
C++ Interface: has_min_lod(EggTexture self)
- /**
Returns true if a value for the minimum mipmap level has been specified for
this texture, false otherwise.
*/
- hasNumViews()
C++ Interface: has_num_views(EggTexture self)
- /**
Returns true if the number of views has been specified for the 3-D
multiview texture, false otherwise.
*/
- hasPriority()
C++ Interface: has_priority(EggTexture self)
- /**
Returns true if a priority value for multitexture importance has been
specified for the texture, false otherwise.
*/
- hasRgbScale()
C++ Interface: has_rgb_scale(EggTexture self)
- /**
Returns true if an rgb_scale has been specified for the texture, false
otherwise.
*/
- hasStageName()
C++ Interface: has_stage_name(EggTexture self)
- /**
Returns true if a stage name has been explicitly specified for this
texture, false otherwise.
*/
- hasUvName()
C++ Interface: has_uv_name(EggTexture self)
- /**
Returns true if a texcoord name has been explicitly specified for this
texture, false otherwise.
*/
- has_alpha_channel()
C++ Interface: has_alpha_channel(EggTexture self, int num_components)
- /**
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.
*/
- has_alpha_file_channel()
C++ Interface: has_alpha_file_channel(EggTexture self)
- /**
Returns true if a particular channel has been specified for the alpha-file
image, false otherwise.
*/
- has_alpha_filename()
C++ Interface: has_alpha_filename(EggTexture self)
- /**
Returns true if a separate file for the alpha component has been applied,
false otherwise. See set_alpha_filename().
*/
- has_alpha_scale()
C++ Interface: has_alpha_scale(EggTexture self)
- /**
Returns true if an alpha_scale has been specified for the texture, false
otherwise.
*/
- has_anisotropic_degree()
C++ Interface: has_anisotropic_degree(EggTexture self)
- /**
Returns true if a value for the anisotropic filtering degree has been
specified for this texture, false otherwise.
*/
- has_border_color()
C++ Interface: has_border_color(EggTexture self)
- /**
Returns true if a border color has been specified for the texture.
*/
- has_color()
C++ Interface: has_color(EggTexture self)
- /**
Returns true if a blend color has been specified for the texture.
*/
- has_lod_bias()
C++ Interface: has_lod_bias(EggTexture self)
- /**
Returns true if a value for the maximum mipmap level has been specified for
this texture, false otherwise.
*/
- has_max_lod()
C++ Interface: has_max_lod(EggTexture self)
- /**
Returns true if a value for the maximum mipmap level has been specified for
this texture, false otherwise.
*/
- has_min_lod()
C++ Interface: has_min_lod(EggTexture self)
- /**
Returns true if a value for the minimum mipmap level has been specified for
this texture, false otherwise.
*/
- has_num_views()
C++ Interface: has_num_views(EggTexture self)
- /**
Returns true if the number of views has been specified for the 3-D
multiview texture, false otherwise.
*/
- has_priority()
C++ Interface: has_priority(EggTexture self)
- /**
Returns true if a priority value for multitexture importance has been
specified for the texture, false otherwise.
*/
- has_rgb_scale()
C++ Interface: has_rgb_scale(EggTexture self)
- /**
Returns true if an rgb_scale has been specified for the texture, false
otherwise.
*/
- has_stage_name()
C++ Interface: has_stage_name(EggTexture self)
- /**
Returns true if a stage name has been explicitly specified for this
texture, false otherwise.
*/
- has_uv_name()
C++ Interface: has_uv_name(EggTexture self)
- /**
Returns true if a texcoord name has been explicitly specified for this
texture, false otherwise.
*/
- isEquivalentTo()
C++ Interface: is_equivalent_to(EggTexture self, const EggTexture other, int eq)
- /**
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.
*/
- is_equivalent_to()
C++ Interface: is_equivalent_to(EggTexture self, const EggTexture other, int eq)
- /**
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.
*/
- lod_bias
- magfilter
- max_lod
- min_lod
- minfilter
- multitextureOver()
C++ Interface: multitexture_over(const EggTexture self, EggTexture other)
- /**
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 clear_multitexture() 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).
*/
- multitexture_over()
C++ Interface: multitexture_over(const EggTexture self, EggTexture other)
- /**
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 clear_multitexture() 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).
*/
- multitexture_sort
- multiview
- num_views
- priority
- quality_level
- read_mipmaps
- rgb_scale
- saved_result
- setAlphaFileChannel()
C++ Interface: set_alpha_file_channel(const EggTexture self, int alpha_file_channel)
- /**
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()
C++ Interface: set_alpha_filename(const EggTexture self, const Filename filename)
- /**
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()
C++ Interface: set_alpha_fullpath(const EggTexture self, const Filename fullpath)
- /**
Records the full pathname to the file, for the benefit of
get_alpha_fullpath().
*/
- setAlphaScale()
C++ Interface: set_alpha_scale(const EggTexture self, int alpha_scale)
- /**
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()
C++ Interface: set_anisotropic_degree(const EggTexture self, int anisotropic_degree)
- /**
Sets the degree of anisotropic filtering for this texture. 1 is off;
higher levels indicate filtering in effect.
*/
- setBorderColor()
C++ Interface: set_border_color(const EggTexture self, const LVecBase4f border_color)
- /**
*/
- setCombineMode()
C++ Interface: set_combine_mode(const EggTexture self, int channel, int cm)
- /**
*/
- setCombineOperand()
C++ Interface: set_combine_operand(const EggTexture self, int channel, int n, int co)
- /**
*/
- setCombineSource()
C++ Interface: set_combine_source(const EggTexture self, int channel, int n, int cs)
- /**
*/
- setLodBias()
C++ Interface: set_lod_bias(const EggTexture self, double lod_bias)
- /**
Sets the mipmap level bias that is added to the mipmap level to be sampled.
*/
- setMaxLod()
C++ Interface: set_max_lod(const EggTexture self, double max_lod)
- /**
Sets the maximum mipmap level that may be sampled.
*/
- setMinLod()
C++ Interface: set_min_lod(const EggTexture self, double min_lod)
- /**
Sets the minimum mipmap level that may be sampled.
*/
- setMultiview()
C++ Interface: set_multiview(const EggTexture self, bool multiview)
- /**
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()
C++ Interface: set_num_views(const EggTexture self, int num_views)
- /**
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()
C++ Interface: set_priority(const EggTexture self, int priority)
- /**
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()
C++ Interface: set_quality_level(const EggTexture self, int quality_level)
- /**
*/
- setReadMipmaps()
C++ Interface: set_read_mipmaps(const EggTexture self, bool read_mipmaps)
- /**
Sets the read_mipmaps flag.
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()
C++ Interface: set_rgb_scale(const EggTexture self, int rgb_scale)
- /**
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()
C++ Interface: set_saved_result(const EggTexture self, bool saved_result)
- /**
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()
C++ Interface: set_stage_name(const EggTexture self, str stage_name)
- /**
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.
*/
- setUvName()
C++ Interface: set_uv_name(const EggTexture self, str uv_name)
- /**
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.
*/
- set_alpha_file_channel()
C++ Interface: set_alpha_file_channel(const EggTexture self, int alpha_file_channel)
- /**
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.
*/
- set_alpha_filename()
C++ Interface: set_alpha_filename(const EggTexture self, const Filename filename)
- /**
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.
*/
- set_alpha_fullpath()
C++ Interface: set_alpha_fullpath(const EggTexture self, const Filename fullpath)
- /**
Records the full pathname to the file, for the benefit of
get_alpha_fullpath().
*/
- set_alpha_scale()
C++ Interface: set_alpha_scale(const EggTexture self, int alpha_scale)
- /**
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.
*/
- set_anisotropic_degree()
C++ Interface: set_anisotropic_degree(const EggTexture self, int anisotropic_degree)
- /**
Sets the degree of anisotropic filtering for this texture. 1 is off;
higher levels indicate filtering in effect.
*/
- set_border_color()
C++ Interface: set_border_color(const EggTexture self, const LVecBase4f border_color)
- /**
*/
- set_combine_mode()
C++ Interface: set_combine_mode(const EggTexture self, int channel, int cm)
- /**
*/
- set_combine_operand()
C++ Interface: set_combine_operand(const EggTexture self, int channel, int n, int co)
- /**
*/
- set_combine_source()
C++ Interface: set_combine_source(const EggTexture self, int channel, int n, int cs)
- /**
*/
- set_lod_bias()
C++ Interface: set_lod_bias(const EggTexture self, double lod_bias)
- /**
Sets the mipmap level bias that is added to the mipmap level to be sampled.
*/
- set_max_lod()
C++ Interface: set_max_lod(const EggTexture self, double max_lod)
- /**
Sets the maximum mipmap level that may be sampled.
*/
- set_min_lod()
C++ Interface: set_min_lod(const EggTexture self, double min_lod)
- /**
Sets the minimum mipmap level that may be sampled.
*/
- set_multiview()
C++ Interface: set_multiview(const EggTexture self, bool multiview)
- /**
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.
*/
- set_num_views()
C++ Interface: set_num_views(const EggTexture self, int num_views)
- /**
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.
*/
- set_priority()
C++ Interface: set_priority(const EggTexture self, int priority)
- /**
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.
*/
- set_quality_level()
C++ Interface: set_quality_level(const EggTexture self, int quality_level)
- /**
*/
- set_read_mipmaps()
C++ Interface: set_read_mipmaps(const EggTexture self, bool read_mipmaps)
- /**
Sets the read_mipmaps flag.
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.
*/
- set_rgb_scale()
C++ Interface: set_rgb_scale(const EggTexture self, int rgb_scale)
- /**
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.
*/
- set_saved_result()
C++ Interface: set_saved_result(const EggTexture self, bool saved_result)
- /**
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.
*/
- set_stage_name()
C++ Interface: set_stage_name(const EggTexture self, str stage_name)
- /**
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.
*/
- set_uv_name()
C++ Interface: set_uv_name(const EggTexture self, str uv_name)
- /**
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.
*/
- sortsLessThan()
C++ Interface: sorts_less_than(EggTexture self, const EggTexture other, int eq)
- /**
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 is_equivalent_to().
*/
- sorts_less_than()
C++ Interface: sorts_less_than(EggTexture self, const EggTexture other, int eq)
- /**
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 is_equivalent_to().
*/
- stage_name
- stringCombineMode()
C++ Interface: string_combine_mode(str string)
- /**
Returns the CombineMode value associated with the given string
representation, or CM_unspecified if the string does not match any known
CombineMode value.
*/
- stringCombineOperand()
C++ Interface: string_combine_operand(str string)
- /**
Returns the CombineOperand value associated with the given string
representation, or CO_unspecified if the string does not match any known
CombineOperand value.
*/
- stringCombineSource()
C++ Interface: string_combine_source(str string)
- /**
Returns the CombineSource value associated with the given string
representation, or CS_unspecified if the string does not match any known
CombineSource value.
*/
- stringCompressionMode()
C++ Interface: string_compression_mode(str string)
- /**
Returns the CompressionMode value associated with the given string
representation, or CM_default if the string does not match any known
CompressionMode value.
*/
- stringEnvType()
C++ Interface: string_env_type(str string)
- /**
Returns the EnvType value associated with the given string representation,
or ET_unspecified if the string does not match any known EnvType value.
*/
- stringFilterType()
C++ Interface: string_filter_type(str string)
- /**
Returns the FilterType value associated with the given string
representation, or FT_unspecified if the string does not match any known
FilterType value.
*/
- stringFormat()
C++ Interface: string_format(str string)
- /**
Returns the Format value associated with the given string representation,
or F_unspecified if the string does not match any known Format value.
*/
- stringQualityLevel()
C++ Interface: string_quality_level(str string)
- /**
Returns the TexGen value associated with the given string representation,
or ET_unspecified if the string does not match any known TexGen value.
*/
- stringTexGen()
C++ Interface: string_tex_gen(str string)
- /**
Returns the TexGen value associated with the given string representation,
or ET_unspecified if the string does not match any known TexGen value.
*/
- stringTextureType()
C++ Interface: string_texture_type(str string)
- /**
Returns the Texture_ype value associated with the given string
representation, or TT_unspecified if the string does not match any known
TextureType value.
*/
- stringWrapMode()
C++ Interface: string_wrap_mode(str string)
- /**
Returns the WrapMode value associated with the given string representation,
or WM_unspecified if the string does not match any known WrapMode value.
*/
- string_combine_mode()
C++ Interface: string_combine_mode(str string)
- /**
Returns the CombineMode value associated with the given string
representation, or CM_unspecified if the string does not match any known
CombineMode value.
*/
- string_combine_operand()
C++ Interface: string_combine_operand(str string)
- /**
Returns the CombineOperand value associated with the given string
representation, or CO_unspecified if the string does not match any known
CombineOperand value.
*/
- string_combine_source()
C++ Interface: string_combine_source(str string)
- /**
Returns the CombineSource value associated with the given string
representation, or CS_unspecified if the string does not match any known
CombineSource value.
*/
- string_compression_mode()
C++ Interface: string_compression_mode(str string)
- /**
Returns the CompressionMode value associated with the given string
representation, or CM_default if the string does not match any known
CompressionMode value.
*/
- string_env_type()
C++ Interface: string_env_type(str string)
- /**
Returns the EnvType value associated with the given string representation,
or ET_unspecified if the string does not match any known EnvType value.
*/
- string_filter_type()
C++ Interface: string_filter_type(str string)
- /**
Returns the FilterType value associated with the given string
representation, or FT_unspecified if the string does not match any known
FilterType value.
*/
- string_format()
C++ Interface: string_format(str string)
- /**
Returns the Format value associated with the given string representation,
or F_unspecified if the string does not match any known Format value.
*/
- string_quality_level()
C++ Interface: string_quality_level(str string)
- /**
Returns the TexGen value associated with the given string representation,
or ET_unspecified if the string does not match any known TexGen value.
*/
- string_tex_gen()
C++ Interface: string_tex_gen(str string)
- /**
Returns the TexGen value associated with the given string representation,
or ET_unspecified if the string does not match any known TexGen value.
*/
- string_texture_type()
C++ Interface: string_texture_type(str string)
- /**
Returns the Texture_ype value associated with the given string
representation, or TT_unspecified if the string does not match any known
TextureType value.
*/
- string_wrap_mode()
C++ Interface: string_wrap_mode(str string)
- /**
Returns the WrapMode value associated with the given string representation,
or WM_unspecified if the string does not match any known WrapMode value.
*/
- tex_gen
- texture_type
- upcastToEggFilenameNode()
C++ Interface: upcast_to_EggFilenameNode(const EggTexture self)
upcast from EggTexture to EggFilenameNode
- upcastToEggRenderMode()
C++ Interface: upcast_to_EggRenderMode(const EggTexture self)
upcast from EggTexture to EggRenderMode
- upcastToEggTransform()
C++ Interface: upcast_to_EggTransform(const EggTexture self)
upcast from EggTexture to EggTransform
- upcast_to_EggFilenameNode()
C++ Interface: upcast_to_EggFilenameNode(const EggTexture self)
upcast from EggTexture to EggFilenameNode
- upcast_to_EggRenderMode()
C++ Interface: upcast_to_EggRenderMode(const EggTexture self)
upcast from EggTexture to EggRenderMode
- upcast_to_EggTransform()
C++ Interface: upcast_to_EggTransform(const EggTexture self)
upcast from EggTexture to EggTransform
- uv_name
- wrap_mode
- wrap_u
- wrap_v
- wrap_w