Panda3D
pandatool
src
lwoegg
cLwoSurface.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 cLwoSurface.I
10
* @author drose
11
* @date 2001-04-25
12
*/
13
14
/**
15
* Returns the name of the surface. Each surface in a given Lightwave file
16
* should have a unique name.
17
*/
18
INLINE
const
std::string &
CLwoSurface::
19
get_name
()
const
{
20
return
_surface->_name;
21
}
22
23
/**
24
* Returns true if the surface is set up to reference UV's stored on the
25
* vertices, by name (as opposed to generated UV's, which is the more common
26
* Lightwave case). In this case, get_uv_name() can be called to return the
27
* name of the UV's.
28
*/
29
INLINE
bool
CLwoSurface::
30
has_named_uvs
()
const
{
31
return
(_block !=
nullptr
&&
32
_block->_projection_mode == LwoSurfaceBlockProjection::M_uv);
33
}
34
35
/**
36
* Returns the name of the set of UV's that are associated with this surface,
37
* if has_named_uvs() is true.
38
*/
39
INLINE
const
std::string &
CLwoSurface::
40
get_uv_name
()
const
{
41
return
_block->_uv_name;
42
}
CLwoSurface::get_name
const std::string & get_name() const
Returns the name of the surface.
Definition:
cLwoSurface.I:19
CLwoSurface::has_named_uvs
bool has_named_uvs() const
Returns true if the surface is set up to reference UV's stored on the vertices, by name (as opposed t...
Definition:
cLwoSurface.I:30
CLwoSurface::get_uv_name
const std::string & get_uv_name() const
Returns the name of the set of UV's that are associated with this surface, if has_named_uvs() is true...
Definition:
cLwoSurface.I:40
Generated on Mon Sep 14 2020 15:07:11 for Panda3D by
1.8.20