|
| __init__ (const EggTexture copy) |
|
| __init__ (str tref_name, const Filename filename) |
|
bool | affectsPolygonAlpha () |
| 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. More...
|
|
| clearAlphaFileChannel () |
| Removes the specification of a particular channel to use from the alpha-file image. More...
|
|
| clearAlphaFilename () |
|
| clearAlphaScale () |
| Removes the alpha_scale from the texture and restores it to the default value of 1. More...
|
|
| clearAnisotropicDegree () |
| Removes the specification of anisotropic filtering from the texture. More...
|
|
| clearBorderColor () |
|
| clearColor () |
|
| clearMultitexture () |
| Resets the multitexture flags set by multitexture_over(). After this call, get_multitexture() will return false, and get_multitexture_sort() will return 0. More...
|
|
| clearNumViews () |
| Removes the specification of the number of views for a 3-D multiview texture. More...
|
|
| clearPriority () |
| Removes the specification of multitexture priority from the texture. The default priority value is 0. More...
|
|
| clearRgbScale () |
| Removes the rgb_scale from the texture and restores it to the default value of 1. More...
|
|
| clearStageName () |
| Removes the named TextureStage specification. More...
|
|
| clearUvName () |
| Removes the restriction to a particular named set of texture coordinates and restores the texture to using the default texture coordinates. More...
|
|
EggTexture::WrapMode | determineWrapU () |
| 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. More...
|
|
EggTexture::WrapMode | determineWrapV () |
| 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. More...
|
|
EggTexture::WrapMode | determineWrapW () |
| 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. More...
|
|
int | getAlphaFileChannel () |
| 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(). More...
|
|
const Filename | getAlphaFilename () |
| 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(). More...
|
|
const Filename | getAlphaFullpath () |
| Returns the full pathname to the alpha file, if it is known; otherwise, returns the same thing as get_alpha_filename(). More...
|
|
int | getAlphaScale () |
| Returns the alpha_scale value that has been specified for the texture, or 1 if no alpha_scale value has been specified. More...
|
|
int | getAnisotropicDegree () |
| Returns the anisotropic filtering degree that has been specified for this texture, or 0 if nothing has been specified. More...
|
|
const LColor | getBorderColor () |
| Returns the border color if one has been specified, or (0, 0, 0, 1) otherwise. More...
|
|
const LColor | getColor () |
| Returns the blend color if one has been specified, or (0, 0, 0, 1) otherwise. More...
|
|
EggTexture::CombineMode | getCombineMode (EggTexture::CombineChannel channel) |
|
EggTexture::CombineOperand | getCombineOperand (EggTexture::CombineChannel channel, int n) |
|
EggTexture::CombineSource | getCombineSource (EggTexture::CombineChannel channel, int n) |
|
EggTexture::CompressionMode | getCompressionMode () |
|
EggTexture::EnvType | getEnvType () |
|
EggTexture::Format | getFormat () |
|
EggTexture::FilterType | getMagfilter () |
|
EggTexture::FilterType | getMinfilter () |
|
int | getMultitextureSort () |
| 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. More...
|
|
bool | getMultiview () |
| Returns the current setting of the multiview flag. See set_multiview(). More...
|
|
int | getNumViews () |
| Returns the specified number of views specified for the 3-D multiview texture. See set_num_views(). More...
|
|
int | getPriority () |
| Returns the multitexture importance value that has been specified for the texture, or 0 if no priority value has been specified. More...
|
|
EggTexture::QualityLevel | getQualityLevel () |
|
bool | getReadMipmaps () |
| Returns the current setting of the read_mipmaps flag. See set_read_mipmaps(). More...
|
|
int | getRgbScale () |
| Returns the rgb_scale value that has been specified for the texture, or 1 if no rgb_scale value has been specified. More...
|
|
bool | getSavedResult () |
| Returns the current setting of the saved_result flag. See set_saved_result(). More...
|
|
str | getStageName () |
| Returns the stage name that has been specified for this texture, or the tref name if no texture stage has explicitly been specified. More...
|
|
EggTexture::TexGen | getTexGen () |
|
EggTexture::TextureType | getTextureType () |
|
str | getUvName () |
| Returns the texcoord name that has been specified for this texture, or the empty string if no texcoord name has explicitly been specified. More...
|
|
EggTexture::WrapMode | getWrapMode () |
|
EggTexture::WrapMode | getWrapU () |
| Returns the amount specified for U wrap. This may be unspecified, even if there is an overall wrap value. More...
|
|
EggTexture::WrapMode | getWrapV () |
| Returns the amount specified for V wrap. This may be unspecified, even if there is an overall wrap value. More...
|
|
EggTexture::WrapMode | getWrapW () |
| Returns the amount specified for W wrap. This may be unspecified, even if there is an overall wrap value. More...
|
|
bool | hasAlphaChannel (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. More...
|
|
bool | hasAlphaFileChannel () |
| Returns true if a particular channel has been specified for the alpha-file image, false otherwise. More...
|
|
bool | hasAlphaFilename () |
| Returns true if a separate file for the alpha component has been applied, false otherwise. See set_alpha_filename(). More...
|
|
bool | hasAlphaScale () |
| Returns true if an alpha_scale has been specified for the texture, false otherwise. More...
|
|
bool | hasAnisotropicDegree () |
| Returns true if a value for the anisotropic filtering degree has been specified for this texture, false otherwise. More...
|
|
bool | hasBorderColor () |
| Returns true if a border color has been specified for the texture. More...
|
|
bool | hasColor () |
| Returns true if a blend color has been specified for the texture. More...
|
|
bool | hasNumViews () |
| Returns true if the number of views has been specified for the 3-D multiview texture, false otherwise. More...
|
|
bool | hasPriority () |
| Returns true if a priority value for multitexture importance has been specified for the texture, false otherwise. More...
|
|
bool | hasRgbScale () |
| Returns true if an rgb_scale has been specified for the texture, false otherwise. More...
|
|
bool | hasStageName () |
| Returns true if a stage name has been explicitly specified for this texture, false otherwise. More...
|
|
bool | hasUvName () |
| Returns true if a texcoord name has been explicitly specified for this texture, false otherwise. More...
|
|
bool | isEquivalentTo (const EggTexture other, int eq) |
| Returns true if the two textures are equivalent in all relevant properties (according to eq), false otherwise. More...
|
|
bool | multitextureOver (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. More...
|
|
EggTexture | operator= (const EggTexture copy) |
|
| setAlphaFileChannel (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. More...
|
|
| setAlphaFilename (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. More...
|
|
| setAlphaFullpath (const Filename fullpath) |
| Records the full pathname to the file, for the benefit of get_alpha_fullpath(). More...
|
|
| setAlphaScale (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. More...
|
|
| setAnisotropicDegree (int anisotropic_degree) |
| Sets the degree of anisotropic filtering for this texture. 1 is off; higher levels indicate filtering in effect. More...
|
|
| setBorderColor (const LColor border_color) |
|
| setColor (const LColor color) |
|
| setCombineMode (EggTexture::CombineChannel channel, EggTexture::CombineMode cm) |
|
| setCombineOperand (EggTexture::CombineChannel channel, int n, EggTexture::CombineOperand co) |
|
| setCombineSource (EggTexture::CombineChannel channel, int n, EggTexture::CombineSource cs) |
|
| setCompressionMode (EggTexture::CompressionMode mode) |
|
| setEnvType (EggTexture::EnvType type) |
|
| setFormat (EggTexture::Format format) |
|
| setMagfilter (EggTexture::FilterType type) |
|
| setMinfilter (EggTexture::FilterType type) |
|
| setMultiview (bool multiview) |
| Sets the multiview flag. More...
|
|
| setNumViews (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. More...
|
|
| setPriority (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. More...
|
|
| setQualityLevel (EggTexture::QualityLevel quality_level) |
|
| setReadMipmaps (bool read_mipmaps) |
| Sets the read_mipmaps flag. More...
|
|
| setRgbScale (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. More...
|
|
| setSavedResult (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. More...
|
|
| setStageName (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. More...
|
|
| setTexGen (EggTexture::TexGen tex_gen) |
|
| setTextureType (EggTexture::TextureType texture_type) |
|
| setUvName (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. More...
|
|
| setWrapMode (EggTexture::WrapMode mode) |
|
| setWrapU (EggTexture::WrapMode mode) |
|
| setWrapV (EggTexture::WrapMode mode) |
|
| setWrapW (EggTexture::WrapMode mode) |
|
bool | sortsLessThan (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(). More...
|
|
| write (Ostream out, int indent_level) |
| Writes the texture definition to the indicated output stream in Egg format. More...
|
|
Public Member Functions inherited from EggFilenameNode |
str | getDefaultExtension () |
| Returns the default extension for this filename type. More...
|
|
const Filename | getFilename () |
| Returns a nonmodifiable reference to the filename. More...
|
|
const Filename | getFullpath () |
| Returns the full pathname to the file, if it is known; otherwise, returns the same thing as get_filename(). More...
|
|
EggFilenameNode | operator= (const EggFilenameNode copy) |
|
| setFilename (const Filename filename) |
|
| setFullpath (const Filename fullpath) |
| Records the full pathname to the file, for the benefit of get_fullpath(). More...
|
|
Public Member Functions inherited from EggNode |
| applyTexmats () |
| Applies the texture matrices to the UV's of the vertices that reference them, and then removes the texture matrices from the textures themselves. More...
|
|
EggRenderMode | determineAlphaMode () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has an alpha_mode other than AM_unspecified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
EggRenderMode | determineBin () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a bin specified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
bool | determineDecal () |
| Walks back up the hierarchy, looking for an EggGroup at this level or above that has the "decal" flag set. Returns the value of the decal flag if it is found, or false if it is not. More...
|
|
EggRenderMode | determineDepthOffset () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_offset specified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
EggRenderMode | determineDepthTestMode () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_test_mode other than DTM_unspecified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
EggRenderMode | determineDepthWriteMode () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_write_mode other than DWM_unspecified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
EggRenderMode | determineDrawOrder () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a draw_order specified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
bool | determineIndexed () |
| Walks back up the hierarchy, looking for an EggGroup at this level or above that has the "indexed" scalar set. Returns the value of the indexed scalar if it is found, or false if it is not. More...
|
|
EggRenderMode | determineVisibilityMode () |
| Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a visibility_mode other than VM_unspecified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. More...
|
|
| flattenTransforms () |
| Removes any transform and instance records from this node in the scene graph and below. If an instance node is encountered, removes the instance and applies the transform to its vertices, duplicating vertices if necessary. More...
|
|
int | getDepth () |
| Returns the number of nodes above this node in the egg hierarchy. More...
|
|
const LMatrix4d | getNodeFrame () |
| Returns the coordinate frame of the node itself. This is simply the net product of all transformations up to the root. More...
|
|
const LMatrix4d | getNodeFrameInv () |
| Returns the inverse of the matrix returned by get_node_frame(). See get_node_frame(). More...
|
|
const LMatrix4d | getNodeFrameInvPtr () |
| Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_frame_inv() matrix. More...
|
|
const LMatrix4d | getNodeFramePtr () |
| Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_frame() matrix. More...
|
|
const LMatrix4d | getNodeToVertex () |
| Returns the transformation matrix suitable for converting vertices in the coordinate space of the node to the appropriate coordinate space for storing in the egg file. This is the same thing as: More...
|
|
const LMatrix4d | getNodeToVertexPtr () |
| Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_to_vertex() matrix. More...
|
|
EggGroupNode | getParent () |
|
const LMatrix4d | getVertexFrame () |
| Returns the coordinate frame of the vertices referenced by primitives at or under this node. This is not the same as get_node_frame(). More...
|
|
const LMatrix4d | getVertexFrameInv () |
| Returns the inverse of the matrix returned by get_vertex_frame(). See get_vertex_frame(). More...
|
|
const LMatrix4d | getVertexFrameInvPtr () |
| Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_frame_inv() matrix. More...
|
|
const LMatrix4d | getVertexFramePtr () |
| Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_frame() matrix. More...
|
|
const LMatrix4d | getVertexToNode () |
| Returns the transformation matrix suitable for converting the vertices as read from the egg file into the coordinate space of the node. This is the same thing as: More...
|
|
const LMatrix4d | getVertexToNodePtr () |
| Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_to_node() matrix. More...
|
|
bool | isAnimMatrix () |
| Returns true if this node represents a table of animation transformation data, false otherwise. More...
|
|
bool | isJoint () |
| Returns true if this particular node represents a <Joint> entry or not. This is a handy thing to know since Joints are sorted to the end of their sibling list when writing an egg file. See EggGroupNode::write(). More...
|
|
bool | isLocalCoord () |
| Returns true if this node's vertices are not in the global coordinate space. This will be the case if there was an <Instance> node under a transform at or above this node. More...
|
|
bool | isUnderInstance () |
| Returns true if there is an <Instance> node somewhere in the egg tree at or above this node, false otherwise. More...
|
|
bool | isUnderTransform () |
| Returns true if there is a <Transform> entry somewhere in the egg tree at or above this node, false otherwise. More...
|
|
EggNode | operator= (const EggNode copy) |
|
bool | parseEgg (str egg_syntax) |
| Parses the egg syntax given in the indicate string as if it had been read from the egg file within this object's definition. Updates the object accordingly. Returns true if successful, false if there was some parse error or if the object does not support this functionality. More...
|
|
int | renameNode (VectorString strip_prefix) |
| Rename by stripping out the prefix. More...
|
|
| testUnderIntegrity () |
|
| transform (const LMatrix4d mat) |
| Applies the indicated transformation to the node and all of its descendants. More...
|
|
| transformVerticesOnly (const LMatrix4d mat) |
| Applies the indicated transformation only to vertices that appear in global space within vertex pools at this node and below. Joints and other transforms are not affected, nor are local vertices. More...
|
|
| write (Ostream out, int indent_level) |
|
Public Member Functions inherited from EggNamedObject |
| __init__ (const EggNamedObject copy) |
|
| __init__ (str name) |
|
EggNamedObject | operator= (const EggNamedObject copy) |
|
| output (Ostream out) |
|
Public Member Functions inherited from EggObject |
| __init__ () |
|
| __init__ (const EggObject copy) |
|
| clearUserData () |
| Removes all user data pointers from the node. More...
|
|
| clearUserData (TypeHandle type) |
| Removes the user data pointer of the indicated type. More...
|
|
EggUserData | getUserData () |
| Returns the user data pointer most recently stored on this object, or NULL if nothing was previously stored. More...
|
|
EggUserData | getUserData (TypeHandle type) |
| Returns the user data pointer of the indicated type, if it exists, or NULL if it does not. More...
|
|
bool | hasUserData () |
| Returns true if a generic user data pointer has recently been set and not yet cleared, false otherwise. More...
|
|
bool | hasUserData (TypeHandle type) |
| Returns true if the user data pointer of the indicated type has been set, false otherwise. More...
|
|
EggObject | operator= (const EggObject copy) |
|
| setUserData (EggUserData user_data) |
| Sets the user data associated with this object. This may be any EggUserData-derived object. The egg library will do nothing with this pointer, except to hold its reference count and return the pointer on request. More...
|
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
| Derived classes should override this function to return get_class_type(). More...
|
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly. More...
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type. More...
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count. More...
|
|
| ref () |
| Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
|
|
bool | unref () |
| Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
|
|
Public Member Functions inherited from Namable |
| __init__ (const Namable copy) |
|
| __init__ (str initial_name) |
|
| clearName () |
| Resets the Namable's name to empty. More...
|
|
str | getName () |
|
bool | hasName () |
| Returns true if the Namable has a nonempty name set, false if the name is empty. More...
|
|
Namable | operator= (const Namable other) |
|
| output (Ostream out) |
| Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this. More...
|
|
| setName (str name) |
|
Public Member Functions inherited from EggRenderMode |
| __init__ () |
|
| __init__ (const EggRenderMode copy) |
|
| clearBin () |
| Removes the bin name that was set for this particular object. See set_bin(). More...
|
|
| clearDepthOffset () |
| Removes the depth-offset flag from this particular object. See set_depth_offset(). More...
|
|
| clearDrawOrder () |
| Removes the draw-order flag from this particular object. See set_draw_order(). More...
|
|
EggRenderMode::AlphaMode | getAlphaMode () |
| Returns the alpha mode that was set, or AM_unspecified if nothing was set. See set_alpha_mode(). More...
|
|
str | getBin () |
| Returns the bin name that has been set for this particular object, if any. See set_bin(). More...
|
|
int | getDepthOffset () |
| Returns the "depth-offset" flag as set for this particular object. See set_depth_offset(). More...
|
|
EggRenderMode::DepthTestMode | getDepthTestMode () |
| Returns the depth_test mode that was set, or DTM_unspecified if nothing was set. See set_depth_test_mode(). More...
|
|
EggRenderMode::DepthWriteMode | getDepthWriteMode () |
| Returns the depth_write mode that was set, or DWM_unspecified if nothing was set. See set_depth_write_mode(). More...
|
|
int | getDrawOrder () |
| Returns the "draw-order" flag as set for this particular object. See set_draw_order(). More...
|
|
EggRenderMode::VisibilityMode | getVisibilityMode () |
| Returns the visibility mode that was set, or VM_unspecified if nothing was set. See set_visibility_mode(). More...
|
|
bool | hasBin () |
| Returns true if a bin name has been set for this particular object. See set_bin(). More...
|
|
bool | hasDepthOffset () |
| Returns true if the depth-offset flag has been set for this particular object. See set_depth_offset(). More...
|
|
bool | hasDrawOrder () |
| Returns true if the draw-order flag has been set for this particular object. See set_draw_order(). More...
|
|
bool | operator!= (const EggRenderMode other) |
|
bool | operator< (const EggRenderMode other) |
|
EggRenderMode | operator= (const EggRenderMode copy) |
|
bool | operator== (const EggRenderMode other) |
| Comparison operators are handy. More...
|
|
| setAlphaMode (EggRenderMode::AlphaMode mode) |
| Specifies precisely how the transparency for this geometry should be achieved, or if it should be used. The default, AM_unspecified, is to use transparency if the geometry has a color whose alpha value is non-1, or if it has a four-channel texture applied; otherwise, AM_on forces transparency on, and AM_off forces it off. The other flavors of transparency are specific ways to turn on transparency, which may or may not be supported by a particular rendering backend. More...
|
|
| setBin (str bin) |
| Sets the "bin" string for this particular object. This names a particular bin in which the object should be rendered. The exact meaning of a bin is implementation defined, but generally a GeomBin matching each bin name must also be specifically added to the rendering engine (e.g. the CullTraverser) in use for this to work. See also set_draw_order(). More...
|
|
| setDepthOffset (int bias) |
| Sets the "depth-offset" flag associated with this object. This adds or subtracts an offset bias into the depth buffer. See also DepthOffsetAttrib and NodePath::set_depth_offset(). More...
|
|
| setDepthTestMode (EggRenderMode::DepthTestMode mode) |
| Specifies whether this geometry should be tested against the depth buffer when it is drawn (assuming the rendering backend provides a depth buffer). Note that this is different, and independent from, the depth_write mode. More...
|
|
| setDepthWriteMode (EggRenderMode::DepthWriteMode mode) |
| Specifies whether writes should be made to the depth buffer (assuming the rendering backend provides a depth buffer) when rendering this geometry. More...
|
|
| setDrawOrder (int order) |
| Sets the "draw-order" flag associated with this object. This specifies a particular order in which objects of this type should be drawn, within the specified bin. If a bin is not explicitly specified, "fixed" is used. See also set_bin(). More...
|
|
| setVisibilityMode (EggRenderMode::VisibilityMode mode) |
| Specifies whether this geometry is to be considered normally visible, or hidden. If it is hidden, it is either not loaded into the scene graph at all, or loaded as a "stashed" node, according to the setting of egg-suppress-hidden. More...
|
|
| write (Ostream out, int indent_level) |
| Writes the attributes to the indicated output stream in Egg format. More...
|
|
Public Member Functions inherited from EggTransform |
| __init__ () |
|
| __init__ (const EggTransform copy) |
|
| addMatrix3 (const LMatrix3d mat) |
| Appends an arbitrary 3x3 matrix to the current transform. More...
|
|
| addMatrix4 (const LMatrix4d mat) |
| Appends an arbitrary 4x4 matrix to the current transform. More...
|
|
| addRotate2d (double angle) |
| Appends a 2-d rotation to the current transform. The rotation angle is specified in degrees counterclockwise about the origin. More...
|
|
| addRotate3d (const LQuaterniond quat) |
| Appends an arbitrary 3-d rotation to the current transform, expressed as a quaternion. This is converted to axis-angle notation for the egg file. More...
|
|
| addRotate3d (double angle, const LVector3d axis) |
| Appends a 3-d rotation about an arbitrary axis to the current transform. The rotation angle is specified in degrees counterclockwise about the axis. More...
|
|
| addRotx (double angle) |
| Appends a rotation about the X axis to the current transform. The rotation angle is specified in degrees counterclockwise about the axis. More...
|
|
| addRoty (double angle) |
| Appends a rotation about the Y axis to the current transform. The rotation angle is specified in degrees counterclockwise about the axis. More...
|
|
| addRotz (double angle) |
| Appends a rotation about the Z axis to the current transform. The rotation angle is specified in degrees counterclockwise about the axis. More...
|
|
| addScale2d (const LVecBase2d scale) |
| Appends a possibly non-uniform scale to the current transform. More...
|
|
| addScale3d (const LVecBase3d scale) |
| Appends a possibly non-uniform scale to the current transform. More...
|
|
| addTranslate2d (const LVector2d translate) |
| Appends a 2-d translation operation to the current transform. More...
|
|
| addTranslate3d (const LVector3d translate) |
| Appends a 3-d translation operation to the current transform. More...
|
|
| addUniformScale (double scale) |
| Appends a uniform scale to the current transform. More...
|
|
| clearTransform () |
| Resets the transform to empty, identity. More...
|
|
const LMatrix3d | getComponentMat3 (int n) |
| Returns the 3x3 matrix associated with the nth component. It is an error to call this if the component type is not CT_matrix3. More...
|
|
const LMatrix4d | getComponentMat4 (int n) |
| Returns the 4x4 matrix associated with the nth component. It is an error to call this if the component type is not CT_matrix4. More...
|
|
double | getComponentNumber (int n) |
| Returns the solitary number associated with the nth component. In the case of a rotation, this is the angle in degrees to rotate; in the case of uniform scale, this is the amount of the scale. Other types do not use this property. More...
|
|
EggTransform::ComponentType | getComponentType (int n) |
| Returns the type of the nth component. More...
|
|
const LVecBase2d | getComponentVec2 (int n) |
| Returns the 2-component vector associated with the nth component. This may be the translate vector, rotate axis, or non-uniform scale. It is an error to call this if the component type does not use a 2-d vector property. More...
|
|
const LVecBase3d | getComponentVec3 (int n) |
| Returns the 3-component vector associated with the nth component. This may be the translate vector, rotate axis, or non-uniform scale. It is an error to call this if the component type does not use a 3-d vector property. More...
|
|
int | getNumComponents () |
| Returns the number of components that make up the transform. More...
|
|
LMatrix3d | getTransform2d () |
| Returns the overall transform as a 3x3 matrix. It is an error to call this if has_transform3d() is true. More...
|
|
const LMatrix4d | getTransform3d () |
| Returns the overall transform as a 4x4 matrix. It is valid to call this even if has_transform2d() is true; in this case, the 3x3 transform will be expanded to a 4x4 matrix. More...
|
|
bool | hasTransform () |
| Returns true if the transform is nonempty, false if it is empty (no transform components have been added). This is true for either a 2-d or a 3-d transform. More...
|
|
bool | hasTransform2d () |
| Returns true if the transform is specified as a 2-d transform, e.g. with a 3x3 matrix, or false if it is specified as a 3-d transform (with a 4x4 matrix), or not specified at all. More...
|
|
bool | hasTransform3d () |
| Returns true if the transform is specified as a 3-d transform, e.g. with a 4x4 matrix, or false if it is specified as a 2-d transform (with a 2x2 matrix), or not specified at all. More...
|
|
EggTransform | operator= (const EggTransform copy) |
|
| setTransform2d (const LMatrix3d mat) |
| Sets the overall transform as a 3x3 matrix. This completely replaces whatever componentwise transform may have been defined. More...
|
|
| setTransform3d (const LMatrix4d mat) |
| Sets the overall transform as a 4x4 matrix. This completely replaces whatever componentwise transform may have been defined. More...
|
|
bool | transformIsIdentity () |
| Returns true if the described transform is identity, false otherwise. More...
|
|
| write (Ostream out, int indent_level, str label) |
| Writes the transform to the indicated stream in Egg format. More...
|
|