Panda3D
|
00001 // Filename: dynamicTextPage.I 00002 // Created by: drose (09Feb02) 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: DynamicTextPage::get_x_size 00018 // Access: Published 00019 // Description: Returns the x size of the page (texture), in pixels. 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE int DynamicTextPage:: 00022 get_x_size() const { 00023 return _x_size; 00024 } 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Function: DynamicTextPage::get_y_size 00028 // Access: Published 00029 // Description: Returns the y size of the page (texture), in pixels. 00030 //////////////////////////////////////////////////////////////////// 00031 INLINE int DynamicTextPage:: 00032 get_y_size() const { 00033 return _y_size; 00034 } 00035 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: DynamicTextPage::is_empty 00039 // Access: Published 00040 // Description: Returns true if the page has no glyphs, false 00041 // otherwise. 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE bool DynamicTextPage:: 00044 is_empty() const { 00045 return _glyphs.empty(); 00046 }