ネイティブ環境でのobj.load及びobj.effect対応
このコミットが含まれているのは:
7ファイル変更
+254
-24
検索条件に一致するファイルはありません
@@ -23,6 +23,9 @@ namespace LuaScript.Engine
|
||||
public const int OffCallbackFrame = 32;
|
||||
public const int OffCallbackTagLen = 36;
|
||||
public const int OffCallbackFound = 40;
|
||||
public const int OffCallbackKind = 44;
|
||||
public const int OffLoadResultWidth = 48;
|
||||
public const int OffLoadResultHeight = 52;
|
||||
|
||||
public const int HeaderSize = 64;
|
||||
|
||||
@@ -36,10 +39,14 @@ namespace LuaScript.Engine
|
||||
public const int ErrorMax = 4 * 1024;
|
||||
|
||||
public const int CallbackTagOffset = ErrorOffset + ErrorMax;
|
||||
public const int CallbackTagMax = 256;
|
||||
public const int CallbackTagMax = 4096;
|
||||
public const int CallbackResultOffset = CallbackTagOffset + CallbackTagMax;
|
||||
public const int CallbackResultCount = 8;
|
||||
|
||||
public const int CbKindGetObject = 0;
|
||||
public const int CbKindLoadFigure = 1;
|
||||
public const int CbKindEffect = 2;
|
||||
|
||||
public const int CbExist = 0;
|
||||
public const int CbX = 1;
|
||||
public const int CbY = 2;
|
||||
@@ -113,7 +120,9 @@ namespace LuaScript.Engine
|
||||
public const int FirstWritableField = X;
|
||||
public const int LastWritableField = Rzr;
|
||||
|
||||
public const int MaxPixelBufferSize = 3840 * 2160 * 4;
|
||||
|
||||
public static long BufferSize(int width, int height) =>
|
||||
PixelOffset + (long)width * height * 4;
|
||||
PixelOffset + Math.Max((long)width * height * 4, MaxPixelBufferSize);
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする