summaryrefslogtreecommitdiffstats
path: root/modules/gltf/structures/gltf_accessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gltf/structures/gltf_accessor.h')
-rw-r--r--modules/gltf/structures/gltf_accessor.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/modules/gltf/structures/gltf_accessor.h b/modules/gltf/structures/gltf_accessor.h
index 6b1734601a..51ca282630 100644
--- a/modules/gltf/structures/gltf_accessor.h
+++ b/modules/gltf/structures/gltf_accessor.h
@@ -35,6 +35,16 @@
#include "core/io/resource.h"
+enum GLTFAccessorType {
+ TYPE_SCALAR,
+ TYPE_VEC2,
+ TYPE_VEC3,
+ TYPE_VEC4,
+ TYPE_MAT2,
+ TYPE_MAT3,
+ TYPE_MAT4,
+};
+
struct GLTFAccessor : public Resource {
GDCLASS(GLTFAccessor, Resource);
friend class GLTFDocument;
@@ -45,7 +55,7 @@ private:
int component_type = 0;
bool normalized = false;
int count = 0;
- GLTFType type = GLTFType::TYPE_SCALAR;
+ GLTFAccessorType accessor_type = GLTFAccessorType::TYPE_SCALAR;
Vector<double> min;
Vector<double> max;
int sparse_count = 0;
@@ -74,8 +84,8 @@ public:
int get_count();
void set_count(int p_count);
- int get_type();
- void set_type(int p_type);
+ int get_accessor_type();
+ void set_accessor_type(int p_accessor_type);
Vector<double> get_min();
void set_min(Vector<double> p_min);