Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-03-18 12:57:45 +0300
committerJacques Lucke <jacques@blender.org>2022-03-18 12:57:45 +0300
commit2252bc6a5527cd7360d1ccfe7a2d1bc640a8dfa6 (patch)
treebb6f8921b9977dc2c387b750a29aa6ded06ec5f9 /source/blender/blenlib/intern
parent7509a741166c97f5f87ed9e580eef6f99eb1e62a (diff)
BLI: move CPPType to blenlib
For more detail about `CPPType`, see `BLI_cpp_type.hh` and D14367. Differential Revision: https://developer.blender.org/D14367
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/cpp_type.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/cpp_type.cc b/source/blender/blenlib/intern/cpp_type.cc
new file mode 100644
index 00000000000..72ccc54e552
--- /dev/null
+++ b/source/blender/blenlib/intern/cpp_type.cc
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include "BLI_color.hh"
+#include "BLI_cpp_type_make.hh"
+#include "BLI_float4x4.hh"
+#include "BLI_math_vec_types.hh"
+
+BLI_CPP_TYPE_MAKE(bool, bool, CPPTypeFlags::BasicType)
+
+BLI_CPP_TYPE_MAKE(float, float, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(float2, blender::float2, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(float3, blender::float3, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(float4x4, blender::float4x4, CPPTypeFlags::BasicType)
+
+BLI_CPP_TYPE_MAKE(int32, int32_t, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(int8, int8_t, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(uint32, uint32_t, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(uint8, uint8_t, CPPTypeFlags::BasicType)
+
+BLI_CPP_TYPE_MAKE(ColorGeometry4f, blender::ColorGeometry4f, CPPTypeFlags::BasicType)
+BLI_CPP_TYPE_MAKE(ColorGeometry4b, blender::ColorGeometry4b, CPPTypeFlags::BasicType)
+
+BLI_CPP_TYPE_MAKE(string, std::string, CPPTypeFlags::BasicType)