|
@@ -2,12 +2,21 @@ package hxd.impl;
|
|
|
|
|
|
#if js
|
|
#if js
|
|
|
|
|
|
|
|
+#if haxe4
|
|
|
|
+typedef Float32Array = js.lib.Float32Array;
|
|
|
|
+typedef Uint16Array = js.lib.Uint16Array;
|
|
|
|
+typedef Uint8Array = js.lib.Uint8Array;
|
|
|
|
+typedef ArrayBuffer = js.lib.ArrayBuffer;
|
|
|
|
+typedef Uint32Array = js.lib.Uint32Array;
|
|
|
|
+typedef ArrayBufferView = js.lib.ArrayBufferView;
|
|
|
|
+#else
|
|
typedef Float32Array = js.html.Float32Array;
|
|
typedef Float32Array = js.html.Float32Array;
|
|
typedef Uint16Array = js.html.Uint16Array;
|
|
typedef Uint16Array = js.html.Uint16Array;
|
|
typedef Uint8Array = js.html.Uint8Array;
|
|
typedef Uint8Array = js.html.Uint8Array;
|
|
typedef ArrayBuffer = js.html.ArrayBuffer;
|
|
typedef ArrayBuffer = js.html.ArrayBuffer;
|
|
typedef Uint32Array = js.html.Uint32Array;
|
|
typedef Uint32Array = js.html.Uint32Array;
|
|
typedef ArrayBufferView = js.html.ArrayBufferView;
|
|
typedef ArrayBufferView = js.html.ArrayBufferView;
|
|
|
|
+#end
|
|
|
|
|
|
#else
|
|
#else
|
|
typedef Float32Array = haxe.ds.Vector<Float32>;
|
|
typedef Float32Array = haxe.ds.Vector<Float32>;
|