Panda3D

texturePeeker.I

00001 // Filename: texturePeeker.I
00002 // Created by:  drose (26Aug08)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: TexturePeeker::is_valid
00018 //       Access: Public
00019 //  Description: Returns true if the TexturePeeker was able to
00020 //               initialize itself and is ready to return texel
00021 //               colors.
00022 ////////////////////////////////////////////////////////////////////
00023 INLINE bool TexturePeeker::
00024 is_valid() const {
00025   return !_image.is_null();
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: TexturePeeker::get_x_size
00030 //       Access: Published
00031 //  Description: Returns the width of the texture image that is
00032 //               contributing to the TexturePeeker's information.
00033 //               This may be either the Texture's full width, or its
00034 //               simple ram image's width.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE int TexturePeeker::
00037 get_x_size() const {
00038   return _x_size;
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: TexturePeeker::get_y_size
00043 //       Access: Published
00044 //  Description: Returns the height of the texture image that is
00045 //               contributing to the TexturePeeker's information.
00046 //               This may be either the Texture's full height, or its
00047 //               simple ram image's height.
00048 ////////////////////////////////////////////////////////////////////
00049 INLINE int TexturePeeker::
00050 get_y_size() const {
00051   return _y_size;
00052 }
00053 
00054 ////////////////////////////////////////////////////////////////////
00055 //     Function: TexturePeeker::get_z_size
00056 //       Access: Published
00057 //  Description: Returns the depth of the texture image that is
00058 //               contributing to the TexturePeeker's information.
00059 ////////////////////////////////////////////////////////////////////
00060 INLINE int TexturePeeker::
00061 get_z_size() const {
00062   return _z_size;
00063 }
00064 
 All Classes Functions Variables Enumerations