Panda3D

cLwoSurface.I

00001 // Filename: cLwoSurface.I
00002 // Created by:  drose (25Apr01)
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: CLwoSurface::get_name
00018 //       Access: Public
00019 //  Description: Returns the name of the surface.  Each surface in a
00020 //               given Lightwave file should have a unique name.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE const string &CLwoSurface::
00023 get_name() const {
00024   return _surface->_name;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: CLwoSurface::has_named_uvs
00029 //       Access: Public
00030 //  Description: Returns true if the surface is set up to reference
00031 //               UV's stored on the vertices, by name (as opposed to
00032 //               generated UV's, which is the more common Lightwave
00033 //               case).  In this case, get_uv_name() can be called to
00034 //               return the name of the UV's.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE bool CLwoSurface::
00037 has_named_uvs() const {
00038   return (_block != (CLwoSurfaceBlock *)NULL &&
00039           _block->_projection_mode == LwoSurfaceBlockProjection::M_uv);
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: CLwoSurface::get_uv_name
00044 //       Access: Public
00045 //  Description: Returns the name of the set of UV's that are
00046 //               associated with this surface, if has_named_uvs() is
00047 //               true.
00048 ////////////////////////////////////////////////////////////////////
00049 INLINE const string &CLwoSurface::
00050 get_uv_name() const {
00051   return _block->_uv_name;
00052 }
 All Classes Functions Variables Enumerations