21 return _max_collect_vertices;
31 _max_collect_vertices = max_collect_vertices;
37 INLINE
bool GeomTransformer::SourceVertices::
38 operator < (
const GeomTransformer::SourceVertices &other)
const {
39 if (_vertex_data != other._vertex_data) {
40 return _vertex_data < other._vertex_data;
42 return (_mat.compare_to(other._mat) < 0);
48 INLINE
bool GeomTransformer::SourceTexCoords::
49 operator < (
const GeomTransformer::SourceTexCoords &other)
const {
50 if (_vertex_data != other._vertex_data) {
51 return _vertex_data < other._vertex_data;
53 if (_from != other._from) {
54 return _from < other._from;
56 if (_to != other._to) {
57 return _to < other._to;
59 return (_mat.compare_to(other._mat) < 0);
65 INLINE
bool GeomTransformer::SourceColors::
66 operator < (
const GeomTransformer::SourceColors &other)
const {
67 if (_vertex_data != other._vertex_data) {
68 return _vertex_data < other._vertex_data;
70 return (_color.compare_to(other._color) < 0);
76 INLINE
bool GeomTransformer::SourceTextureColors::
77 operator < (
const GeomTransformer::SourceTextureColors &other)
const {
78 if (_vertex_data != other._vertex_data) {
79 return _vertex_data < other._vertex_data;
81 if (_tex != other._tex) {
82 return _tex < other._tex;
84 if (_ts != other._ts) {
85 return _ts < other._ts;
87 if (_tma != other._tma) {
88 return _tma < other._tma;
90 if (_keep_vertex_color != other._keep_vertex_color) {
91 return (
int)_keep_vertex_color < (int)other._keep_vertex_color;
93 return (_base_color.compare_to(other._base_color) < 0);
99 INLINE
bool GeomTransformer::SourceFormat::
100 operator < (
const GeomTransformer::SourceFormat &other)
const {
101 if (_format != other._format) {
102 return _format < other._format;
104 return _vertex_data < other._vertex_data;
110 INLINE
bool GeomTransformer::NewCollectedKey::
111 operator < (
const GeomTransformer::NewCollectedKey &other)
const {
112 if (_format != other._format) {
113 return _format < other._format;
115 if (_usage_hint != other._usage_hint) {
116 return (
int)_usage_hint < (int)other._usage_hint;
118 if (_animation_type != other._animation_type) {
119 return (
int)_animation_type < (int)other._animation_type;
121 return _name < other._name;
127 INLINE GeomTransformer::VertexDataAssoc::
129 _might_have_unused =
false;