17 INLINE GeomVertexColumn::
26 INLINE GeomVertexColumn::
28 NumericType numeric_type, Contents contents,
29 int start,
int column_alignment,
int num_elements,
31 _name(std::move(name)),
32 _num_components(num_components),
33 _numeric_type(numeric_type),
36 _column_alignment(column_alignment),
37 _num_elements(num_elements),
38 _element_stride(element_stride),
47 INLINE GeomVertexColumn::
50 _num_components(copy._num_components),
51 _numeric_type(copy._numeric_type),
52 _contents(copy._contents),
54 _column_alignment(copy._column_alignment),
55 _num_elements(copy._num_elements),
56 _element_stride(copy._element_stride),
65 INLINE GeomVertexColumn::
88 return _num_components;
109 return _num_elements;
117 return _numeric_type;
145 return _column_alignment;
154 return _element_stride;
163 return _component_bytes;
200 return (_start < start_byte + num_bytes &&
201 _start + _total_bytes > start_byte);
211 return (_num_components == other._num_components &&
212 _numeric_type == other._numeric_type &&
213 _contents == other._contents);
222 return (_num_components == 1 &&
223 _numeric_type == NT_packed_dabc &&
224 _contents == C_color);
233 return (_num_components == 4 &&
234 _numeric_type == NT_uint8 &&
235 _contents == C_color);
244 if (_name != other._name) {
245 return _name < other._name ? -1 : 1;
247 if (_num_components != other._num_components) {
248 return _num_components - other._num_components;
250 if (_numeric_type != other._numeric_type) {
251 return (
int)_numeric_type - (int)other._numeric_type;
253 if (_contents != other._contents) {
254 return (
int)_contents - (int)other._contents;
256 if (_start != other._start) {
257 return _start - other._start;
259 if (_column_alignment != other._column_alignment) {
260 return _column_alignment - other._column_alignment;
262 if (_num_elements != other._num_elements) {
263 return _num_elements - other._num_elements;
265 if (_element_stride != other._element_stride) {
266 return _element_stride - other._element_stride;
282 INLINE
bool GeomVertexColumn::
294 if (_start != other._start) {
295 return _start < other._start;
297 if (_total_bytes < other._total_bytes) {
298 return _total_bytes < other._total_bytes;
303 INLINE std::ostream &