Panda3D
|
00001 // Filename: compassEffect.I 00002 // Created by: drose (16Jul02) 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: CompassEffect::Constructor 00018 // Access: Private 00019 // Description: Use CompassEffect::make() to construct a new 00020 // CompassEffect object. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE CompassEffect:: 00023 CompassEffect() { 00024 _properties = 0; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: CompassEffect::get_reference 00029 // Access: Published 00030 // Description: Returns the reference node from which the 00031 // CompassEffect inherits its transform. If this is 00032 // empty, it means the root of the scene graph. 00033 //////////////////////////////////////////////////////////////////// 00034 INLINE const NodePath &CompassEffect:: 00035 get_reference() const { 00036 return _reference; 00037 } 00038 00039 //////////////////////////////////////////////////////////////////// 00040 // Function: CompassEffect::get_properties 00041 // Access: Published 00042 // Description: 00043 00044 // Returns the bitmask of properties that this 00045 // CompassEffect object inherits from its reference node 00046 // (or from the root). 00047 //////////////////////////////////////////////////////////////////// 00048 INLINE int CompassEffect:: 00049 get_properties() const { 00050 return _properties; 00051 }