Panda3D
texturePeeker.I
1 // Filename: texturePeeker.I
2 // Created by: drose (26Aug08)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: TexturePeeker::is_valid
18 // Access: Public
19 // Description: Returns true if the TexturePeeker was able to
20 // initialize itself and is ready to return texel
21 // colors.
22 ////////////////////////////////////////////////////////////////////
23 INLINE bool TexturePeeker::
24 is_valid() const {
25  return !_image.is_null();
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: TexturePeeker::get_x_size
30 // Access: Published
31 // Description: Returns the width of the texture image that is
32 // contributing to the TexturePeeker's information.
33 // This may be either the Texture's full width, or its
34 // simple ram image's width.
35 ////////////////////////////////////////////////////////////////////
36 INLINE int TexturePeeker::
37 get_x_size() const {
38  return _x_size;
39 }
40 
41 ////////////////////////////////////////////////////////////////////
42 // Function: TexturePeeker::get_y_size
43 // Access: Published
44 // Description: Returns the height of the texture image that is
45 // contributing to the TexturePeeker's information.
46 // This may be either the Texture's full height, or its
47 // simple ram image's height.
48 ////////////////////////////////////////////////////////////////////
49 INLINE int TexturePeeker::
50 get_y_size() const {
51  return _y_size;
52 }
53 
54 ////////////////////////////////////////////////////////////////////
55 // Function: TexturePeeker::get_z_size
56 // Access: Published
57 // Description: Returns the depth of the texture image that is
58 // contributing to the TexturePeeker's information.
59 ////////////////////////////////////////////////////////////////////
60 INLINE int TexturePeeker::
61 get_z_size() const {
62  return _z_size;
63 }
64 
int get_z_size() const
Returns the depth of the texture image that is contributing to the TexturePeeker's information...
Definition: texturePeeker.I:61
int get_y_size() const
Returns the height of the texture image that is contributing to the TexturePeeker's information...
Definition: texturePeeker.I:50
bool is_valid() const
Returns true if the TexturePeeker was able to initialize itself and is ready to return texel colors...
Definition: texturePeeker.I:24
bool is_null() const
Returns true if the PointerTo is a NULL pointer, false otherwise.
Definition: pointerToVoid.I:54
int get_x_size() const
Returns the width of the texture image that is contributing to the TexturePeeker's information...
Definition: texturePeeker.I:37