45 unsigned char *DynamicTextGlyph::
47 nassertr(y >= 0 && y < _y_size - _margin * 2,
nullptr);
48 nassertr(_page !=
nullptr,
nullptr);
56 y = _page->get_y_size() - 1 - y;
58 int offset = (y * _page->get_x_size()) + x;
59 int pixel_width = _page->get_num_components() * _page->get_component_width();
61 return _page->modify_ram_image() + offset * pixel_width;
67 void DynamicTextGlyph::
68 erase(DynamicTextFont *font) {
69 nassertv(_page !=
nullptr);
70 nassertv(_page->has_ram_image());
75 _page->fill_region(_x + _margin,
76 _page->get_y_size() - (_y + _y_size - _margin),
77 _x_size - _margin * 2, _y_size - _margin * 2,
85 bool DynamicTextGlyph::
86 is_whitespace()
const {
87 return (_page ==
nullptr);
90 #endif // HAVE_FREETYPE PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.