| 1 |
/**************************************************************************/ |
| 2 |
/* gltf_accessor.compat.inc */ |
| 3 |
/**************************************************************************/ |
| 4 |
/* This file is part of: */ |
| 5 |
/* GODOT ENGINE */ |
| 6 |
/* https://godotengine.org */ |
| 7 |
/**************************************************************************/ |
| 8 |
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ |
| 9 |
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ |
| 10 |
/* */ |
| 11 |
/* Permission is hereby granted, free of charge, to any person obtaining */ |
| 12 |
/* a copy of this software and associated documentation files (the */ |
| 13 |
/* "Software"), to deal in the Software without restriction, including */ |
| 14 |
/* without limitation the rights to use, copy, modify, merge, publish, */ |
| 15 |
/* distribute, sublicense, and/or sell copies of the Software, and to */ |
| 16 |
/* permit persons to whom the Software is furnished to do so, subject to */ |
| 17 |
/* the following conditions: */ |
| 18 |
/* */ |
| 19 |
/* The above copyright notice and this permission notice shall be */ |
| 20 |
/* included in all copies or substantial portions of the Software. */ |
| 21 |
/* */ |
| 22 |
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ |
| 23 |
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ |
| 24 |
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ |
| 25 |
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ |
| 26 |
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ |
| 27 |
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ |
| 28 |
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ |
| 29 |
/**************************************************************************/ |
| 30 |
|
| 31 |
#ifndef DISABLE_DEPRECATED |
| 32 |
|
| 33 |
// 32-bit versions for compatibility. |
| 34 |
|
| 35 |
GLTFBufferViewIndex GLTFAccessor::_get_buffer_view_bind_compat_106220() { |
| 36 |
return get_buffer_view(); |
| 37 |
} |
| 38 |
|
| 39 |
int GLTFAccessor::_get_byte_offset_bind_compat_106220() { |
| 40 |
return get_byte_offset(); |
| 41 |
} |
| 42 |
|
| 43 |
int GLTFAccessor::_get_component_type_bind_compat_106220() { |
| 44 |
return (int)get_component_type(); |
| 45 |
} |
| 46 |
|
| 47 |
void GLTFAccessor::_set_component_type_bind_compat_106220(int p_component_type) { |
| 48 |
set_component_type((GLTFComponentType)p_component_type); |
| 49 |
} |
| 50 |
|
| 51 |
bool GLTFAccessor::_get_normalized_bind_compat_106220() { |
| 52 |
return get_normalized(); |
| 53 |
} |
| 54 |
|
| 55 |
int GLTFAccessor::_get_count_bind_compat_106220() { |
| 56 |
return get_count(); |
| 57 |
} |
| 58 |
|
| 59 |
GLTFAccessor::GLTFAccessorType GLTFAccessor::_get_accessor_type_bind_compat_106220() { |
| 60 |
return get_accessor_type(); |
| 61 |
} |
| 62 |
|
| 63 |
int GLTFAccessor::_get_type_bind_compat_106220() { |
| 64 |
return (int)get_accessor_type(); |
| 65 |
} |
| 66 |
|
| 67 |
Vector<double> GLTFAccessor::_get_min_bind_compat_106220() { |
| 68 |
return get_min(); |
| 69 |
} |
| 70 |
|
| 71 |
Vector<double> GLTFAccessor::_get_max_bind_compat_106220() { |
| 72 |
return get_max(); |
| 73 |
} |
| 74 |
|
| 75 |
int GLTFAccessor::_get_sparse_count_bind_compat_106220() { |
| 76 |
return get_sparse_count(); |
| 77 |
} |
| 78 |
|
| 79 |
int GLTFAccessor::_get_sparse_indices_buffer_view_bind_compat_106220() { |
| 80 |
return get_sparse_indices_buffer_view(); |
| 81 |
} |
| 82 |
|
| 83 |
int GLTFAccessor::_get_sparse_indices_byte_offset_bind_compat_106220() { |
| 84 |
return get_sparse_indices_byte_offset(); |
| 85 |
} |
| 86 |
|
| 87 |
int GLTFAccessor::_get_sparse_indices_component_type_bind_compat_106220() { |
| 88 |
return (int)get_sparse_indices_component_type(); |
| 89 |
} |
| 90 |
|
| 91 |
void GLTFAccessor::_set_sparse_indices_component_type_bind_compat_106220(int p_sparse_indices_component_type) { |
| 92 |
set_sparse_indices_component_type((GLTFComponentType)p_sparse_indices_component_type); |
| 93 |
} |
| 94 |
|
| 95 |
int GLTFAccessor::_get_sparse_values_buffer_view_bind_compat_106220() { |
| 96 |
return get_sparse_values_buffer_view(); |
| 97 |
} |
| 98 |
|
| 99 |
int GLTFAccessor::_get_sparse_values_byte_offset_bind_compat_106220() { |
| 100 |
return get_sparse_values_byte_offset(); |
| 101 |
} |
| 102 |
|
| 103 |
void GLTFAccessor::_bind_compatibility_methods() { |
| 104 |
// 32-bit versions for compatibility. |
| 105 |
ClassDB::bind_compatibility_method(D_METHOD("get_buffer_view"), &GLTFAccessor::_get_buffer_view_bind_compat_106220); |
| 106 |
ClassDB::bind_compatibility_method(D_METHOD("get_byte_offset"), &GLTFAccessor::_get_byte_offset_bind_compat_106220); |
| 107 |
ClassDB::bind_compatibility_method(D_METHOD("get_component_type"), &GLTFAccessor::_get_component_type_bind_compat_106220); |
| 108 |
ClassDB::bind_compatibility_method(D_METHOD("set_component_type", "component_type"), &GLTFAccessor::_set_component_type_bind_compat_106220); |
| 109 |
ClassDB::bind_compatibility_method(D_METHOD("get_normalized"), &GLTFAccessor::_get_normalized_bind_compat_106220); |
| 110 |
ClassDB::bind_compatibility_method(D_METHOD("get_count"), &GLTFAccessor::_get_count_bind_compat_106220); |
| 111 |
ClassDB::bind_compatibility_method(D_METHOD("get_accessor_type"), &GLTFAccessor::_get_accessor_type_bind_compat_106220); |
| 112 |
ClassDB::bind_compatibility_method(D_METHOD("get_type"), &GLTFAccessor::_get_type_bind_compat_106220); |
| 113 |
ClassDB::bind_compatibility_method(D_METHOD("get_min"), &GLTFAccessor::_get_min_bind_compat_106220); |
| 114 |
ClassDB::bind_compatibility_method(D_METHOD("get_max"), &GLTFAccessor::_get_max_bind_compat_106220); |
| 115 |
ClassDB::bind_compatibility_method(D_METHOD("get_sparse_count"), &GLTFAccessor::_get_sparse_count_bind_compat_106220); |
| 116 |
ClassDB::bind_compatibility_method(D_METHOD("get_sparse_indices_buffer_view"), &GLTFAccessor::_get_sparse_indices_buffer_view_bind_compat_106220); |
| 117 |
ClassDB::bind_compatibility_method(D_METHOD("get_sparse_indices_byte_offset"), &GLTFAccessor::_get_sparse_indices_byte_offset_bind_compat_106220); |
| 118 |
ClassDB::bind_compatibility_method(D_METHOD("get_sparse_indices_component_type"), &GLTFAccessor::_get_sparse_indices_component_type_bind_compat_106220); |
| 119 |
ClassDB::bind_compatibility_method(D_METHOD("set_sparse_indices_component_type", "sparse_indices_component_type"), &GLTFAccessor::_set_sparse_indices_component_type_bind_compat_106220); |
| 120 |
ClassDB::bind_compatibility_method(D_METHOD("get_sparse_values_buffer_view"), &GLTFAccessor::_get_sparse_values_buffer_view_bind_compat_106220); |
| 121 |
ClassDB::bind_compatibility_method(D_METHOD("get_sparse_values_byte_offset"), &GLTFAccessor::_get_sparse_values_byte_offset_bind_compat_106220); |
| 122 |
} |
| 123 |
|
| 124 |
#endif // DISABLE_DEPRECATED |