aboutsummaryrefslogtreecommitdiff
path: root/system/lib
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-05-03 18:20:26 -0700
committerChad Austin <chad@imvu.com>2013-05-17 12:56:48 -0700
commitfd8cbaa853ec9ea1f2c0c689e1729126c52368e4 (patch)
tree5359cad8a12b53f4d74dcd129945c6d08825a3c8 /system/lib
parent7f83ab2926947fda7181a7e67e76425f02da19c4 (diff)
Add support for (fast?) memory_view objects. If C++ passes a memory_view to JS, it gets converted into a typed array object on the other side. Intended for WebGL.
Diffstat (limited to 'system/lib')
-rw-r--r--system/lib/embind/bind.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/lib/embind/bind.cpp b/system/lib/embind/bind.cpp
index ec1648a9..12264dfd 100644
--- a/system/lib/embind/bind.cpp
+++ b/system/lib/embind/bind.cpp
@@ -59,4 +59,5 @@ EMSCRIPTEN_BINDINGS(native_and_builtin_types) {
_embind_register_std_string(TypeID<std::string>::get(), "std::string");
_embind_register_std_wstring(TypeID<std::wstring>::get(), sizeof(wchar_t), "std::wstring");
_embind_register_emval(TypeID<val>::get(), "emscripten::val");
+ _embind_register_memory_view(TypeID<memory_view>::get(), "emscripten::memory_view");
}