19 INLINE
bool GeomVertexArrayFormat::
20 is_registered()
const {
21 return _is_registered;
42 INLINE
int GeomVertexArrayFormat::
54 nassertv(!_is_registered);
55 nassertv(_stride >= _total_bytes);
66 INLINE
int GeomVertexArrayFormat::
80 nassertv(pad_to >= 1);
83 _stride = ((_stride + _pad_to - 1) / _pad_to) * _pad_to;
91 INLINE
int GeomVertexArrayFormat::
103 nassertv(divisor >= 0);
111 INLINE
int GeomVertexArrayFormat::
112 get_total_bytes()
const {
119 INLINE
int GeomVertexArrayFormat::
120 get_num_columns()
const {
121 return (
int)_columns.size();
129 nassertr(i >= 0 && i < (
int)_columns.size(),
nullptr);
130 consider_sort_columns();
131 return _columns[(size_t)i];
145 INLINE GeomVertexArrayFormat::Registry *GeomVertexArrayFormat::
147 if (_registry ==
nullptr) {
156 INLINE
void GeomVertexArrayFormat::
157 consider_sort_columns()
const {
158 if (_columns_unsorted) {
163 INLINE std::ostream &
This defines how a single column is interleaved within a vertex array stored within a Geom.
Encodes a string name in a hash table, mapping it to a pointer.