Fix C++ casting when converting openfl.Vector to Float32Array
This commit is contained in:
@@ -14,7 +14,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Float>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -76,7 +76,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Float>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Float>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -74,7 +74,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Float>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -74,7 +74,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -74,7 +74,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -72,7 +72,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -74,7 +74,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -74,7 +74,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -74,7 +74,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ package lime.utils;
|
|||||||
public inline function new<T>(
|
public inline function new<T>(
|
||||||
?elements:Int,
|
?elements:Int,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
?buffer:ArrayBuffer, ?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
@@ -83,7 +83,7 @@ package lime.utils;
|
|||||||
?elements:Int,
|
?elements:Int,
|
||||||
?buffer:ArrayBuffer,
|
?buffer:ArrayBuffer,
|
||||||
?array:Array<T>,
|
?array:Array<T>,
|
||||||
#if openfl ?vector:openfl.Vector<T>, #end
|
#if openfl ?vector:openfl.Vector<Int>, #end
|
||||||
?view:ArrayBufferView,
|
?view:ArrayBufferView,
|
||||||
?byteoffset:Int = 0, ?len:Null<Int>
|
?byteoffset:Int = 0, ?len:Null<Int>
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user