forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynamicTextPage.I
More file actions
44 lines (40 loc) · 927 Bytes
/
dynamicTextPage.I
File metadata and controls
44 lines (40 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file dynamicTextPage.I
* @author drose
* @date 2002-02-09
*/
/**
* Returns the size of the page (texture), in pixels.
*/
INLINE const LVecBase2i &DynamicTextPage::
get_size() const {
return _size;
}
/**
* Returns the x size of the page (texture), in pixels.
*/
INLINE int DynamicTextPage::
get_x_size() const {
return _size.get_x();
}
/**
* Returns the y size of the page (texture), in pixels.
*/
INLINE int DynamicTextPage::
get_y_size() const {
return _size.get_y();
}
/**
* Returns true if the page has no glyphs, false otherwise.
*/
INLINE bool DynamicTextPage::
is_empty() const {
return _glyphs.empty();
}