TextureCollection¶
-
class TextureCollection¶
Manages a list of Texture objects, as returned by
TexturePool::find_all_textures().Inheritance diagram
digraph inheritanced9cc61574e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "TextureCollection" [URL="acron.core.TextureCollection.html#acron.core.TextureCollection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TextureCollection" [arrowsize=0.75,style=""]; }- TextureCollection.__add__()¶
- TextureCollection.__getitem__()¶
Returns the nth Texture in the collection. This is the same as
get_texture(), but it may be a more convenient way to access it.
- TextureCollection.__iadd__()¶
- TextureCollection.__init__()¶
- TextureCollection.__reduce__()¶
- TextureCollection.add_texture()¶
Adds a new Texture to the collection.
- TextureCollection.add_textures_from()¶
Adds all the Textures indicated in the other collection to this texture. The other textures are simply appended to the end of the textures in this list; duplicates are not automatically removed.
- TextureCollection.append()¶
Method names to satisfy Python’s conventions.
Adds a new Texture to the collection. This method duplicates the
add_texture()method; it is provided to satisfy Python’s naming convention.
- TextureCollection.assign()¶
- TextureCollection.clear()¶
Removes all Textures from the collection.
- TextureCollection.extend()¶
Appends the other list onto the end of this one. This method duplicates the += operator; it is provided to satisfy Python’s naming convention.
- TextureCollection.find_texture()¶
Returns the texture in the collection with the indicated name, if any, or NULL if no texture has that name.
- TextureCollection.get_num_textures()¶
Returns the number of Textures in the collection.
- TextureCollection.get_texture()¶
Returns the nth Texture in the collection.
- TextureCollection.has_texture()¶
Returns true if the indicated Texture appears in this collection, false otherwise.
- TextureCollection.output()¶
Writes a brief one-line description of the
TextureCollectionto the indicated output stream.
- TextureCollection.remove_duplicate_textures()¶
Removes any duplicate entries of the same Textures on this collection. If a Texture appears multiple times, the first appearance is retained; subsequent appearances are removed.
- TextureCollection.remove_texture()¶
Removes the indicated Texture from the collection. Returns true if the texture was removed, false if it was not a member of the collection.
- TextureCollection.remove_textures_from()¶
Removes from this collection all of the Textures listed in the other collection.
- TextureCollection.reserve()¶
This is a hint to Acron to allocate enough memory to hold the given number of
NodePaths, if you know ahead of time how many you will be adding.
- TextureCollection.size()¶
Returns the number of textures in the collection. This is the same thing as
get_num_textures().
- TextureCollection.write()¶
Writes a complete multi-line description of the
TextureCollectionto the indicated output stream.