Panda3D

Loading...
Searching...
No Matches
textureCollection.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file textureCollection.I
10 * @author drose
11 * @date 2002-03-16
12 */
13
14/**
15 *
16 */
17INLINE TextureCollection::
18~TextureCollection() {
19}
20
21/**
22 * Appends the other list onto the end of this one.
23 */
24INLINE void TextureCollection::
25 operator += (const TextureCollection &other) {
26 add_textures_from(other);
27}
28
29/**
30 * Returns a TextureCollection representing the concatenation of the two
31 * lists.
32 */
33INLINE TextureCollection TextureCollection::
34 operator + (const TextureCollection &other) const {
35 TextureCollection a(*this);
36 a += other;
37 return a;
38}
39
40/**
41 * Adds a new Texture to the collection. This method duplicates the
42 * add_texture() method; it is provided to satisfy Python's naming convention.
43 */
44 void TextureCollection::
45 append(Texture *texture) {
46 add_texture(texture);
47}
48
49/**
50 * Appends the other list onto the end of this one. This method duplicates
51 * the += operator; it is provided to satisfy Python's naming convention.
52 */
53INLINE void TextureCollection::
54 extend(const TextureCollection &other) {
55 operator += (other);
56}
TextureCollection::extend
void extend(const TextureCollection &other)
Appends the other list onto the end of this one.
Definition textureCollection.I:54
TextureCollection::add_texture
void add_texture(Texture *texture)
Adds a new Texture to the collection.
Definition textureCollection.cxx:45
TextureCollection::operator+=
void operator+=(const TextureCollection &other)
Appends the other list onto the end of this one.
Definition textureCollection.I:25
TextureCollection::append
void append(Texture *texture)
Adds a new Texture to the collection.
Definition textureCollection.I:45
TextureCollection::add_textures_from
void add_textures_from(const TextureCollection &other)
Adds all the Textures indicated in the other collection to this texture.
Definition textureCollection.cxx:97
TextureCollection::operator+
TextureCollection operator+(const TextureCollection &other) const
Returns a TextureCollection representing the concatenation of the two lists.
Definition textureCollection.I:34
Texture
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
Definition texture.h:72